statamic-rad-pack / shopify

Integrate your Shopify products into Statamic using the Admin API.
https://statamic.com/addons/rad-pack/shopify
Other
8 stars 3 forks source link

Storefront API initialization not working properly #71

Closed hmalaud closed 3 years ago

hmalaud commented 3 years ago

I might be doing something wrong, but I can't get the addon (starter kit or not) to work. I'm using a Shopify development store protected by password (might come from that?) with 3 active products.

Steps to reproduce

  1. Install Starter kit, create user and publish assets as described here: https://statamic-shopify.jackwhiting.co.uk/starter-kit
  2. Publish Assets with php artisan vendor:publish --provider="Jackabox\Shopify\ServiceProvider"
  3. Create Shopify private app as described here: https://statamic-shopify.jackwhiting.co.uk/setup
  4. Fill .env file with variables as described here: https://statamic-shopify.jackwhiting.co.uk/env
  5. Update Statamic (from CP or command line)
  6. Import products in admin (working fine)
  7. Go to product page
  8. Click "add to cart"

Result

Nothing happens. On load, shopify checkout returns null as node's value.

hmalaud commented 3 years ago

Emptying app cache, browser's localstorage, and reexporting the js files with webpack solved the problems with the starter kit, can't really say what was wrong there though, but well!