Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Model number in shopping cart


Mubz

Recommended Posts

hi guys, any advise, i need to edit the shopping cart page, to show the product name as well as the model number. at the moment it only shows product name.

 

any help would greatly be appreciated.

Link to comment
Share on other sites

Around line 76 of shopping_cart.php, look for code like

 $products_name = '<table border="0" cellspacing="2" cellpadding="2">' .
				 ' <tr>' .
				 ' <td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' .
				 ' <td valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><strong>' . $products[$i]['name'] . '</strong></a>';

and change it to look like

 $products_name = '<table border="0" cellspacing="2" cellpadding="2">' .
				 ' <tr>' .
				 ' <td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' .
				 ' <td valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><strong>' . $products[$i]['name'] . ' (' . $products[$i]['model'] . ')' . '</strong></a>';

and see if that does what you want. One line with additions, nothing removed or changed.

Always back up before making changes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...