Skip to content

Releases: dlerm/shopify-wishlist

Release v2.3.0

21 Oct 05:37
821fbbb
Compare
Choose a tag to compare

Upgrade Wishlist.js to ES6+ syntax (const, arrow functions, async/await)

Release v2.2.0

20 Oct 05:24
Compare
Choose a tag to compare

Online Store 2.0 Updates

  • Convert template files to Shopify's new JSON template structure
    • page.wishlist.json
    • product.card.json
  • Create new sections that act as the "main" section for each of the new JSON templates
    • wishlist-template.liquid
    • product-card-template.liquid
  • Update Wishlist.js to account for Shopify's auto-generated div wrappers around section markup

Release v2.1.0

07 Aug 20:07
91385fe
Compare
Choose a tag to compare

Wishlist event hooks

Events:

  • Document event: shopify-wishlist:updated

    • Triggered once a wishlist update action(add/remove) is finished
    • Usage:
      document.addEventListener('shopify-wishlist:updated', function (event) {
        var wishlist = event.detail.wishlist;
        // Your code goes here
      }
      
  • Document event: shopify-wishlist:init-product-grid

    • Triggered once the product card HTML content is finished loading & appending to the document
    • Usage:
      document.addEventListener('shopify-wishlist:init-product-grid', function (event) {
        var wishlist = event.detail.wishlist;
        // Your code goes here
      }
      
  • Document event: shopify-wishlist:init-buttons

    • Triggered once the wishlist button toggles have been updated to proper active/inactive state based on wishlist content
    • Usage:
      document.addEventListener('shopify-wishlist:init-buttons', function (event) {
        var wishlist = event.detail.wishlist;
        // Your code goes here
      }
      

Release v2.0.1 [Hotfix]

25 Oct 19:10
Compare
Choose a tag to compare

Release 2: Hotfixes

Release v2.0.0

25 Oct 19:09
Compare
Choose a tag to compare

Rebuild. All new files. Leaner approach using AJAX loaded product cards.