Dawn Theme - More Buy Buttons Blocks In Product Page

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!

@JayneFGulbin It works more than fine. Thank you!

@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…