Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Ecommerce Module

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1 2
Go to End
Author Topic: 5157 Views
  • stooni
    Avatar
    Community Member
    89 Posts

    Ecommerce Module Link to this post

    Hello i have follow questions to the shop Module!

    1. i became in the Shop in the Productlist these Error
    -------------Notice: Undefined variable:... ProductGroup.php on line 82-----------------
    for all groups, these Errors came also in the Admin Interface!

    2. Can i change the Currency in a other z.B. SFr. or Euro.

    Thanks for your help!!

    Martin

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Ecommerce Module Link to this post

    Notice: Undefined variable:... ProductGroup.php on line 82

    This is a notice, not an error. The system should still work fine. You can hide errors by changing the error_reporting setting in mysite/_config.php => check out php.net/error_reporting

  • stooni
    Avatar
    Community Member
    89 Posts

    Re: Ecommerce Module Link to this post

    How to write in config.php
    <?php
    ini_set("log_errors", "On");
    ini_set("error_log", "php_error.html");
    ?>

    or these
    => check out php.net/error_reporting

    thanks for the Help.

    Martin

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Ecommerce Module Link to this post

    If you add this to _config it will hide the notices and show the errors -

    error_reporting(E_ALL ^ E_NOTICE);

  • stooni
    Avatar
    Community Member
    89 Posts

    Re: Ecommerce Module Link to this post

    Thanks i have found the resolution!

    The Other Currency i give them in _config.php these Value and Command
    //*Order::set_site_currency("sFr.");

    and in the artikel show so.
    $169.00 sFr.

    from where come the $ ????

    Thanks for your Help

    stooni

  • stooni
    Avatar
    Community Member
    89 Posts

    Re: Ecommerce Module Link to this post

    The 2. Question is allways open??

    Why give in the Article, also when i set Currency correct the Currency Sign "sFr." i become allways "$75.00 sFr." from where come the $ Sign????

    View in
    Kondensators

    Thanks

    Stooni from Switzerland!!!

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Ecommerce Module Link to this post

    the $ might come from several places - the template is the first place to look. The controller method for the page would be the next, then the next class.. You can have to trace it back and back. My pick is that it is in the template or the controller method so you shouldn't have to dig to deep

  • stooni
    Avatar
    Community Member
    89 Posts

    Re: Ecommerce Module Link to this post

    in order.php in the folder ecommerce/code in line 96 these function
    protected static $site_currency = "USD";

    can i change these in sFr or CHF ???

    Thanks Martin

    5157 Views
Page: 1 2
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.