This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ 'video-section.css' | asset_url | stylesheet_tag }} | |
{{ 'component-deferred-media.css' | asset_url | stylesheet_tag }} | |
{%- style -%} | |
.section-{{ section.id }}-padding { | |
padding-top: {{ section.settings.padding_top | times: 0.75 | round: 0 }}px; | |
padding-bottom: {{ section.settings.padding_bottom | times: 0.75 | round: 0 }}px; | |
} | |
@media screen and (min-width: 750px) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Always compare to the docs first: https://shopify.dev/docs/api/ajax/reference/cart | |
// Get the Cart | |
fetch("/cart.js") | |
.then((response) => response.json()) | |
.then((data) => console.log(data)); | |
// Add to Cart | |
let addToCartItem = { | |
items: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
my_reviews is an array of metaobjects assigned via metafields | |
{% endcomment %} | |
{% liquid | |
assign review_min = 1 | |
assign review_max = my_reviews.size | |
assign mod_ref = review_max | minus: review_min | |
assign random_number = "now" | date: "%N" | modulo: mod_ref | plus: review_min | |
assign review = my_reviews[random_number] |
OlderNewer