Zen Cart Logo
Forums / Managing Customers and Orders / Shopping Cart Display

Shopping Cart Display

Locked

Views: 1,639

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
19 Dec 2008, 7:50 AM
#1
pglad avatar

pglad

Zen Follower

Join Date:
Jun 2007
Posts:
198
Plugin Contributions:
0

Shopping Cart Display

Hi Guys

In tpl_shopping_cart_default.php, where the product name is displayed at

<?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?>

I also want to show the product model. I hope that this should be easy enough to do but being a bit of a code novice I just can't figure it out! Any help please?

21 Dec 2008, 5:33 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Shopping Cart Display

There is a function in the functions_lookups.php that you can pull any field for any products_id that you need:

/*
 * Return any field from products or products_description table
 * Example: zen_products_lookup('3', 'products_date_added');
 */
  function zen_products_lookup($product_id, $what_field = 'products_name', $language = '') {
22 Dec 2008, 4:38 PM
#3
pglad avatar

pglad

Zen Follower

Join Date:
Jun 2007
Posts:
198
Plugin Contributions:
0

Re: Shopping Cart Display

Took a while with a bit of trial and error but I managed to get there in the end. Thanks for pointing me in the right direction Ajeh :smile:

22 Dec 2008, 5:25 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Shopping Cart Display

You are most welcome ... thanks for letting us know that you were able to get this working ... :smile: