Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

E-Commerce Modules

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Not Showing productname


Reply

3 Posts   1042 Views

Avatar
Webdoc

17 April 2009 at 3:49am Community Member, 332 Posts

The e-commerce module is not showing the product title in sidebar shopping cart and also not in checkout -
http://www.chillweb.eu/htc/tooted/

Avatar
adamg

18 April 2009 at 1:04pm (Last edited: 18 April 2009 1:07pm), Community Member, 1 Post

To add product name to the checkout edit file:
ecommerce\code\Order.php

after:
} else if(is_object($product)) {
         parent::__construct();
         $this->product = $product;
         $this->failover = $product;
         $this->ProductID = $product->ID;
         $this->UnitPrice = $product->Price;
         $this->ProductVersion = $product->Version;
         $this->quantity = $quantity;
add:
$this->Title = $product->Title;

Avatar
Kalileo

22 April 2009 at 1:33am (Last edited: 22 April 2009 1:37am), Community Member, 127 Posts

The ecommerce module is changing a lot, thus you need to be careful when using templates from older themes, which probably means here from all themes.

Better copy the templates where you have missing parts from the ecommerce module you're using to your theme's ecommerce part, overwriting the ones of the theme, and go from there. In most cases that should be enough to have the missing product names re-appear (worked with ecommerce trunk and the Vista theme for me).