tadhgc Posted April 14, 2007 Posted April 14, 2007 I've been racking my head for a few days now with searching for someone/some post that will/can tell me how do I display the weight of the products in the shopping cart. This I need as the products from this shop that are being sold are dependent on the total weight of the products bought. Simply put I need to know the weight as it determines how much the postage will be. Any help is much appreciated :thumbsup:
MarcellaE Posted April 14, 2007 Posted April 14, 2007 look at this: http://www.oscommerce.com/community/contributions,2643
GemRock Posted April 14, 2007 Posted April 14, 2007 ...how do I display the weight of the products in the shopping cart... I don't know what these contribs do, but if you simply want to show products weight in the shopping cart, then I suppose you don't have to use a contrib since the 'weight' is already available in the shopping cart class. You just need to add the weight to the cart in exactly the same manner as the cart contents - $cart->count_contents(): $cart->show_weight() Ken commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience.
tadhgc Posted April 14, 2007 Author Posted April 14, 2007 look at this: http://www.oscommerce.com/community/contributions,2643 Fantastic it works well, no problems with it :D Now I need an added feature, how do I show the weight in the Invoice/order section the admin area? Same as before I now need to see the weight for myself so I know it's correct As before all help is greatly appreciated :thumbsup:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.