easyorders 0.1.14 → 0.1.16

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.
Files changed (51) hide show
  1. package/README.md +93 -93
  2. package/dist/bin/cli.js +12 -5
  3. package/dist/template/theme/config.json +113 -95
  4. package/dist/template/theme/home-sections/Tilted-Scrolling-Marque/config.json +107 -0
  5. package/dist/template/theme/home-sections/Tilted-Scrolling-Marque/template.liquid +171 -0
  6. package/dist/template/theme/home-sections/category-mosaic/config.json +89 -4
  7. package/dist/template/theme/home-sections/category-mosaic/template.liquid +84 -69
  8. package/dist/template/theme/home-sections/different-hero/config.json +199 -0
  9. package/dist/template/theme/home-sections/different-hero/template.liquid +219 -0
  10. package/dist/template/theme/home-sections/editorial-feature/config.json +27 -1
  11. package/dist/template/theme/home-sections/editorial-feature/template.liquid +11 -10
  12. package/dist/template/theme/home-sections/newsletter-luxe/config.json +28 -2
  13. package/dist/template/theme/home-sections/newsletter-luxe/template.liquid +19 -13
  14. package/dist/template/theme/home-sections/runway-hero/config.json +87 -30
  15. package/dist/template/theme/home-sections/runway-hero/template.liquid +59 -29
  16. package/dist/template/theme/home-sections/shop-the-look/config.json +93 -1
  17. package/dist/template/theme/home-sections/shop-the-look/template.liquid +41 -19
  18. package/dist/template/theme/home-sections/slider-before-after/config.json +213 -0
  19. package/dist/template/theme/home-sections/slider-before-after/template.liquid +336 -0
  20. package/dist/template/theme/home-sections/test-hero-allbird/config.json +130 -0
  21. package/dist/template/theme/home-sections/test-hero-allbird/template.liquid +149 -0
  22. package/dist/template/theme/home-sections/trust-promise/config.json +76 -2
  23. package/dist/template/theme/home-sections/trust-promise/template.liquid +119 -96
  24. package/dist/template/theme/home-sections/zoom-parallax/config.json +48 -0
  25. package/dist/template/theme/home-sections/zoom-parallax/template.liquid +135 -0
  26. package/dist/template/theme/product-data-schema.json +27 -0
  27. package/dist/template/theme/schema.json +136 -151
  28. package/dist/template/theme/script.js +1095 -586
  29. package/dist/template/theme/sections/breadcrumbs.liquid +17 -17
  30. package/dist/template/theme/sections/categories.liquid +26 -10
  31. package/dist/template/theme/sections/fake-counter.liquid +27 -27
  32. package/dist/template/theme/sections/fake-stock.liquid +6 -6
  33. package/dist/template/theme/sections/fake-visitor.liquid +6 -6
  34. package/dist/template/theme/sections/featured-products.liquid +143 -110
  35. package/dist/template/theme/sections/fixed-buy-button.liquid +51 -46
  36. package/dist/template/theme/sections/footer.liquid +128 -129
  37. package/dist/template/theme/sections/gallery.liquid +65 -61
  38. package/dist/template/theme/sections/header.liquid +232 -152
  39. package/dist/template/theme/sections/home-products-grid.liquid +167 -109
  40. package/dist/template/theme/sections/list-products.liquid +136 -93
  41. package/dist/template/theme/sections/order-invoice.liquid +102 -154
  42. package/dist/template/theme/sections/product-description.liquid +40 -30
  43. package/dist/template/theme/sections/product-details.liquid +48 -63
  44. package/dist/template/theme/sections/products-grid.liquid +134 -86
  45. package/dist/template/theme/sections/related-products.liquid +152 -88
  46. package/dist/template/theme/sections/reviews.liquid +70 -55
  47. package/dist/template/theme/sections/slider.liquid +43 -43
  48. package/dist/template/theme/sections/thanks.liquid +33 -33
  49. package/dist/template/theme/style.css +5617 -3923
  50. package/dist/template/theme/theme-data.json +26 -9
  51. package/package.json +40 -40
