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
{% if settings.show_multiple_currencies %} | |
{{ "//cdn.shopify.com/s/javascripts/currencies.js" | script_tag }} | |
<script> | |
window.onload = function() { | |
Currency.format = '{{ settings.currency_format | default: 'money_with_currency_format' }}'; | |
var shopCurrency = '{{ shop.currency }}'; | |
/* Sometimes merchants change their shop currency, let's tell our JavaScript file */ | |
Currency.moneyFormats[shopCurrency].money_with_currency_format = {{ shop.money_with_currency_format | strip_html | json }}; |
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 %}<h3>First 7 products</h3> | |
<ul> | |
{% for product in collections.products.products limit:7 %} | |
<li><a href="{{ product.url }}">{{ product.title }}</a></li> | |
{% endfor %} | |
</ul> | |
<h3>8 and up</h3> | |
<ul> | |
{% for product in collections.products.products offset:7 %} | |
<li><a href="{{ product.url }}">{{ product.title }}</a></li> |
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
<script> | |
/* Put this in theme.liquid, preferably right before "</body>" */ | |
(function() { | |
var discountParam = document.location.search.match(/discount=(\w+)/); | |
if (discountParam && discountParam.length > 1) { | |
document.cookie = discountParam[0]; | |
} | |
})(); | |
</script> |
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 my_subcollection = collection.handle %} | |
{% assign stringSplit = my_subcollection | split:'-' %} | |
{% for stringPart in stringSplit %} | |
{%if forloop.first == true %} | |
<span>{{ stringPart | strip }}</span> | |
{%endif%} | |
{% endfor %} |
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 %} | |
To add a companion product to the cart automatically if a primary product is in cart: | |
1. Create a new link list under your Navigation tab. | |
2. In that link list, make the first link point to companion product. | |
3. Copy your link list handle where indicated at line 9 | |
4. Set the minimum cart total required for the bonus product on line 10 | |
{% endcomment %} | |
{% assign linklist = linklists['put-your-link-list-handle-here'] %} | |
{% assign min_total = 100 %} |
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
<script type="application/javascript"> | |
function getIP(json) { | |
alert("My public IP address is: " + json.ip); | |
} | |
</script> | |
<script type="application/javascript" | |
src="http://api.ipify.org?format=jsonp&callback=getIP"> | |
</script> | |
<!-- END: IP Stuff --> |
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
bower install --save fontawesome | |
gulp | |
gulp watch | |
plus inserare overrides | |
{ | |
"name": "sage", | |
"homepage": "https://roots.io/sage/", | |
"authors": [ |
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
https://apps.shopify.com/wishy |
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
Important: putem instal asa: bower install Chart.js --save. | |
sau pasii mai jos: | |
1.modifam assets/manifest.json iar la linia 22 punem codul | |
"slick-carousel.js": { | |
"files": ["../bower_components/slick-carousel/slick/slick.js"], | |
"main": true | |
}, | |
"slick-carousel.css": { | |
"files": ["../bower_components/slick-carousel/slick/slick.css"], |
OlderNewer