Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to display Products Model when viewing cart?


Justin WFCOMICS

Recommended Posts

Have you even opened you admin section yet???

 

Configure/Product Listing/Display Product Model set to 1

"Aliiiiive, it's alive, it's ALIIIIIIIIIIIIIVE!!!"

Link to comment
Share on other sites

catalog/includes/classes/shopping_cart.php already has the products model, but catalog/shopping_cart.php does not :blink: The simplest way is to list it below the name - around line 117 of catalog/shopping_cart.php:

 

 ? ? ? ? ? ? ? ? ? ? ? ' ? ?<td class="productListing-data" 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 class="productListing-data" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b></a><br>' . $products[$i]['model'];

 

HTH

 

Matti

Link to comment
Share on other sites

Have you even opened you admin section yet???

 

Configure/Product Listing/Display Product Model  set to 1

Ummm... :huh:? As Matti pointed out, the Product Model does not display in the cart even with "Product Model" set to "1" in the Admin.

 

Matti, thanks a bunch for the code snippet :), I appreciate your response. I will give it a try.

 

Justin =)

Link to comment
Share on other sites

  • 2 months later...
catalog/includes/classes/shopping_cart.php already has the products model, but catalog/shopping_cart.php does not  :blink:  The simplest way is to list it below the name - around line 117 of catalog/shopping_cart.php:

 

 ? ? ? ? ? ? ? ? ? ? ? ' ? ?<td class="productListing-data" 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 class="productListing-data" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b></a><br>' . $products[$i]['model'];

 

HTH

 

Matti

 

I did it according to your guideline. The model # is on the shoping_cart.php now. Thanks, Johnson.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...