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
Input.cart.line_items.each do |item| | |
# ================================================================ | |
# LINE ITEM PROPERTY DISCOUNT | |
# ================================================================ | |
# Set the line item property in Shopify theme When adding item to cart | |
# | |
# line item property is a key/value pair. Example: {"_someCoolPromo": "1"} | |
# | |
# In this example: | |
# "_someCoolPromo" is the key we look for here and must ALWAYS start with an underscore. |
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 %}theme-check-disable TemplateLength{% endcomment %} | |
{{ 'section-main-product.css' | asset_url | stylesheet_tag }} | |
{{ 'component-accordion.css' | asset_url | stylesheet_tag }} | |
{{ 'component-badge.css' | asset_url | stylesheet_tag }} | |
{{ 'component-price.css' | asset_url | stylesheet_tag }} | |
{{ 'component-rte.css' | asset_url | stylesheet_tag }} | |
{{ 'component-slider.css' | asset_url | stylesheet_tag }} | |
<link rel="stylesheet" href="{{ 'component-cart-notification.css' | asset_url }}" media="print" onload="this.media='all'"> | |
<link rel="stylesheet" href="{{ 'component-deferred-media.css' | asset_url }}" media="print" onload="this.media='all'"> |
touch ~/.ssh/config
Open it and modify the file.
Host *
AddKeysToAgent yes
UseKeyChain yes
-
Go to https://YOURSTORENAME.myshopify.com/admin/settings/files?limit=250
-
Open Dev Tools, and go to Console tab.
-
In Console paste the code below to download shopify-files.html file.
function fetchPageAssets() {
let images = document.querySelectorAll('img[src*=files]');
images.forEach(function(image) {
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
<form action="/cart/add" method="post" enctype="multipart/form-data" id="AddToCartForm"> | |
{% if collection.products_count > 0 %} | |
{% for product in collection.products %} | |
{% if product.available %} | |
<div class="row"> | |
<div class="col-xs-12 col-sm-4"> | |
<img src="{{ product.image | default: product.featured_image | img_url: 'large' }}" alt="{{ variant.title | escape }}" /> | |
</div> | |
<div class="col-xs-12 col-sm-8" style="padding: 15% 40px 0"> | |
<div class="col-xs-12 col-sm-12"> |
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 %} Hide Secret Shipping Rates From Checkout {% endcomment %} | |
<script type="text/javascript"> | |
if (Shopify.Checkout.step == 'shipping_method') { | |
$(window).load(function () { | |
$(".radio__label__primary").each(function () { | |
var shipMeth = $(this).data("shipping-method-label-title"); | |
if (shipMeth) { | |
if (shipMeth.includes("Name Of Secret Shipping Rate Here") || shipMeth.includes("Another Secret Ship Option Rate Here")) { | |
$(this).closest(".content-box__row").remove(); | |
$(".section__content").each(function () { |
- Go to your Shopify
admin/settings/files
page - Open your browser Dev tools, go to the console
- Paste the content of the
console_download_list.js
file, and press enter - Your browser will automatically fetch each page and download the list with the links of all the files on the CDN.
- Using your preffered code editor, edit the HTML file by adding each link in img tag.
- Open the HTML file you just edit in a browser then right click-save as. It will download the HTML file again along with all the images in the location you specify.
NewerOlder