How can I show the attribute weight for each item in cart?
In the shopping cart it adds the total weight up top amount as we know based on the option value weight.
I want to also show the individual attribute weight for each item.
So for instance attributes for delivery veggie product:
option name= spinach + checkbox + option value weight = + 1 lb
when cart viewed the listing does not include the option value weight
it merely says
I want it to say
As it adds the poundage up at top why not show the individual weight amounts listed for each attribute as well?
Thanks ahead of time. I am almost done with cart and this is the last to go!
How can I show products attribute weight for each item in cart?
<li><?php echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . $value['products_attributes_weight']; ?></li>
this is on the tpl_shopping_cart_default.php where it lists the product option name with the -
I added the value products attributes weight as that is what the filed name is in the database
Does not render though - anybody with ideas?
Thanks
I hope I can crack this.
Re: How can I show the attribute weight for each item in cart?
Sounds like you turned it off ...
Catalog ... Product Types ... Edit Layout button ...
Quote:
Show Attribute Weight
Display Attribute Weight on Product Info 0= off 1= on
Re: How can I show the attribute weight for each item in cart?
Hi - and thanks - sorry for the bother - great for a reply!
It is turned on - I want to show the option value weight in the actual cart page for each product attribute.
Like this
product info page
Produce Box
Options
Bananas CHECK BOX (+1.5lbs)
add to cart
then go to cart
Produce Box
Bananas has an individual weight of 1.5 lbs. that I specified in the weight box for the option in attributes.
I want to show the individual weight next to the option selected in the actual cart page. Make sense?
I can send a URL if it helps - appreciate it so much.
Re: How can I show the attribute weight for each item in cart?
Could you switch to Classic Template and see if it is working to rule out your template?
Re: How can I show the attribute weight for each item in cart?
I am using Classic template
Seems so simple to list the weight next to option in cart???
It should call the products_attributes_weight
Re: How can I show the attribute weight for each item in cart?
Zen Cart is designed to show the weight ...
You add an Attribute you enter the weight ... voila! :smile:
Your weight is not working ... you have customize the default template so it is hard to know what else you have changed to affect this ...
If you see the attribute weight in the Attributes Controller ... and you have set the Product Type setting to show the weight ... then either you have:
1 turned this off by changing code
2 turned this off by deleting code
3 turned this off in the stylesheet
Have you an URL to a Product where the Attribute is setup with weight but is not showing?
How much does the Product weigh?
How much does the Attribute weigh?
Re: How can I show the attribute weight for each item in cart?
Okay - I uploaded original tpl shopping default again to no avail.
I don't think its css and I have not done any major mods to any pages.
Here is the URL - there is no product weight - just individual weights for each product option
View in IE if you please - I am still fudging with Firefox views - float is off
http://vinestreetworks.com/test/inde...&products_id=1
when you add the options - no weight shows in cart as said -
THE TOTAL WEIGHT SHOWS UP TOP OF COURSE - I want to show the individual weights for each option listed under the product
so many thanks
Re: How can I show the attribute weight for each item in cart?
I see attribute weights on both IE 6.x and FireFox 2.x ... umm ... perhaps close your browser windows, clear your cache and look again ... :unsure:
Re: How can I show the attribute weight for each item in cart?
Yes I see them too but when you add to the cart it doesn't show individual weight next to option
Weights show on product info page but not in actual shopping cart it just has the option name with a -