Guest Posted April 19, 2004 Posted April 19, 2004 Hi There, I know i should really know how to do this but i dont. I need to add this line to my success page and cannot get a grip of it, can anyone please help me out here? code i need to add is as follows: <img src="https://www.awin1.com/sale.php?sale=amount&extra=orderref&type=s&mid=820"> Thanks in advance Paul
♥Vger Posted April 19, 2004 Posted April 19, 2004 echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER; } ?> <h3><?php echo TEXT_THANKS_FOR_SHOPPING; ?></h3></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> in checkout_success.php try echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER; } ?> <h3><?php echo TEXT_THANKS_FOR_SHOPPING; ?></h3></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> <td><img src="https://www.awin1.com/sale.php?sale=amount&extra=orderref&type=s&mid=820"></td> </tr> or some variation on the same theme, depending upon where you want the link to go. Hope this helps - Vger
sam6 Posted April 19, 2004 Posted April 19, 2004 If you are just adding it to the success page then open checkout_success.php find a place in the html!!! where you want it and if you need to make new<tr><td></td></tr> then do so place the code ad see what it looks like
Guest Posted April 19, 2004 Posted April 19, 2004 Hi There, There is no html in the page. Here is a copy of the full checkout success page including the code i want added at the end which don't seem to be working: <?php /* $Id: checkout_success.php,v 1.12 2003/04/15 17:47:42 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE_1', 'Checkout'); define('NAVBAR_TITLE_2', 'Success'); define('HEADING_TITLE', 'Your Order Has Been Processed!'); define('TEXT_SUCCESS', 'Your order has been successfully processed! We will contact you in the near future to arrange delivery.'); define('TEXT_NOTIFY_PRODUCTS', 'Please notify me of updates to the products I have selected below:'); define('TEXT_SEE_ORDERS', 'You can view your order history by logging into your account and following the navigation directions'); define('TEXT_CONTACT_STORE_OWNER', 'Please direct any questions you have to the <a href="' . tep_href_link(FILENAME_CONTACT_US) . '">store owner</a>.'); define('TEXT_THANKS_FOR_SHOPPING', 'Thanks for shopping with us online!'); define('TABLE_HEADING_COMMENTS', 'Enter a comment for the order processed'); define('TABLE_HEADING_DOWNLOAD_DATE', 'Expiry date: '); define('TABLE_HEADING_DOWNLOAD_COUNT', ' downloads remaining'); define('HEADING_DOWNLOAD', 'Download your products here:'); define('FOOTER_DOWNLOAD', 'You can also download your products at a later time at \'%s\''); ?> <img src="https://www.awin1.com/sale.php?sale=orders_total_id&extra=order_id&type=s&mid=820";> Thanks and any idea what and how to do it? Paul
sam6 Posted April 19, 2004 Posted April 19, 2004 that is the english copy :D you need the copy in catalog>checkout_success.php althogh you could do a define in that file like the ones above then go to catalog>checkout_success.php and see ho to add the define to the page like they have it .
Guest Posted April 19, 2004 Posted April 19, 2004 Hi There, Thanks for all your help, all i need to do know having got the code in the right place and working is to get the correct variables needed. For Amount, what variable should i insert to get the correct order value without the ? sign and for order id what do i need to get the order number. Thanks again Paul
Recommended Posts
Archived
This topic is now archived and is closed to further replies.