@@ -1,154 +1,102 @@
1
- <div class="ab-invoice">
2
- <div class="ab-invoice-header">
3
- {% if logo and logo != "" %}
4
- <img class="ab-invoice-logo" src="{{ logo }}" alt="{{ store_name }}" />
5
- {% endif %}
6
- <button
7
- class="ab-invoice-track-btn"
8
- type="button"
9
- title="{{ tracking_link }}"
10
- onclick="this.dispatchEvent(new CustomEvent('copy-tracking-link',{bubbles:true,detail:{link:'{{ tracking_link }}'}}));"
11
- >{{ t_copy_tracking_link }}</button>
12
- </div>
13
-
14
- <div class="ab-invoice-body">
15
- <div class="ab-invoice-sidebar">
16
- {% if has_contact %}
17
- <address class="ab-invoice-store-info">
18
- <h3 class="ab-invoice-store-name">{{ store_name }}</h3>
19
- <span class="ab-invoice-contact-row">
20
- {% if contact_phone and contact_phone != "" %}
21
- <a href="tel:{{ contact_phone }}">
22
- <span class="ab-invoice-contact-label">{{ t_phone }}:</span> {{ contact_phone }}
23
- </a>
24
- {% endif %}
25
- {% if contact_email and contact_email != "" %}
26
- <a href="mailto:{{ contact_email }}">
27
- <span class="ab-invoice-contact-label">{{ t_email }}:</span> {{ contact_email }}
28
- </a>
29
- {% endif %}
30
- </span>
31
- {% if contact_address and contact_address != "" %}
32
- <span>
33
- <span class="ab-invoice-contact-label">{{ t_address }}:</span> {{ contact_address }}
34
- </span>
35
- {% endif %}
36
- </address>
37
- {% endif %}
38
-
39
- <div class="ab-invoice-shipping">
40
- <h3 class="ab-invoice-section-title">{{ t_shipping_details }}</h3>
41
- <dl class="ab-invoice-dl">
42
- <div class="ab-invoice-dl-row">
43
- <dt>{{ t_name }}:</dt>
44
- <dd>{{ order.full_name }}</dd>
45
- </div>
46
- <div class="ab-invoice-dl-row">
47
- <dt>{{ t_phone }}:</dt>
48
- <dd>{{ order.phone }}</dd>
49
- </div>
50
- {% if order.email and order.email != "" %}
51
- <div class="ab-invoice-dl-row">
52
- <dt>{{ t_email }}:</dt>
53
- <dd>{{ order.email }}</dd>
54
- </div>
55
- {% endif %}
56
- {% if order.country and order.country != "" %}
57
- <div class="ab-invoice-dl-row">
58
- <dt>{{ t_country }}:</dt>
59
- <dd>{{ order.country }}</dd>
60
- </div>
61
- {% endif %}
62
- {% if order.government and order.government != "" %}
63
- <div class="ab-invoice-dl-row">
64
- <dt>{{ t_government }}:</dt>
65
- <dd>{{ order.government }}</dd>
66
- </div>
67
- {% endif %}
68
- {% if order.address and order.address != "" %}
69
- <div class="ab-invoice-dl-row">
70
- <dt>{{ t_address }}:</dt>
71
- <dd>{{ order.address }}</dd>
72
- </div>
73
- {% endif %}
74
- <div class="ab-invoice-dl-row">
75
- <dt>{{ t_payment_details }}:</dt>
76
- <dd>{{ order.payment_method }}</dd>
77
- </div>
78
- {% if order.transfer_receipt and order.transfer_receipt != "" %}
79
- <div class="ab-invoice-dl-row ab-invoice-dl-row-center">
80
- <img src="{{ order.transfer_receipt }}" alt="Transfer Receipt" class="ab-invoice-receipt-img" />
81
- </div>
82
- {% endif %}
83
- </dl>
84
- </div>
85
-
86
- <div class="ab-invoice-timeline">
87
- <ul class="ab-invoice-notes-list">
88
- <li>
89
- <span>{{ t_order_created }}</span>
90
- <span class="ab-invoice-note-date">{{ order.created_at }}</span>
91
- </li>
92
- {% for note in order_notes %}
93
- <li>
94
- <span>{{ note.note }}</span>
95
- <span class="ab-invoice-note-date">{{ note.created_at }}</span>
96
- </li>
97
- {% endfor %}
98
- </ul>
99
- </div>
100
- </div>
101
-
102
- <div class="ab-invoice-main">
103
- <div class="ab-invoice-status-row">
104
- <span class="ab-invoice-status-label">{{ t_order_status }}:</span>
105
- <span class="ab-invoice-status-value">{{ order.status_label }}</span>
106
- </div>
107
-
108
- <div class="ab-invoice-items">
109
- {% for item in order.cart_items %}
110
- <div class="ab-invoice-item">
111
- {% if item.thumb and item.thumb != "" %}
112
- <img class="ab-invoice-item-img" src="{{ item.thumb }}" alt="{{ item.name }}" loading="lazy" />
113
- {% endif %}
114
- <div class="ab-invoice-item-details">
115
- <h4 class="ab-invoice-item-name">{{ item.name }}</h4>
116
- {% if item.variants and item.variants != "" %}
117
- <p class="ab-invoice-item-variants">{{ item.variants }}</p>
118
- {% endif %}
119
- <p class="ab-invoice-item-qty">{{ t_items_count }}: {{ item.quantity }}</p>
120
- <p class="ab-invoice-item-unit-price">{{ t_piece_price }}: {{ item.price }} {{ currency }}</p>
121
- {% if item.metadata_html and item.metadata_html != "" %}
122
- <div class="ab-invoice-item-metadata">{{ item.metadata_html }}</div>
123
- {% endif %}
124
- </div>
125
- <span class="ab-invoice-item-total">{{ t_total }} {{ item.total }} {{ currency }}</span>
126
- </div>
127
- {% endfor %}
128
- </div>
129
-
130
- <div class="ab-invoice-totals">
131
- <div class="ab-invoice-dl-row">
132
- <dt>{{ t_product_total }}:</dt>
133
- <dd>{{ order.cost }} {{ currency }}</dd>
134
- </div>
135
- {% unless order.is_digital %}
136
- <div class="ab-invoice-dl-row">
137
- <dt>{{ t_shipping_cost }}:</dt>
138
- <dd>{% if order.shipping_cost %}{{ order.shipping_cost }} {{ currency }}{% else %}{{ t_free_shipping }}{% endif %}</dd>
139
- </div>
140
- {% endunless %}
141
- {% if order.coupon_code and order.coupon_code != "" %}
142
- <div class="ab-invoice-dl-row">
143
- <dt>{{ t_coupon_code }}: {{ order.coupon_code }}</dt>
144
- <dd>{{ order.coupon_discount }} {{ currency }}</dd>
145
- </div>
146
- {% endif %}
147
- <div class="ab-invoice-dl-row ab-invoice-total-row">
148
- <dt>{{ t_total }}:</dt>
149
- <dd>{{ order.total_cost }} {{ currency }}</dd>
150
- </div>
151
- </div>
152
- </div>
153
- </div>
154
- </div>
1
+ <div class="ab-invoice">
2
+ <div class="ab-invoice-header">
3
+ <button
4
+ class="ab-invoice-track-btn"
5
+ type="button"
6
+ title="{{ tracking_link }}"
7
+ onclick="this.dispatchEvent(new CustomEvent('copy-tracking-link',{bubbles:true,detail:{link:'{{ tracking_link }}'}}));"
8
+ >{{ t_copy_tracking_link }}</button>
9
+ </div>
10
+
11
+ <div class="ab-invoice-body">
12
+ <div class="ab-invoice-main">
13
+
14
+ <div class="ab-invoice-timeline">
15
+ <ul class="ab-invoice-notes-list">
16
+ <li>
17
+ <span>{{ t_order_created }}</span>
18
+ <span class="ab-invoice-note-date">{{ order.created_at }}</span>
19
+ </li>
20
+ {% for note in order_notes %}
21
+ <li>
22
+ <span>{{ note.note }}</span>
23
+ <span class="ab-invoice-note-date">{{ note.created_at }}</span>
24
+ </li>
25
+ {% endfor %}
26
+ </ul>
27
+ </div>
28
+
29
+ <div class="ab-invoice-items">
30
+ {% for item in order.cart_items %}
31
+ <div class="ab-invoice-item">
32
+ {% if item.thumb and item.thumb != "" %}
33
+ <img class="ab-invoice-item-img" src="{{ item.thumb }}" alt="{{ item.name }}" loading="lazy" />
34
+ {% endif %}
35
+ <div class="ab-invoice-item-details">
36
+ <h4 class="ab-invoice-item-name">{{ item.name }}</h4>
37
+ {% if item.variants and item.variants != "" %}
38
+ <p class="ab-invoice-item-variants">{{ item.variants }}</p>
39
+ {% endif %}
40
+ <p class="ab-invoice-item-qty">{{ t_items_count }}: {{ item.quantity }}</p>
41
+ <p class="ab-invoice-item-unit-price">{{ t_piece_price }}: {{ item.price }} {{ currency }}</p>
42
+ </div>
43
+ <span class="ab-invoice-item-total">{{ t_total }} {{ item.total }} {{ currency }}</span>
44
+ </div>
45
+ {% endfor %}
46
+ </div>
47
+
48
+ <div class="ab-invoice-shipping">
49
+ <h3 class="ab-invoice-section-title">{{ t_shipping_details }}</h3>
50
+ <dl class="ab-invoice-dl">
51
+ <div class="ab-invoice-dl-row">
52
+ <dt>{{ t_name }}:</dt>
53
+ <dd>{{ order.full_name }}</dd>
54
+ </div>
55
+ <div class="ab-invoice-dl-row">
56
+ <dt>{{ t_phone }}:</dt>
57
+ <dd>{{ order.phone }}</dd>
58
+ </div>
59
+ {% if order.email and order.email != "" %}
60
+ <div class="ab-invoice-dl-row">
61
+ <dt>{{ t_email }}:</dt>
62
+ <dd>{{ order.email }}</dd>
63
+ </div>
64
+ {% endif %}
65
+ <div class="ab-invoice-dl-row">
66
+ <dt>{{ t_address }}:</dt>
67
+ <dd>{{ order.address }}</dd>
68
+ </div>
69
+ <div class="ab-invoice-dl-row">
70
+ <dt>{{ t_payment_details }}:</dt>
71
+ <dd>{{ order.payment_method }}</dd>
72
+ </div>
73
+ </dl>
74
+ </div>
75
+
76
+ <div class="ab-invoice-totals">
77
+ <div class="ab-invoice-dl-row">
78
+ <dt>{{ t_product_total }}:</dt>
79
+ <dd>{{ order.cost }} {{ currency }}</dd>
80
+ </div>
81
+ {% unless order.is_digital %}
82
+ <div class="ab-invoice-dl-row">
83
+ <dt>{{ t_shipping_cost }}:</dt>
84
+ <dd>{% if order.shipping_cost %}{{ order.shipping_cost }} {{ currency }}{% else %}{{ t_free_shipping }}{% endif %}</dd>
85
+ </div>
86
+ {% endunless %}
87
+ <div class="ab-invoice-dl-row ab-invoice-total-row">
88
+ <dt>{{ t_total }}:</dt>
89
+ <dd>{{ order.total_cost }} {{ currency }}</dd>
90
+ </div>
91
+ </div>
92
+
93
+ <div class="ab-invoice-status-row">
94
+ <span class="ab-invoice-status-label">{{ t_order_status }}:</span>
95
+ <span class="ab-invoice-status-value">{{ order.status_label }}</span>
96
+ </div>
97
+
98
+ </div>
99
+
100
+
101
+ </div>
102
+ </div>
@@ -1,30 +1,40 @@
1
- <div class="lq-desc-accordion">
2
- {% if description != "" %}
3
- <div class="lq-desc-item" data-open="true">
4
- <button class="lq-desc-toggle" type="button" aria-expanded="true">
5
- <span>{{ description_label }}</span>
6
- <span class="lq-desc-chevron"></span>
7
- </button>
8
- <div class="lq-desc-panel" style="display:block">
9
- <div class="lq-desc-content product_description">
10
- <div class="ql-editor leading-10" style="text-align:start" dir="auto">{{ description }}</div>
11
- </div>
12
- </div>
13
- </div>
14
- {% endif %}
15
-
16
- {% for policy in policies %}
17
- <div class="lq-desc-item">
18
- <button class="lq-desc-toggle" type="button" aria-expanded="false">
19
- <span class="lq-desc-toggle-label">
20
- <img src="{{ policy.icon }}" alt="" class="lq-desc-icon" />
21
- <span>{{ policy.title }}</span>
22
- </span>
23
- <span class="lq-desc-chevron"></span>
24
- </button>
25
- <div class="lq-desc-panel" style="display:none">
26
- <div class="lq-desc-content">{{ policy.content }}</div>
27
- </div>
28
- </div>
29
- {% endfor %}
30
- </div>
1
+ <div class="lq-desc-accordion">
2
+ {% if description != "" %}
3
+ <div class="lq-desc-item" data-open="true"> <button class="lq-desc-toggle" type="button" aria-expanded="true"> <span>{{ description_label }}</span>
4
+ <span class="lq-desc-chevron"></span>
5
+ </button>
6
+ <div class="lq-desc-panel" style="display:block"> <div class="lq-desc-content product_description">
7
+ <div class="ql-editor leading-10" style="text-align:start" dir="auto">{{ description }}</div>
8
+ </div>
9
+ </div>
10
+ </div>
11
+ {% endif %}
12
+
13
+ {% for desc in product_theme_data.desc %}
14
+ <div class="lq-desc-item">
15
+ <button class="lq-desc-toggle" type="button" aria-expanded="false">
16
+ <span class="lq-desc-toggle-label">
17
+ <span>{{ desc.title_headline }}</span>
18
+ </span>
19
+ <span class="lq-desc-chevron"></span>
20
+ </button>
21
+ <div class="lq-desc-panel" style="display:none">
22
+ <div class="lq-desc-content">{{ desc.title_desc }}</div>
23
+ </div>
24
+ </div>
25
+ {% endfor %}
26
+
27
+ {% for policy in policies %}
28
+ <div class="lq-desc-item">
29
+ <button class="lq-desc-toggle" type="button" aria-expanded="false">
30
+ <span class="lq-desc-toggle-label">
31
+ <span>{{ policy.title }}</span>
32
+ </span>
33
+ <span class="lq-desc-chevron"></span>
34
+ </button>
35
+ <div class="lq-desc-panel" style="display:none">
36
+ <div class="lq-desc-content">{{ policy.content }}</div>
37
+ </div>
38
+ </div>
39
+ {% endfor %}
40
+ </div>
@@ -1,63 +1,48 @@
1
- <div class="ab-pd">
2
- <h1 class="ab-pd-name">{{ product_name }}</h1>
3
-
4
- <div class="ab-pd-price-row">
5
- {% if sale_price and sale_price < price %}
6
- <span class="ab-pd-price-old">{{ price }} {{ currency }}</span>
7
- <span class="ab-pd-price ab-pd-price-sale">{{ sale_price }} {{ currency }}</span>
8
- {% else %}
9
- <span class="ab-pd-price">{{ price }} {{ currency }}</span>
10
- {% endif %}
11
- </div>
12
-
13
- {% if rating > 0 %}
14
- <div class="ab-pd-rating">
15
- <div class="ab-pd-stars">
16
- {% assign full_stars = rating | floor %}
17
- {% assign has_half = false %}
18
- {% assign decimal = rating | minus: full_stars %}
19
- {% if decimal >= 0.25 and decimal < 0.75 %}
20
- {% assign has_half = true %}
21
- {% elsif decimal >= 0.75 %}
22
- {% assign full_stars = full_stars | plus: 1 %}
23
- {% endif %}
24
-
25
- {% for i in (1..5) %}
26
- {% if i <= full_stars %}
27
- <span class="ab-pd-star ab-pd-star-filled"></span>
28
- {% elsif has_half and i == full_stars | plus: 1 %}
29
- <span class="ab-pd-star ab-pd-star-half"></span>
30
- {% else %}
31
- <span class="ab-pd-star ab-pd-star-empty"></span>
32
- {% endif %}
33
- {% endfor %}
34
- </div>
35
- <span class="ab-pd-reviews-count">({{ reviews_count }})</span>
36
- </div>
37
- {% endif %}
38
-
39
- {% if description and description != "" %}
40
- <p class="ab-pd-description">{{ description }}</p>
41
- {% endif %}
42
-
43
- {% comment %} Wishlist & Compare buttons on the product detail page — dispatch toggle events handled by the storefront JS layer
44
- <div class="ab-pd-actions">
45
- <button
46
- class="ab-pd-wishlist-btn"
47
- type="button"
48
- aria-label="Add to wishlist"
49
- onclick="event.preventDefault();event.stopPropagation();this.dispatchEvent(new CustomEvent('toggle-wishlist',{bubbles:true,detail:{productId:'{{ product_id }}'}}));"
50
- >
51
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg>
52
- </button>
53
- <button
54
- class="ab-pd-compare-btn"
55
- type="button"
56
- aria-label="Compare"
57
- onclick="event.preventDefault();event.stopPropagation();this.dispatchEvent(new CustomEvent('toggle-compare',{bubbles:true,detail:{productId:'{{ product_id }}'}}));"
58
- >
59
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="16 3 21 8 16 13"/><line x1="21" y1="8" x2="9" y2="8"/><polyline points="8 21 3 16 8 11"/><line x1="3" y1="16" x2="15" y2="16"/></svg>
60
- </button>
61
- </div>
62
- {% endcomment %}
63
- </div>
1
+ <div class="ab-pd">
2
+ <h1 class="ab-pd-name">{{ product_name }}</h1>
3
+
4
+ <div class="ab-pd-price-row">
5
+ {% if sale_price and sale_price < price %}
6
+ <span class="ab-pd-price-old">{{ price }} {{ currency }}</span>
7
+ <span class="ab-pd-price ab-pd-price-sale">{{ sale_price }} {{ currency }}</span>
8
+ {% else %}
9
+ <span class="ab-pd-price">{{ price }} {{ currency }}</span>
10
+ {% endif %}
11
+ </div>
12
+
13
+ <div class="ab-pd-divider"></div>
14
+
15
+ {% if rating > 0 %}
16
+ <div class="ab-pd-rating">
17
+ <div class="ab-pd-stars">
18
+ {% assign full_stars = rating | floor %}
19
+ {% assign has_half = false %}
20
+ {% assign decimal = rating | minus: full_stars %}
21
+
22
+ {% if decimal >= 0.25 and decimal < 0.75 %}
23
+ {% assign has_half = true %}
24
+ {% elsif decimal >= 0.75 %}
25
+ {% assign full_stars = full_stars | plus: 1 %}
26
+ {% endif %}
27
+
28
+ {% assign half_star_index = full_stars | plus: 1 %}
29
+
30
+ {% for i in (1..5) %}
31
+ {% if i <= full_stars %}
32
+ <span class="ab-pd-star ab-pd-star-filled"></span>
33
+ {% elsif has_half and i == half_star_index %}
34
+ <span class="ab-pd-star ab-pd-star-half"></span>
35
+ {% else %}
36
+ <span class="ab-pd-star ab-pd-star-empty"></span>
37
+ {% endif %}
38
+ {% endfor %}
39
+ </div>
40
+
41
+ <span class="ab-pd-reviews-count">({{ reviews_count }})</span>
42
+ </div>
43
+ {% endif %}
44
+
45
+ {% if description and description != "" %}
46
+ <p class="ab-pd-description">{{ description }}</p>
47
+ {% endif %}
48
+ </div>