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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Ecommerce Module


Go to End


15 Posts   6705 Views

Avatar
stooni

Community Member, 89 Posts

9 April 2008 at 8:49am

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

Avatar
Willr

Forum Moderator, 5523 Posts

9 April 2008 at 11:23am

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

Avatar
stooni

Community Member, 89 Posts

9 April 2008 at 9:29pm

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

Avatar
Willr

Forum Moderator, 5523 Posts

10 April 2008 at 10:53am

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

error_reporting(E_ALL ^ E_NOTICE);

Avatar
stooni

Community Member, 89 Posts

10 April 2008 at 9:04pm

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

Avatar
stooni

Community Member, 89 Posts

15 April 2008 at 6:23am

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!!!

Avatar
Willr

Forum Moderator, 5523 Posts

15 April 2008 at 10:46am

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

Avatar
stooni

Community Member, 89 Posts

17 April 2008 at 8:51am

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

Go to Top