You are here:  » Including product id as clickref


Including product id as clickref

Submitted by ChrisNBC on Fri, 2016-09-23 11:31 in

Hi David,

Hope all is going well.

I would like to add clickrefs to my buy links. For the time being, I only need to append the uniqueID from the products table to the end of each buy link (in the format &clickref2=12345 where 12345 is the ‘id’) . I thought I may be able to use a ‘text after’ filter to append the clickref but the filter just appends the id as %id%. I wondered if you could suggest a way to append id as a clickref?

Thanks in advance.

Best regards
Chris

Submitted by support on Fri, 2016-09-23 11:38

Hi Chris,

You'd need to do this in jump.php - look for the following code at line 14:

    header("Location: ".$product["buy_url"]);

...and REPLACE with:

    $product["buy_url"] .= "&clickref=".$_GET["id"];
    header("Location: ".$product["buy_url"]);

Cheers,
David.
--
PriceTapestry.com

Submitted by ChrisNBC on Fri, 2016-09-23 16:24

Thanks David, that works perfectly.

Have a great weekend.

Best regards
Chris