verbb / snipcart

A Craft CMS plugin to integrate with Snipcart.
Other
21 stars 9 forks source link

Adding missing default currency #8

Closed ghost closed 5 years ago

ghost commented 5 years ago

This adds the defaultCurrency key/value to the default static config example.

mattstein commented 5 years ago

Thanks!

ghost commented 5 years ago

Good morning Matt,

sorry, but now that we read the currency from the config file, it's not shown in the product details field anymore. Can you see the same behaviour? Should I open a new ticket?

mattstein commented 5 years ago

Hi @mikewink,

That's odd. Saving defaultCurrency in the control panel works as expected, but specifying it in a config file does not. If you wouldn't mind opening a ticket that'd be great.

mattstein commented 5 years ago

Spoke too soon! My issue was with case sensitivity. 'defaultCurrency' => 'eur' works in the static config file and the Product Details field displays as expected in an Entry layout. 'defaultCurrency' => 'EUR', however, does not.

Curious now what your config looks like!