Hi,
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
Latest News: (loading..)
How do I add the Products URL to the Shopping Cart page?
Started by fleeced, Jul 30 2012 09:49 PM
2 replies to this topic
#1
Posted 30 July 2012 - 09:49 PM
#2
Posted 30 July 2012 - 11:24 PM
Well the shopping cart by default shows a link to the product page. You could modify it to add the text "Check Manufacturer specification before ordering" if that's what you mean.
To do that you'd have to add the text to your language definitions in includes/languages/english/shopping_cart.php
like this:
define('CHECK_MANUFACTURER_NOTICE', 'Check Manufacturer specification before ordering');
And then modify the existing link in shopping cart to add that text.
in [catalog]/shoping_cart.php
find (or similar):
And change it to: (this is with the language definition added in)
Hope that helps.
To do that you'd have to add the text to your language definitions in includes/languages/english/shopping_cart.php
like this:
define('CHECK_MANUFACTURER_NOTICE', 'Check Manufacturer specification before ordering');
And then modify the existing link in shopping cart to add that text.
in [catalog]/shoping_cart.php
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.
Find this post helpful? Click the 'Like this' button. :)
#3
Posted 13 August 2012 - 08:41 PM
al3ks
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.
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.









