Skip to content

Commit

Permalink
Update from Shopify for theme Sale on Sale END
Browse files Browse the repository at this point in the history
Committed from shop: Misha & Puff
  • Loading branch information
shopify[bot] authored Jan 24, 2025
1 parent 68402f9 commit 0e677bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 6 additions & 2 deletions layout/theme.shogun.landing.liquid
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{%- comment %}<locksmith:4751>{% endcomment -%}
{%- include 'locksmith' -%}

Check warning on line 2 in layout/theme.shogun.landing.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

layout/theme.shogun.landing.liquid#L2

[DeprecatedTag] Use the 'render' tag instead of 'include'
{%- comment %}</locksmith:4751>{% endcomment -%}

{% comment %}
Auto-generated by Shogun.
This file can be re-written at any time.
Expand Down Expand Up @@ -33,10 +37,10 @@ This file can be re-written at any time.
</title>

{% if page_description %}
{%- comment %}<locksmith:6a64>{% endcomment -%}
{%- comment %}<locksmith:1997>{% endcomment -%}
{%- capture var %}{% render 'locksmith-variables', variable: 'transparent', hiding_scope: 'resource' %}{% endcapture %}{% if var == 'true' %}<meta name="description" content="{{ page_description | escape }}">{% endif -%}
{%- comment %}original: <meta name="description" content="{{ page_description | escape }}">{%- endcomment %}
{%- comment %}</locksmith:6a64>{% endcomment -%}
{%- comment %}</locksmith:1997>{% endcomment -%}
{% endif %}

{% render 'meta-tags' %}
Expand Down
9 changes: 9 additions & 0 deletions snippets/shogun-products.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ This file can be re-written at any time.
<script type="text/javascript">
window.__shgProducts = window.__shgProducts || {};
{% for handle in handles %}
{%- comment %}<locksmith:9142>{% endcomment -%}
{%- capture var %}{% render 'locksmith-variables', scope: 'subject', subject: handle, variable: 'transparent' %}{% endcapture %}{% if var == "true" %}{% else %}{% continue %}{% endif -%}
{%- comment %}</locksmith:9142>{% endcomment -%}
{% assign currentProduct = all_products[handle] %}

Check warning on line 14 in snippets/shogun-products.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/shogun-products.liquid#L14

[VariableName] The variable 'currentProduct' uses wrong naming format
{% if currentProduct != blank %}
window.__shgProducts["{{handle}}"] = {{currentProduct | json }};
Expand Down Expand Up @@ -38,11 +41,17 @@ This file can be re-written at any time.
window.__shgProducts = window.__shgProducts || {};
window.__shgCategories = window.__shgCategories || {};
{%- for collection_meta in collections_meta %}
{%- comment %}<locksmith:c681>{% endcomment -%}
{%- capture var %}{% render 'locksmith-variables', scope: 'subject', subject: collection_meta, variable: 'transparent' %}{% endcapture %}{% if var == "true" %}{% else %}{% continue %}{% endif -%}
{%- comment %}</locksmith:c681>{% endcomment -%}
{%- assign collection = collections[collection_meta.handle] -%}
window.__shgCategories["{{collection.handle}}"] = window.__shgCategories["{{collection.handle}}"] || {{ collection | json }};
window.__shgCategories["{{collection.handle}}"].products = window.__shgCategories["{{collection.handle}}"].products || [];
{%- paginate collection.products by collection_meta.count -%}
{%- for product in collection.products %}
{%- comment %}<locksmith:4349>{% endcomment -%}
{%- capture var %}{% render 'locksmith-variables', scope: 'subject', subject: product, subject_parent: collection, variable: 'transparent' %}{% endcapture %}{% if var == "true" %}{% else %}{% continue %}{% endif -%}
{%- comment %}</locksmith:4349>{% endcomment -%}
window.__shgProducts["{{product.handle}}"] = window.__shgProducts["{{product.handle}}"] || {{ product | json }};
if (!window.__shgCategories["{{collection.handle}}"].products.find(product => product.id == {{ product.id }})) {
Expand Down

0 comments on commit 0e677bd

Please sign in to comment.