Skip to content

Instantly share code, notes, and snippets.

@dpw1
dpw1 / file.js
Last active November 19, 2025 10:11
Script shopiy scraper
/*
run in the browser at https://community.shopify.com/
*/
/*
PROMPT:
I'm a shopify developer looking for ideas to record youtube videos and write technical blogs for merchants who do not know coding.
{% if request.page_type == 'product' %}
<script>
window.buttonPriceHandlerVariants = [
{% for variant in product.variants %}
{
<style>
.EzfyColorVariants{
display: flex;
opacity: 0;
transition: all .32s;
align-items: center;
flex-wrap: wrap;
}
{% if section.settings.enable %}
<style>
.EzfyColorVariants{
display: flex;
opacity: 0;
transition: all .32s;
align-items: center;
flex-wrap: wrap;
}
{%- liquid
assign variants_available_arr = product.variants | map: 'available'
assign variants_option1_arr = product.variants | map: 'option1'
assign variants_option2_arr = product.variants | map: 'option2'
assign variants_option3_arr = product.variants | map: 'option3'
assign product_form_id = 'product-form-' | append: section.id
-%}
<style>
,
{
"name": "Badge colors & font size",
"settings": [
{
"type": "header",
"content": "Custom badge colors by ezfycode.com"
},
{
"type": "checkbox",
{% if settings.enable_ezfy_badges_color %}
<style>
{% comment %}EZFY Variables Liquid [start]{% endcomment %}
{% assign sales_badge_background_color = settings.sales_badge_background_color %}
{% assign sales_badge_text_color = settings.sales_badge_text_color %}
{% assign sales_badge_text_size_desktop = settings.sales_badge_text_size_desktop %}
{% assign sales_badge_text_size_mobile = settings.sales_badge_text_size_mobile %}
{% assign sold_out_badge_background_color = settings.sold_out_badge_background_color %}
{% assign sold_out_badge_text_color = settings.sold_out_badge_text_color %}
{% assign sold_out_text_size_desktop = settings.sold_out_text_size_desktop %}
@dpw1
dpw1 / featured-collection.liquid
Created March 5, 2024 00:56
Hide sold out products at featured collection section
@dpw1
dpw1 / image-banner.json
Last active September 4, 2023 08:17
Show mobile banner & slideshow’s text on top of image [all free themes]
{
"type": "header",
"content": "Custom options by [ezfycode.com](https://ezfycode.com)"
},
{
"type": "checkbox",
"id": "show_on_top_of_image_on_mobile_by_ezfycode",
"label": "Show text on top of image on mobile",
"default": true
},
@dpw1
dpw1 / newsletter.liquid
Last active March 3, 2024 21:47
Dawn theme - add first name email
<div class="field">
<input
id="NewsletterForm--{{ section.id }}"
type="text"
name="contact[first_name]"
class="field__input"
value=""
autocorrect="off"
autocapitalize="off"
{% if form.errors %}