I am currently using Debeautify theme on my shopify website. I had an animation feature (called “de-beautify cart goal”) during the 14-day free trial. It used to show a cute animation of a cart moving with a “free shipping” text. However, my 14-day trial period is now over.
Somehow, the source code is somehow still available. Can someone please tell me if this feature can be enabled again by making some changes in the code?? Maybe removing certain keywords like “hidden”?
{%- if settings.dbtfy_cart_goal -%}
{%- assign goal = section.settings.dbtfy_cart_goal_amount -%}
{%- assign goal_amount = goal | times: 1 -%}
{%- assign cart_total = cart.total_price | divided_by: 100.0 -%}
{%- assign percentage_reached = cart_total | times: 100 | divided_by: goal -%}
{%- if section.blocks.size > 0 -%}
{%- for block in section.blocks -%}
{%- for i in (1..10) -%}
{%- capture index -%}{{ forloop.index }}{%- endcapture -%}
{%- capture country_goal_selector -%}dbtfy_cart_goal_amount_{{index}}{%- endcapture -%}
{%- capture region_selector -%}dbtfy_cart_goal_region_{{index}}{%- endcapture -%}
{%- assign country_goal = block.settings[country_goal_selector] | times: 1 -%}
{%- assign region = block.settings[region_selector] -%}
{%- if country_goal != blank and region != blank -%}
{%- if country_goal > cart_total -%}
{{ section.settings.dbtfy_cart_goal_before_text }} {{ section.settings.dbtfy_cart_goal_after_text }}
{%- else -%}
{{ section.settings.dbtfy_cart_goal_reached_text }}
{%- endif -%}
{%- if section.settings.dbtfy_cart_goal_icons != blank -%}
{{ section.settings.dbtfy_cart_goal_icons }}
{%- endif -%}
{{ country_goal }}
{%- endif -%}
{%- endfor -%}
{%- endfor -%}
{%- endif -%}
{%- if goal != blank -%}
{%- if goal > cart_total -%}
{{ section.settings.dbtfy_cart_goal_before_text }} {{ section.settings.dbtfy_cart_goal_after_text }}
{%- else -%}
{{ section.settings.dbtfy_cart_goal_reached_text }}
{%- endif -%}
{%- if section.settings.dbtfy_cart_goal_icons != blank -%}
{{ section.settings.dbtfy_cart_goal_icons }}
{%- endif -%}
{{ goal }}
{%- endif -%}
{%- endif -%}
{% schema %}
{
"name": "Cart Goal",
"settings": [
{
"type": "header",
"content": "Help Center"
},
{
"type": "paragraph",
"content": "[Follow our step-by-step tutorial](https://help.debutify.com/en/articles/5054070-how-to-use-the-cart-goal-add-on-in-the-debutify-theme)"
},
{
"type": "paragraph",
"content": "To enable/disable this add-on, go to Theme settings > Debutify Add-ons."
},
{
"type": "header",
"content": "Settings"
},
{
"type": "text",
"id": "dbtfy_cart_goal_before_text",
"label": "Prefix",
"default": "You're"
},
{
"type": "text",
"id": "dbtfy_cart_goal_amount",
"label": "Goal amount",
"info": "e.g. 70 or 70.99. Set up your free [shipping rates](\/admin\/settings\/shipping) matching the amount entered above",
"default": "70"
},
{
"type": "text",
"id": "dbtfy_cart_goal_after_text",
"label": "Suffix",
"default": "away from FREE shipping!"
},
{
"type": "text",
"id": "dbtfy_cart_goal_reached_text",
"label": "Goal reached",
"default": "You are eligible for FREE shipping!"
},
{
"type": "text",
"id": "dbtfy_cart_goal_icons",
"label": "Icon",
"info": "[View all available icons](https:\/\/material.io\/resources\/icons)",
"default": "local_shipping"
}
],
"blocks": [
{
"type": "goal",
"name": "Specific Country Goal",
"settings": [
{
"type": "text",
"id": "title",
"label": "Block name",
"info": "Used for internal identification"
},
{
"type": "header",
"content": "Country Goal 1"
},
{
"type": "text",
"id": "dbtfy_cart_goal_region_1",
"label": "Region",
"info": "Enter continent or country name, e.g: Europe or Germany."
},
{
"type": "text",
"id": "dbtfy_cart_goal_amount_1",
"label": "Goal amount",
"default": "70",
"info": "e.g. 70 or 70.99. Set up your free [shipping rates](/admin/settings/shipping) matching the amount entered above"
},
{
"type": "header",
"content": "Country Goal 2"
},
{
"type": "text",
"id": "dbtfy_cart_goal_region_2",
"label": "Region",
"info": "Enter continent or country name, e.g: Europe or Germany."
},
{
"type": "text",
"id": "dbtfy_cart_goal_amount_2",
"label": "Goal amount",
"default": "70",
"info": "e.g. 70 or 70.99. Set up your free [shipping rates](/admin/settings/shipping) matching the amount entered above"
},
{
"type": "header",
"content": "Country Goal 3"
},
{
"type": "text",
"id": "dbtfy_cart_goal_region_3",
"label": "Region",
"info": "Enter continent or country name, e.g: Europe or Germany."
},
{
"type": "text",
"id": "dbtfy_cart_goal_amount_3",
"label": "Goal amount",
"default": "70",
"info": "e.g. 70 or 70.99. Set up your free [shipping rates](/admin/settings/shipping) matching the amount entered above"
},
{
"type": "header",
"content": "Country Goal 4"
},
{
"type": "text",
"id": "dbtfy_cart_goal_region_4",
"label": "Region",
"info": "Enter continent or country name, e.g: Europe or Germany."
},
{
"type": "text",
"id": "dbtfy_cart_goal_amount_4",
"label": "Goal amount",
"default": "70",
"info": "e.g. 70 or 70.99. Set up your free [shipping rates](/admin/settings/shipping) matching the amount entered above"
},
{
"type": "header",
"content": "Country Goal 5"
},
{
"type": "text",
"id": "dbtfy_cart_goal_region_5",
"label": "Region",
"info": "Enter continent or country name, e.g: Europe or Germany."
},
{
"type": "text",
"id": "dbtfy_cart_goal_amount_5",
"label": "Goal amount",
"default": "70",
"info": "e.g. 70 or 70.99. Set up your free [shipping rates](/admin/settings/shipping) matching the amount entered above"
},
{
"type": "header",
"content": "Country Goal 6"
},
{
"type": "text",
"id": "dbtfy_cart_goal_region_6",
"label": "Region",
"info": "Enter continent or country name, e.g: Europe or Germany."
},
{
"type": "text",
"id": "dbtfy_cart_goal_amount_6",
"label": "Goal amount",
"default": "70",
"info": "e.g. 70 or 70.99. Set up your free [shipping rates](/admin/settings/shipping) matching the amount entered above"
},
{
"type": "header",
"content": "Country Goal 7"
},
{
"type": "text",
"id": "dbtfy_cart_goal_region_7",
"label": "Region",
"info": "Enter continent or country name, e.g: Europe or Germany."
},
{
"type": "text",
"id": "dbtfy_cart_goal_amount_7",
"label": "Goal amount",
"default": "70",
"info": "e.g. 70 or 70.99. Set up your free [shipping rates](/admin/settings/shipping) matching the amount entered above"
},
{
"type": "header",
"content": "Country Goal 8"
},
{
"type": "text",
"id": "dbtfy_cart_goal_region_8",
"label": "Region",
"info": "Enter continent or country name, e.g: Europe or Germany."
},
{
"type": "text",
"id": "dbtfy_cart_goal_amount_8",
"label": "Goal amount",
"default": "70",
"info": "e.g. 70 or 70.99. Set up your free [shipping rates](/admin/settings/shipping) matching the amount entered above"
},
{
"type": "header",
"content": "Country Goal 9"
},
{
"type": "text",
"id": "dbtfy_cart_goal_region_9",
"label": "Region",
"info": "Enter continent or country name, e.g: Europe or Germany."
},
{
"type": "text",
"id": "dbtfy_cart_goal_amount_9",
"label": "Goal amount",
"default": "70",
"info": "e.g. 70 or 70.99. Set up your free [shipping rates](/admin/settings/shipping) matching the amount entered above"
},
{
"type": "header",
"content": "Country Goal 10"
},
{
"type": "text",
"id": "dbtfy_cart_goal_region_10",
"label": "Region",
"info": "Enter continent or country name, e.g: Europe or Germany."
},
{
"type": "text",
"id": "dbtfy_cart_goal_amount_10",
"label": "Goal amount",
"default": "70",
"info": "e.g. 70 or 70.99. Set up your free [shipping rates](/admin/settings/shipping) matching the amount entered above"
}
]
}
]
}
{% endschema %}