Last active
July 5, 2025 12:04
-
-
Save svaustin66/551b3f5249136b2eb20ef3ce3d7007d2 to your computer and use it in GitHub Desktop.
Free Gift With Purchase Shopify Theme Section
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 section.settings.show_section %} | |
| {% include 'cart-gift-with-purchase' %} | |
| {% endif %} | |
| {% schema %} | |
| { | |
| "name": "Gift with Purchase", | |
| "class": "gwp-section", | |
| "settings": [ | |
| { | |
| "type": "checkbox", | |
| "id": "show_section", | |
| "label": "Show section", | |
| "default": true | |
| }, | |
| { | |
| "type": "color", | |
| "id": "cart-gwp-background", | |
| "label": "Background Color", | |
| "default": "#ffffff" | |
| }, | |
| { | |
| "type": "color", | |
| "id": "cart-gwp-border", | |
| "label": "Border Color", | |
| "default": "#ffffff" | |
| }, | |
| { | |
| "type": "header", | |
| "content": "Highest Value Promo" | |
| }, | |
| { | |
| "type": "range", | |
| "id": "top_order_threshold", | |
| "label": "Order size threshold", | |
| "min": 10, | |
| "max": 1000, | |
| "step": 10, | |
| "default": 100, | |
| "unit": "$" | |
| }, | |
| { | |
| "type": "product", | |
| "id": "cart_gwp_product_1", | |
| "label": "Product 1" | |
| }, | |
| { | |
| "type": "richtext", | |
| "id": "cart_gwp_top_text_1", | |
| "label": "Main text 1", | |
| "default": "<p><\/p>" | |
| }, | |
| { | |
| "type": "text", | |
| "id": "cart_gwp_button_1", | |
| "label": "Button text 1", | |
| "default": "Add Free Gift" | |
| }, | |
| { | |
| "type": "richtext", | |
| "id": "cart_gwp_bottom_text_1", | |
| "label": "Bottom text 1", | |
| "default": "<p><\/p>" | |
| }, | |
| { | |
| "type": "header", | |
| "content": "Second Price Tier" | |
| }, | |
| { | |
| "type": "checkbox", | |
| "id": "second_price_tier", | |
| "label": "Use 2nd (lower) price tier" | |
| }, | |
| { | |
| "type": "range", | |
| "id": "second_order_threshold", | |
| "label": "Order size threshold", | |
| "min": 10, | |
| "max": 1000, | |
| "step": 10, | |
| "default": 100, | |
| "unit": "$" | |
| }, | |
| { | |
| "type": "product", | |
| "id": "cart_gwp_product_2", | |
| "label": "Product 2" | |
| }, | |
| { | |
| "type": "richtext", | |
| "id": "cart_gwp_top_text_2", | |
| "label": "Main text 2", | |
| "default": "<p><\/p>" | |
| }, | |
| { | |
| "type": "text", | |
| "id": "cart_gwp_button_2", | |
| "label": "Button text 2", | |
| "default": "Add Free Gift" | |
| }, | |
| { | |
| "type": "richtext", | |
| "id": "cart_gwp_bottom_text_2", | |
| "label": "Bottom text 2", | |
| "default": "<p><\/p>" | |
| }, | |
| { | |
| "type": "header", | |
| "content": "Third Price Tier" | |
| }, | |
| { | |
| "type": "checkbox", | |
| "id": "third_price_tier", | |
| "label": "Use 3rd (even lower) price tier" | |
| }, | |
| { | |
| "type": "range", | |
| "id": "third_order_threshold", | |
| "label": "Order size threshold", | |
| "min": 10, | |
| "max": 1000, | |
| "step": 10, | |
| "default": 100, | |
| "unit": "$" | |
| }, | |
| { | |
| "type": "product", | |
| "id": "cart_gwp_product_3", | |
| "label": "Product 3" | |
| }, | |
| { | |
| "type": "richtext", | |
| "id": "cart_gwp_top_text_3", | |
| "label": "Main text 3", | |
| "default": "<p><\/p>" | |
| }, | |
| { | |
| "type": "text", | |
| "id": "cart_gwp_button_3", | |
| "label": "Button text 3", | |
| "default": "Add Free Gift" | |
| }, | |
| { | |
| "type": "richtext", | |
| "id": "cart_gwp_bottom_text_3", | |
| "label": "Bottom text 3", | |
| "default": "<p><\/p>" | |
| }, | |
| { | |
| "type": "header", | |
| "content": "Fourth Price Tier" | |
| }, | |
| { | |
| "type": "checkbox", | |
| "id": "fourth_price_tier", | |
| "label": "Use 4th (lowest) price tier" | |
| }, | |
| { | |
| "type": "range", | |
| "id": "fourth_order_threshold", | |
| "label": "Order size threshold", | |
| "min": 10, | |
| "max": 200, | |
| "step": 5, | |
| "default": 100, | |
| "unit": "$" | |
| }, | |
| { | |
| "type": "product", | |
| "id": "cart_gwp_product_4", | |
| "label": "Product 4" | |
| }, | |
| { | |
| "type": "richtext", | |
| "id": "cart_gwp_top_text_4", | |
| "label": "Main text 4", | |
| "default": "<p><\/p>" | |
| }, | |
| { | |
| "type": "text", | |
| "id": "cart_gwp_button_4", | |
| "label": "Button text 4", | |
| "default": "Add Free Gift" | |
| }, | |
| { | |
| "type": "richtext", | |
| "id": "cart_gwp_bottom_text_4", | |
| "label": "Bottom text 4", | |
| "default": "<p><\/p>" | |
| }, | |
| { | |
| "type": "header", | |
| "content": "Layout" | |
| }, | |
| { | |
| "type": "range", | |
| "id": "padding_top", | |
| "label": "Top spacing", | |
| "min": 0, | |
| "max": 80, | |
| "default": 20, | |
| "unit": "px" | |
| }, | |
| { | |
| "type": "range", | |
| "id": "padding_bottom", | |
| "label": "Bottom spacing", | |
| "min": 0, | |
| "max": 80, | |
| "default": 20, | |
| "unit": "px" | |
| }, | |
| { | |
| "type": "range", | |
| "id": "padding_left", | |
| "label": "Left spacing", | |
| "min": 0, | |
| "max": 80, | |
| "default": 0, | |
| "unit": "px" | |
| }, | |
| { | |
| "type": "range", | |
| "id": "padding_right", | |
| "label": "Right spacing", | |
| "default": 0, | |
| "min": 0, | |
| "max": 80, | |
| "unit": "px" | |
| }, | |
| { | |
| "type": "header", | |
| "content": "Advanced" | |
| }, | |
| { | |
| "type": "text", | |
| "id": "css_class", | |
| "label": "CSS Class" | |
| }, | |
| { | |
| "type": "textarea", | |
| "id": "custom_css", | |
| "label": "Custom CSS" | |
| } | |
| ], | |
| "presets": [ | |
| { | |
| "name": "Gift with Purchase", | |
| "category": "Layout", | |
| "settings": { | |
| } | |
| } | |
| ] | |
| } | |
| {% endschema %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
could you help me with how to use this?