Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
HI,
I want to know is it possible that we have to use default names or tag names for submitting for checkout or add to cart? I can see someone has used input type and someone has used button for submitting checkout or add to cart.
Hey,
If you mean to the names of the HTML element - the most common ones are 'checkout', 'goto_pp' and 'goto_gc'.
Regards
Most of the theme developers use the name "checkout."
This would be a perfect candidate for one of the Community App Developer Code Guidelines as described in https://community.shopify.com/c/Custom-Storefronts-Support/Community-App-Developer-Code-Guidelines/t....
We could specify that it is recommended to name the checkout button as "checkout."