How do I add the Products URL to the Shopping Cart page?
Posted 30 July 2012 - 09:49 PM
I am looking to add the products url next to the product name in the shopping cart page.
Does anyone have an idea which code is required to put the product url on the shopping page to be shown as a button image saying "Check Manufacturer specification before ordering"(checkmanufacturer.jpg)
Thanks in advance
Posted 30 July 2012 - 11:24 PM
To do that you'd have to add the text to your language definitions in includes/languages/english/shopping_cart.php
define('CHECK_MANUFACTURER_NOTICE', 'Check Manufacturer specification before ordering');
And then modify the existing link in shopping cart to add that text.
find (or similar):
<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . $products[$i]['name'] . '</a>'
And change it to: (this is with the language definition added in)
<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . $products[$i]['name'] . '<br>' . CHECK_MANUFACTURER_NOTICE . '</a>'
Hope that helps.
Edited by al3ks, 30 July 2012 - 11:25 PM.
Posted 13 August 2012 - 08:41 PM
Thanks but this just adds the words "Check_Manufacturer_Notice" underneath. I need an image next to the item description that when clicked directs you to the URL in the Products URL box of each product.