This file contains 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
<!-- the collection handle we are pulling from is 'new'---> | |
{% assign collection = collections['new'] %} | |
{% for product in collection.products | limit: 4 %} | |
<!-- the 'product-block' is specific to your theme, it is html for a grid item of a product, could be called product-grid-item, grid-product, etc ---> | |
{% render 'product-block', product: product %} | |
<!-- product ---> | |
{% endfor %} |
This file contains 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
./ffmpeg -y -i input.mov -c:v libx264 -crf 30 -profile:v high -pix_fmt yuv420p -color_primaries 1 -color_trc 1 -colorspace 1 -movflags +faststart -an output.mp4 |
This file contains 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
/* Courtesy of @AllThingsSmitty "sharing is caring" https://twitter.com/AllThingsSmitty/status/930617039085035520 */ | |
/* highlights any images on the page without alt text or with empty alt text */ | |
/* note - sometimes empty alt text is correct: https://www.w3.org/WAI/tutorials/images/decorative/ */ | |
img[alt=""], img:not([alt]) { | |
border: red 5px solid; | |
} |
This file contains 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
<style type="text/css"> | |
.stats { | |
color: white; | |
text-align: right; | |
} | |
.stat-unit { | |
margin-bottom: 24px; | |
} | |
.amount { |
This file contains 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
found1 = false | |
found2 = false | |
is_po_box = false | |
if(Input.cart.shipping_address.address1) | |
this_address = Input.cart.shipping_address.address1 | |
found1 = true | |
end | |
if(Input.cart.shipping_address.address1) | |
this_second_address = Input.cart.shipping_address.address2 |
This file contains 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 %} | |
make sure when this is called the {{ product }} object is the correct one on the product page (e.g. nothing else has called {% assign product = ... %} | |
In your collection of products or when you loop through the related/recommended products, just get those IDs and include them in the power_reviews_ids variable | |
E.g. | |
{% for related_product in product_collections.products %} | |
{% assign product = related_product %} | |
{% include 'product-grid-item' %} | |
{% if power_reviews_ids == '' %} |
This file contains 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
<section class="accordion faq"> | |
{% if section.settings.title %} | |
<p style="text-align: center; font-style: italic;">{{ section.settings.title }}</p> | |
{% endif %} | |
{% for block in section.blocks %} | |
{% capture index %}{% increment ind %}{% endcapture %} | |
<input id="tab-{{ index }}" type="checkbox" name="faqs" class="hidden"> | |
<div class="section section-{{ section.id }} {% if forloop.first == true %}opened{% endif %} mar-top-sm" data-block-id="{{ block.id }}" {{ block.shopify_attributes }}> |
This file contains 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
{% assign remaining = products_per_page %} | |
{% for product in collection.products limit: products_per_page %} | |
{% if product.available and product.price >= product.compare_at_price_max %} | |
{% include 'partial--product' %} | |
{% assign remaining = remaining | minus: 1 %} | |
{% endif %} | |
{% endfor %} | |
{% for product in collection.products limit: products_per_page %} | |
{% if product.compare_at_price > product.price %} | |
{% if remaining > 0 %} |
This file contains 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 %} | |
Instructions: | |
- Create a blank page called 'Google Base Product Feed'and save it | |
- Open that page for editing and select 'page.google-feed' from the page template selector | |
- Add a brief site description to the meta-shop-description snippet | |
- The feed url should now be available at http://www.yoursite.com/pages/google-base-product-feed | |
- validate your field at http://validator.w3.org/feed/ | |
- when ready, submit your feed at http://base.google.com |
NewerOlder