Skip to content

Instantly share code, notes, and snippets.

View amirsuhail786's full-sized avatar
🎯
Focusing

Senior Front End Developer | Shopify Expert | eCommerce Specialist | WordPress Ninja amirsuhail786

🎯
Focusing
View GitHub Profile
@hsiehjack
hsiehjack / shopify-collection-product.liquid
Last active March 8, 2021 13:08
Shopify - Getting minimum and maximum price for variants in product. Found out product already has attribute for min and max. This can be used for custom function.
{% comment %}
{% assign price_min = 0 %}
{% assign price_max = 0 %}
{% for variant in product.variants %}
{% if price_min == 0 or price_max == 0 %}
{% assign price_min = variant.price %}
{% assign price_max = variant.price %}
{% endif %}
{% if price_min > variant.price %}
{% assign price_min = variant.price %}
@DavidWells
DavidWells / reset.css
Last active April 11, 2024 19:03 — forked from karbassi/reset.css
CSS reset. Follow me on the twitters for more tips: https://twitter.com/davidwells
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,