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, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

ecommerce trunk and payment module

Go to End

7 Posts   4231 Views


Community Member, 127 Posts

15 April 2009 at 5:12am

The ones who downloaded the recent ecommerce trunk (currently r73999) might have noticed that you cannot get it running due to the missing payment module. There seems to be no link anywhere to download this new (and unsupported) payment module. However payments module trunk is accessible per svn, and assuming that you know svn and have it installed you can get it like this:

svn co payment

This will checkout the latest payment module trunk into the subdirectory "payment". Copy that to SS, run http://domain.tld/dev/build/?flush=1 and now the ecommerce trunk loads.

That doesn't mean that all works though, i have no products showing up anymore :(


Community Member, 21 Posts

17 April 2009 at 1:02am

Yes, I'm missing products on the shop homepage but once you get to a category page they do show up.

Have you (or anyone else for that matter) had any luck with getting the TaxModifiers to work in this version?

This is the code I'm using, the currency and symbol parts are working but the TaxModifiers seem to have no effect.

Payment::set_site_currency("GBP"); //change this to the relevant currency code
Currency::setCurrencySymbol('£'); //change this to the relevant symbol

TaxModifier::set_for_country("NZ", 0.15, "VAT", "exclusive");
TaxModifier::set_for_country("UK", 0.15, "VAT", "exclusive");


Community Member, 127 Posts

17 April 2009 at 3:53am

@mwalsh: The missing products on the shop homepage could be just a setting in the cms admin panel of the shop, where you define for each category if you want to see

  • * all its products, or
    * the featured ones only, or
    * none at all.

otherwise if anything is not displayed or displayed incorrectly or looking weird, then replace the relevant ecommerce template of your theme by the template which comes with ecommerce trunk. The templates have changed quite a lot.

I have it running now on my development server (SS 2.3.1 with ecommerce trunk), all seems to work fine, even multilingual, so it is not too much to adjust. However I haven't touched the TaxModifiers yet, so I can't comment on them yet.


Community Member, 33 Posts

28 April 2009 at 1:46am


how to add shopping cart "block" on every page. Old method

function Cart(){
      return Order::ShoppingCart();

placed in page.php doesnt ork for me.




Community Member, 33 Posts

28 April 2009 at 2:11am

found it:

function MyCart(){
      return Product::Cart();

looks working ;)


Community Member, 121 Posts

27 October 2010 at 10:42am

any clue what it is these days? I found this in productgroup.php

but it doesn't seem to recognize when I have products as it never shows up

function Cart() {
return ShoppingCart::current_order();


Community Member, 49 Posts

4 February 2011 at 8:04am

Edited: 04/02/2011 8:06am

SS v 2.4.5
ecommerce v 0.81rc

I never read so much over the last couple of days trying to get the cart on every page issue working (inside right sidebar) using <% include Cart %> pulled in the cart but just showed an empty sidebar, anyway using the function code from ProductGroup.php as pointed out by vancouverWill did work for me, what i did was add it into Page.php inside this ContentController:

class Page_Controller extends ContentController {

//Returns the shopping cart into my themes sidebar across all pages

function Cart() {
return ShoppingCart::current_order();

what i would like to ask you guys is this the correct way to go about it? as further down the line i dont really want to be hitting issues if there is a "right and proper" way to do this..