seowebnik Posted April 11, 2005 Posted April 11, 2005 Hello, This is my first ever post so I hope that I don't offend anyone. The following javascript must be added to the following php. Can you help me do this or can you tell me where to go with this task? I appreciate the forums, I'm an SEO, so it is natural for me to come to you for help. Thank you. ******************************************************* <?php /* $Id: checkout_success.php,v 1.11 2002/11/01 04:27:01 hpdl 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! Your products will arrive at their destination within 2-5 working days.'); 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 going to the <a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">\'My Account\'</a> page and by clicking on <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">\'History\'</a>.'); 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 remain.'); define('HEADING_DOWNLOAD', 'Download your products here:'); define('FOOTER_DOWNLOAD', 'You can also download your products at a later time at \'%s\''); ?> ******************************************************* THE JAVASCRIPT <!--BEGIN ROI TRACKING Code--> <script language="javascript" src="http://track.roiservice.com/track/track.aspx?ROIID=936904107000020"></script> <script language="javascript"> <!-- if (typeof(ROIID) + '' != 'undefined') { TrackEvent('Sale', 100); } //--> </script> <!--END ROI TRACKING Code-->
tina_boots Posted April 12, 2005 Posted April 12, 2005 Hello, This is my first ever post so I hope that I don't offend anyone. The following javascript must be added to the following php. Can you help me do this or can you tell me where to go with this task? I appreciate the forums, I'm an SEO, so it is natural for me to come to you for help. Thank you. ******************************************************* <?php /* $Id: checkout_success.php,v 1.11 2002/11/01 04:27:01 hpdl 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! Your products will arrive at their destination within 2-5 working days.'); 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 going to the <a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">\'My Account\'</a> page and by clicking on <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">\'History\'</a>.'); 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 remain.'); define('HEADING_DOWNLOAD', 'Download your products here:'); define('FOOTER_DOWNLOAD', 'You can also download your products at a later time at \'%s\''); ?> ******************************************************* THE JAVASCRIPT <!--BEGIN ROI TRACKING Code--> <script language="javascript" src="http://track.roiservice.com/track/track.aspx?ROIID=936904107000020"></script> <script language="javascript"> <!-- if (typeof(ROIID) + '' != 'undefined') { TrackEvent('Sale', 100); } //--> </script> <!--END ROI TRACKING Code--> <{POST_SNAPBACK}> Hello, This is the language file for checkout_success, you probably need to place this code in the checkout_success.php that resides in your root folder for OSC. The file that you are including is also an ASP.NET file, I would assume its generating some JavaSript by the way its being used? I haven't heard of using .NET and PHP in the same application. I would check on that or maybe someone can give some more advice on that. As far as running JavaScript within PHP, its generally not a problem as you can inter mix PHP, HTML, and JavaScript in the same file. Be well, Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes.
seowebnik Posted April 12, 2005 Author Posted April 12, 2005 Hello, This is the language file for checkout_success, you probably need to place this code in the checkout_success.php that resides in your root folder for OSC. The file that you are including is also an ASP.NET file, I would assume its generating some JavaSript by the way its being used? I haven't heard of using .NET and PHP in the same application. I would check on that or maybe someone can give some more advice on that. As far as running JavaScript within PHP, its generally not a problem as you can inter mix PHP, HTML, and JavaScript in the same file. Be well, Tina <{POST_SNAPBACK}> Thank you so very much Tina for your reply. I'm looking into this further at the admin area. Thank you!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.