Maro33
February 2, 2022, 11:39am
1
Hello everyone!!!
Is there any option to add more “Buy Buttons” Blocks on the product page in Dawn Theme???
When you have one applied and click Add Block you can not find it on the list.
Is it possible to have duplicated ones called for instance “Buy Buttons 1”, “Buy Buttons 2”, “Buy Buttons 3”?
Can someone show the code modification so anyone can use it?
Any help is much appreciated.
hi @Maro33
Open your theme editor and open file: main-product.liquid
Search (Ctrl + F) of look for buy_buttons and change the “limit”: ___ to how much limit you want.
If you need 3 buy buttons, it should look like this.
{
"type": "buy_buttons",
"name": "t:sections.main-product.blocks.buy_buttons.name",
"limit": 3,
"settings": [
{
"type": "checkbox",
"id": "show_dynamic_checkout",
"default": true,
"label": "t:sections.main-product.blocks.buy_buttons.settings.show_dynamic_checkout.label",
"info": "t:sections.main-product.blocks.buy_buttons.settings.show_dynamic_checkout.info"
}
]
},
Hope this helps!
Maro33
February 2, 2022, 3:25pm
3
@JayneFGulbin It works more than fine. Thank you!
Maro33
February 3, 2022, 6:35pm
4
@JayneFGulbin Unfortunately this change is causing an error while adding a product to the cart. When a customer is choosing the specific variant, the cart is always loading the first default one…