Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shopping cart Information Box


MzBeanz

Recommended Posts

Posted

I am trying to add product attributes to the shopping cart info box on the left (or top right depending on how you have it).

 

In catalog/includes/boxes/shopping_cart/php I found this code:

 

$cart_contents_string .= $products[$i]['name']. ' <br>[' . $products[$i]['model']. ']<br>' . $products[$i]['attributes'] .'</span></td></tr></a>';

 

THIS YEILDS

 

Deco Slide Mounts

[PPsldmt] Deco Slide Mounts

 

the shopping cart page in the center under 'What's in my cart?' shows the name (which is what I want in the info box for shopping cart) along with the color (attribute which is the option value) Like this:

 

Deco Slide Mounts

- Color Mocha Creme

 

I tried what was suggested in a forum post which suggested replacing the original code with this snippet of code, however it does not reflect the attributes as i have set t hem in the admin section.

 

What do I need to change here- $products[$i]['attributes'] - for the color to show up on the left in the box? I tried option_value in place of attributes and several other things but it did not work. Can anyone help?

Archived

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

×
×
  • Create New...