I modified the code in main-cart-footer.liquid and my modification worked the way I want it to, but it looks like I’ve screwed up the code for the checkout button in the process. Here’s what the page looks like at the moment.
https://www.hollandcountryandgarden.com/cart
I don’t know enough about coding to know exactly where the problem starts or ends, so I’ve just copied the code for the entire section here (sorry if it’s too much). Can anyone help me identify the mistake and figure out what I need to do to fix it?
{% assign needs_form = false %}
{{ ‘component-cart.css’ | asset_url | stylesheet_tag }}
{{ ‘component-totals.css’ | asset_url | stylesheet_tag }}
{{ ‘component-price.css’ | asset_url | stylesheet_tag }}
{{ ‘component-discounts.css’ | asset_url | stylesheet_tag }}
{%- style -%}
.section-{{ section.id }}-padding {
padding-top: {{ section.settings.padding_top | times: 0.75 | round: 0 }}px;
padding-bottom: {{ section.settings.padding_bottom | times: 0.75 | round: 0 }}px;
}
@media screen and (min-width: 750px) {
.section-{{ section.id }}-padding {
padding-top: {{ section.settings.padding_top }}px;
padding-bottom: {{ section.settings.padding_bottom }}px;
}
}
{%- endstyle -%}
-
{%- for discount in cart.cart_level_discount_applications -%}
- {{- 'icon-discount.svg' | inline_asset_content -}} {{ discount.title | escape }} (-{{ discount.total_allocated_amount | money }}) {%- endfor -%}
{{ 'sections.cart.estimated_total' | t }}
{{ cart.total_price | money_with_currency }}
{%- if additional_checkout_buttons -%}
{% schema %}
{
“name”: “t:sections.main-cart-footer.name”,
“class”: “cart__footer-wrapper”,
“settings”: [
{
“type”: “color_scheme”,
“id”: “color_scheme”,
“label”: “t:sections.all.colors.label”,
“default”: “scheme-1”
},
{
“type”: “range”,
“id”: “padding_top”,
“min”: 0,
“max”: 100,
“step”: 4,
“unit”: “px”,
“label”: “t:sections.all.padding.padding_top”,
“default”: 40
},
{
“type”: “range”,
“id”: “padding_bottom”,
“min”: 0,
“max”: 100,
“step”: 4,
“unit”: “px”,
“label”: “t:sections.all.padding.padding_bottom”,
“default”: 40
}
],
“blocks”: [
{
“type”: “subtotal”,
“name”: “t:sections.main-cart-footer.blocks.subtotal.name”,
“limit”: 1
},
{
“type”: “buttons”,
“name”: “t:sections.main-cart-footer.blocks.buttons.name”,
“limit”: 1
},
{
“type”: “@app”
}
]
}
{% endschema %}