Jump to:

2088 Posts in 1008 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » ecommerce trunk and payment module

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: 3788 Views
  • Kalileo
    Avatar
    Community Member
    127 Posts

    ecommerce trunk and payment module Link to this post

    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:

    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

  • mwalsh
    Avatar
    Community Member
    21 Posts

    Re: ecommerce trunk and payment module Link to this post

    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");
    Order::set_modifiers(array('TaxModifier'));

  • Kalileo
    Avatar
    Community Member
    127 Posts

    Re: ecommerce trunk and payment module Link to this post

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

  • pali
    Avatar
    Community Member
    33 Posts

    Re: ecommerce trunk and payment module Link to this post

    hi,

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

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

    placed in page.php doesnt ork for me.

    Thanks

    Pali

  • pali
    Avatar
    Community Member
    33 Posts

    Re: ecommerce trunk and payment module Link to this post

    found it:

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

    looks working ;)

  • vancouverWill
    Avatar
    Community Member
    121 Posts

    Re: ecommerce trunk and payment module Link to this post

    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() {
          //HTTP::set_cache_age(0);
          return ShoppingCart::current_order();
       }

  • Mrfixer
    Avatar
    Community Member
    49 Posts

    Re: ecommerce trunk and payment module Link to this post

    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() {
    HTTP::set_cache_age(0);
    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..

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