Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Help to tweak position of SubCat name added to shopping cart

Help to tweak position of SubCat name added to shopping cart

18 May 2012, 3:44 AM
#1
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

Post #1 by iddy

Hi

When a product is purchased I want the Sub Category name to be included in the shopping cart, picking slips, invoices etc.

My product names are very long and i need a helping hand in tweaking the code below so the category name shows above the product name in the shopping cart. I'd also appreciate if someone could tell me the correct path for over riding the file.

I've added the following code to "includes/templates/template_default/templates/tpl_shopping_cart_default.php" before "<td class="cartProductDisplay">"

<td class="cartCatDisplay"><?php echo zen_get_categories_name_from_product($product['id']);?></div></td> 

This pulls the information i need but puts it beside the product description. I'd like the layout to be...
Product Category
Product name

Thanks

21 May 2012, 9:19 AM
#2
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

Post #2 by iddy

....Bump. Anybody got a suggestion on another way to get the end result i'm after?

22 May 2012, 10:04 AM
#3
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #3 by rbarbour

My product names are very long and i need a helping hand in tweaking the code below so the category name shows above the product name in the shopping cart.

Posting Tips
If you're encountering display/layout problems, post your site URL* so it can be seen in action.

I'd also appreciate if someone could tell me the correct path for over riding the file.

I've added the following code to "includes/templates/template_default/templates/tpl_shopping_cart_default.php"

includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php