commercetools / sunrise-spa

SUNRISE shop template as a single-page application
https://sunrise-spa.now.sh
Apache License 2.0
51 stars 78 forks source link

"Add to Shopping Bag" button is not working on MacOSX + Chrome/Firefox #260

Closed juansopenpay closed 2 years ago

juansopenpay commented 3 years ago

Hi,

When clicking on the "Add to Shopping Bag" on MacOSX on Chrome or Firefox the items are not added to the cart and the console throws the following error:

Error: GraphQL error: LineItem error: Tax category '3ffce334-981a-4f0f-bee2-a15ff97bd82b' is missing a tax rate for country 'GB' at new t (bundle.esm.js:63) at Object.next (bundle.esm.js:1004) at (Observable.js:135) at w (Observable.js:179) at e.value (Observable.js:235) at bundle.esm.js:866 at Set.forEach () at Object.next (bundle.esm.js:866) at (Observable.js:135) at w (Observable.js:179)

The button works fine only in Safari.

My setup is the following:

Steps to reproduce:

Screenshot 2021-08-19 at 16 10 20

DanPerovich commented 3 years ago

@juansopenpay: The owner of the commercetools project associated with this frontend will need to configure a tax rate for the country 'GB' within the tax category shown '3ffce..' This is not a sunrise-spa code issue, it is a configuration issue within the environment you are trying to use "openpay.mldemo.co.uk".

harm-meijer commented 3 years ago

@juansopenpay I can see that you set up UK as a country in sunrise.config.js but it's missing a currency entry so when you select the country no products will be listed because a currency is mandatory when querying for products as the sunrise spa project uses price selection.

I am back from holiday so if you need any help I'll be available, please let me know if you need any further assistance.