npimpfellow Posted March 10, 2009 Share Posted March 10, 2009 I wanted to setup my presta shop site to have a mix of items, some Items I sell myself and some items I will sell through an affiliate program.To do this I had to add a redirect script to the order.php file:<?php$ipa = addslashes($_REQUEST['ipa']);if ($ipa == 11) {Header( "HTTP/1.1 301 Moved Permanently" );header("Location: http://www.exampleaffiliate.com");exit;} else if ($ipa == 12) {Header( "HTTP/1.1 301 Moved Permanently" );header("Location: http://www.affiliatelink.com");exit;}?> this script will redirect ONLY items 11 and 12 to the affiliate link and allow any other items to function normally.The problem I am having now is when an affiliate link is clicked on it still adds that item to the checkout, so what I need is to tell the program if item 11 is purchased to NOT add that item to the current shopping cart.any help would be much appreciated Link to comment Share on other sites More sharing options...
Icarus Posted June 8, 2009 Share Posted June 8, 2009 Hi,I am also very interested in this.I would like to be able to link products to external links instead of a normal checkout.Preferably, I would like to do so without editing the PHP as you did, but to be able to set it up in the admin panel.Any word on this? Link to comment Share on other sites More sharing options...
Recommended Posts