Skip to content

Releases: statamic-rad-pack/shopify

1.3.1

09 Apr 02:12
0a5f363

Choose a tag to compare

New

  • ProductVariant tag has been updated to give you multiple ways to interact with them.
    • product_variant:generate - outputs the html prerendered (default)
    • product_variant:loop - gives you access to variant data to use however you wish.
    • product_variant:by_title - lets you grab one variant by it's title.
    • product_variant:by_index - lets you grab one variant by index.

Updated

  • InStock, ProductVariant, and ProductPrice tag updated so you no longer need to define :product="slug" each time.
  • Updated theme files to reflect the tag changes.

1.3.0

05 Apr 16:46
bd0a658

Choose a tag to compare

  • [New] Adds the ability to pull options names into an array field. (See Upgrade Guide). Ref #31.
  • [Update] Default variant now has the title 'Default' for single products rather than 'Default Title'
  • [Bug] Now removes old variants that are no longer present in Shopify. Fixes #32.
  • [Bug] Additional fields are no longer being overwritten on Products. Fixes #30.
  • [Bug] Fixes the way product tags/type/vendors import. No longer a mismatch.
  • [Bug] Fixes variant data would be overwritten if extended.

Upgrade Guide

If you want to display options/handle them on the site you need to update your Product.yaml blueprint in resources/blueprints/collections/products with the options field. Append the following. You're then free to hide it.

  -
    handle: options
    field:
      mode: dynamic
      display: Options
      type: array
      icon: array
      listable: hidden

1.2.0

26 Mar 19:13
e038455

Choose a tag to compare

The one about webhooks

  • [New] All webhooks have been given a name.
  • [New] Added a webhook for when a product is created in Shopify.
  • [New] Added a webhook for when a product is updated in Shopify

these two webhooks if utilised, should mean you don't have to run full imports after the first one.

  • [Fix] Incorrect name on Product Delete Webhook.
  • [Update] Product delete webhook now has a new path. See potentially breaking below.

Potentially breaking

WebHook endpoint for Product Deletion has changed from /!/statamic-shopify/webhook/product-deletion to /!/statamic-shopify/webhook/product/delete

1.1.3

22 Mar 19:18
8a51f48

Choose a tag to compare

  • [Fix] Fixing error with cart.js when variants didn't have images.

1.1.2

17 Mar 17:41
da0dd1e

Choose a tag to compare

  • [Fix] Fixing error when no image is found for a product

1.1.1

15 Mar 22:20
52275ad

Choose a tag to compare

  • [New] Added lang array to config to overwrite some of the default text used in tags.
  • [New] Added option to product_variants tag to show out of stock in the select.
  • [New] Appends data-in-stock to each option in the variant loop to show if in/out of stock.

1.1.0

15 Mar 21:52
80925fa

Choose a tag to compare

  • [New] Added {{ in_stock :product="slug" }} tag to check if a product is in stock.
  • [New] Pulls in inventory_policy from the Shopify API for variants (You will need to sync again).
  • [New] Displays out of stock on {{ product_price }} tag if a policy exists and there is no stock.
  • [Update] Moved the Shopify Settings into Tools and branded it with the Shopify Bag icon.
  • [Fix] Product Price tag had been accidentally removed.

1.0.3

15 Mar 12:20
0b93316

Choose a tag to compare

  • [Fix] Fixing create a new product in Statamic throwing error.
  • [Fix] Styling on no variants found for products.
  • [Fix] Invalid namespace on Variant Action

1.0.2

13 Mar 17:45
444126a

Choose a tag to compare

  • [Fix] Fixing tag foreach on null
  • [Fix] Fixing quick start link in placeholder

1.0.1

08 Mar 17:49
d672031

Choose a tag to compare

Updated

  • Added a debounce handler and implemented it around the cart quantity JS.