Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter duffldofflo

    (@duffldofflo)

    Hey Mihai,

    thank you for your reply!

    The reason I am asking is that my customer would like to do the following:

    A prospective affiliate visits a landingpage. There is a button “register now”. This button leads to the registration form. The affiliate fills in that form and submits.

    Now, my customer has many affiliate groups and he wants to have many affiliates. So we were looking for a way to automatically assign the affiliate to a group.
    The landingpage is specific for that group. Affiliates that would belong to group A are directed by marketing to landingpage A. B-Affiliates are directed by marketing to landingpage B…So theoretically there could be a way to pass that information to the registration form.
    I got that Idea from Formidable Forms, which has an option to pre populate hidden form fields via url parameter, which is set by the link that leads to that form.

    Regards

    Thread Starter duffldofflo

    (@duffldofflo)

    Hi Mihai,

    wow, thank you!
    I tested it, and it works perfectly!

    Do I understand correctly: This snippet removes the /partner part from the URL that is shown in the settings (e.g. where the affiliate can copy his url / see his QR code) – but the actually working referral URL will still have to be with the /partner part as this is technically necessary – right?

    So I need to take care of creating a redirection from “short URL” to “long URL” else it wont work – just as I am doing right now, and this works well.

    But I have been creating the redirections manually, so now I want to automate the creation of the redirections. I have a snippet that will append the redirection directives at the end of my .htaccess file.
    I now just need a hook with which to start the snippet execution.

    Is there a hook in SliceWP that I can use?
    Like “affiliate created” or “affiliate edited” or “affiliate deleted” (the latter I would use to find and delete the according redirection in the .htaccess file).

    Thank you and regards

    Thomas

    • This reply was modified 1 year, 2 months ago by duffldofflo.
    • This reply was modified 1 year, 2 months ago by duffldofflo. Reason: I forgot a part of my question
    Thread Starter duffldofflo

    (@duffldofflo)

    Thank you I will do that gladly 🙂

    Regards!

Viewing 3 replies - 1 through 3 (of 3 total)