mikewood Posted March 21, 2007 Posted March 21, 2007 I'm lost as I can be on this. I need the subtotal variable from the success page to be plugged into this code for an affiliate program we are using to work. <!-- begin clickXchange, copyright 2007 --> <img src="https://www.clickXchange.com/es.phtml?act=1580500&id=SALE_ORDER_ID&pr=SALE_AMOUNT_GOES_HERE"> <!-- pr: Use this variable for percentage of sale programs --> <!-- end clickXchange --> the variable needs to be after the = where "SALE_AMOUNT_GOES_HERE" is I have tried several different ideas one of which crashed the success page. Any help at all would be great, I have called 3 different web masters, click exchange and searched these forms for several days. You are my last hope. Thanks, Mike Quote
mikewood Posted April 5, 2007 Author Posted April 5, 2007 I tried 10 different codes and still no success. No one else is using clickxchange? I know it's not that hard, I also know I'm not doing it right. Thanks, Mike Quote
blunt Posted May 8, 2007 Posted May 8, 2007 I am also trying to add the above clickxchange code to my checkout_success.php page - have you found a way to do this yet? Thanks :thumbsup: Quote
mikewood Posted May 16, 2007 Author Posted May 16, 2007 Nope not anything that comes close to working. If I do find a solution I'll sure share it with the world and turn it into a tattoo. This has been beyond frustrating and clickxchange is no help. Quote
mikewood Posted May 23, 2007 Author Posted May 23, 2007 After about 6 hours of trying different codes I found a way to do it on a "Zencart" board with another affiliate program. I changed a few things several times and it worked. I am posting a working code for "clickxchange". After phone call after phone call to clickxchange and they are NO help on getting their own program working for you. I got it! I'm very excited. This code should be placed in checkout_process.php ( just found a good place and stuck it in.) // Begin Affiliate Program - Sales Tracking $orders_total=$cart->show_total()- $total_tax; tep_session_register('orders_total'); $orders_id=$order_products_id; tep_session_register('orders_id'); // End Affiliate Program - Sales Tracking Then Copy your click exchange link info <!-- begin clickXchange, copyright 2007 --> <img src="https://www.clickXchange.com/es.phtml?act=00000000&id=SALE_ORDER_ID&pr=SALE_AMOUNT_GOES_HERE"> <!-- pr: Use this variable for percentage of sale programs --> <!-- end clickXchange --> 00000000 would be "your" affiliate number. So it will look like this vvvvvvv <?php // Start Affiliate Program - Click Exchange echo '<img src="https://www.clickXchange.com/es.phtml?act=00000000&id=' . $orders_id . '&pr=' . $orders_total . '" width=1 height=1>'; tep_session_unregister('orders_total'); tep_session_unregister('orders_id'); // End Affiliate Program - Sales Tracking ?> <!-- End Affiliate //--> I stuck it right above the footer and it worked! I sure hope this helps someone. Special thanks to Maringo for posting a code on http://www.zen-cart.com/forum/showthread.php?t=30701 that I could find. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.