zz-shopify-components 0.24.1-beta.4 → 0.24.1-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zz-shopify-components",
3
- "version": "0.24.1-beta.4",
3
+ "version": "0.24.1-beta.5",
4
4
  "description": "Reusable Shopify components for theme projects",
5
5
  "keywords": [
6
6
  "shopify",
@@ -16,7 +16,7 @@
16
16
  {% for block in accessories_points %}
17
17
  {% if block.settings.swiper_index == accessories_points_index %}
18
18
  <div
19
- onclick='window.accessoriesPointClickHandler(event, {{ block.settings.accessories_product.variants[0].id }})'
19
+ onclick='window.accessoriesPointClickHandler(event, {{ block.settings.accessories_product.selected_or_first_available_variant.id }})'
20
20
  data-point-swiper-index='{{ block.settings.swiper_index }}'
21
21
  class='product-accessories-point-item tw-absolute tw-rounded-full tw-backdrop-blur-[20px] tw-gap-[12px] tw-flex tw-items-center tw-justify-center tw-bg-[rgba(255,255,255,0.8)] lg:tw-py-[6px] tw-py-[4px] lg:tw-pl-[8px] tw-pl-[4px] tw-pr-[20px] tw-z-50 tw-cursor-pointer'
22
22
  style='left: {{ block.settings.point_x }}%; top: {{ block.settings.point_y }}%;'
@@ -54,12 +54,12 @@
54
54
  <div class='lg:tw-text-[16px] tw-text-[12px] tw-leading-[1.2] tw-font-bold'>
55
55
  {{
56
56
  block.settings.accessories_title
57
- | default: block.settings.accessories_product.title
57
+ | default: block.settings.accessories_product.selected_or_first_available_variant.title
58
58
  }}
59
59
  </div>
60
60
  <div class='lg:tw-text-[14px] tw-text-[12px] tw-leading-[1.5] tw-font-medium'>
61
61
  {{
62
- block.settings.accessories_product.price
62
+ block.settings.accessories_product.selected_or_first_available_variant.price
63
63
  | money_without_trailing_zeros
64
64
  }}
65
65
  </div>