Jump to:

2082 Posts in 1002 Topics by 452 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » E-Commerce 0.6 beta 1 released

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 2 3 4 5 6 7 8 9 10 11 12 13 14
Go to End
Author Topic: 19163 Views
  • Android08
    Avatar
    Community Member
    18 Posts

    Re: E-Commerce 0.6 beta 1 released Link to this post

    I found the method in payment so Payment::set_site_currency("GBP"); works but this doesn't change the $ symbol to £. Prices will show as $15.00 (GBP) I haven't been able to find where to change that.

  • chrisdarl
    Avatar
    Community Member
    33 Posts

    Re: E-Commerce 0.6 beta 1 released Link to this post

    Thanks Andriod! Can't wait for the bugs in this extension to be ironed out.. great work so far guys

  • TotalNet
    Avatar
    Community Member
    181 Posts

    Re: E-Commerce 0.6 beta 1 released Link to this post

    Well spotted, I guess that was moved to payment. Not a bug really although you'd want currency displayed in the catalogue too so perhaps it makes sense to make it a wider, regional setting.
    as for the pound sign (don't have one on my keyboard any more) I recall seeing that asked somewhere before, I'll see if I can find it.
    I'm keen to try this with 2.3.2-stable so might have a play this weekend.

  • funkncreative
    Avatar
    Community Member
    4 Posts

    Re: E-Commerce 0.6 beta 1 released Link to this post

    to set the currency symbol just throw this into your /ecommerce/_config.php

    Currency::setCurrencySymbol('€');

    and use the html code for the symbol you want

    example is for EURO

  • chrisdarl
    Avatar
    Community Member
    33 Posts

    Re: E-Commerce 0.6 beta 1 released Link to this post

    Using :

    Payment::set_site_currency("GBP");
    Currency::setCurrencySymbol('£');

    changes USD -> GBP and $ -> £ on most pages, but not all areas on the checkout page (see attached "Amount" at the bottom)

    Attached Files
  • TotalNet
    Avatar
    Community Member
    181 Posts

    Re: E-Commerce 0.6 beta 1 released Link to this post

    That was what I was getting at when I said it should be set with a wider scope.
    CurrencySymbol() belongs to ecommerce module and set_site_currency() is Payment module - I don't have the stand-alone payment module installed so can't see it currencySymbol has been implemented there as well.

  • chrisdarl
    Avatar
    Community Member
    33 Posts

    Re: E-Commerce 0.6 beta 1 released Link to this post

    Also..

    inside the Checkout page there's a hidden form field "Amount" that is vulnerable to people changing the value of the order total (i.e. in Firebug)

    and the fix for the bug I posted previously is....
    ----
    sapphire/core/model/fieldtypes/Currency.php - ADD :
    static function getCurrencySymbol() {
       return self::$currencySymbol;
    }

    code/forms/OrderForm.php:70
    change '$' to Currency::getCurrencySymbol()

  • Thermalzombie
    Avatar
    Community Member
    27 Posts

    Re: E-Commerce 0.6 beta 1 released Link to this post

    Nevermind my problem is fixed but I would say that you install instructions definatly need updating.

    Attached Files
    19163 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
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.