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
<!-- 1.0 --> | |
{% assign fa_current_variant = product.selected_or_first_available_variant %} | |
{%- assign fa_variant_count = product.variants | size -%} | |
{%- assign fa_count = 0 -%} | |
<script type="application/ld+json" data-creator_name="NatureCity"> | |
{ | |
"@context": "http://schema.org/", | |
"@type": "Product", | |
"name": "{{ product.title | strip_html | escape }}", | |
"url": "{{ shop.url }}{{ product.url }}", |
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
{% assign current_variant = product.selected_or_first_available_variant %} | |
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org/", | |
"@type": "Product", | |
"@id": "{{ shop.url | append: '/products/' | append: product.handle }}", | |
"url": "{{ shop.url | append: '/products/' | append: product.handle }}", | |
"name": "{{ product.title }}", | |
"image": "{{ product.featured_image.src | img_url: 'master' }}", |
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
{%- assign og_title = page_title -%} | |
{%- assign og_url = canonical_url -%} | |
{%- assign og_type = 'website' -%} | |
{%- assign og_description = page_description | default: shop.description | default: shop.name -%} | |
{%- if settings.share_image -%} | |
{%- capture og_image_tags -%} | |
<meta property="og:image" content="http:{{ settings.share_image | img_url: '1200x1200' }}"> | |
{%- endcapture -%} |
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 %} | |
This is for widgets that share content on Twitter. | |
Twitter developer info: https://dev.twitter.com/docs/cards | |
Brought to you by Viralica http://viralica.com | |
{% endcomment %} | |
{% if template contains 'product' %} | |
<meta name="twitter:card" content="product"> | |
<meta name="twitter:title" content="{{ product.title }}" /> | |
<meta name="twitter:description" content="{{ product.description | strip_html | strip_newlines | truncatewords: 160, '' | escape }}" /> |
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 %} | |
This snippet renders meta data needed to create a Twitter card | |
for products and articles. | |
IMPORTANT: change @your_twitter_username with your actual twitter username! | |
Your cards must be approved by Twitter to be activated | |
- https://dev.twitter.com/docs/cards/validation/validator |
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
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |