I try to add to cart paypal and credit debit card buttons. I use dawn theme with cart template cart.json. Every guide how to place that buttons on cart page is for themes with cart.liquid template.
Can anyone give a tip how to place “paypal and credit debit card button” code to cart.json?
For OS2.0 themes before modifying code directly first check the visual theme editor for that template if you can add a custom-liquid or custom-html block/section where you can simply paste your new code.
To migrate old vintage tutorials about object templates(index,products,cart,etc) to online store 2.0 themes what you’ll be looking for is a section that starts with “main” and then the template name and possibly some other words.
So cart.liquid > cart.json > main-cart.liquid
For dawn this is sections main-cart-items.liquid or main-cart-footer.liquid
Those would be the files to customize , NOT the json files which are basically configuration files.