Latest News: (loading..)


This topic is now archived and is closed to further replies.


How do I add the Products URL to the Shopping Cart page?

3 posts in this topic



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

Share this post

Link to post
Share on other sites

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):


<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.

Share this post

Link to post
Share on other sites



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.

Share this post

Link to post
Share on other sites