Jump to:

2088 Posts in 1007 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Not Showing productname

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

Page: 1
Go to End
Author Topic: 1031 Views
  • Webdoc
    Avatar
    Community Member
    332 Posts

    Not Showing productname Link to this post

    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/

  • adamg
    Avatar
    Community Member
    1 Post

    Re: Not Showing productname Link to this 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;

  • Kalileo
    Avatar
    Community Member
    127 Posts

    Re: Not Showing productname Link to this post

    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).

    1031 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.