As other users have mentioned, there isn’t a way to create a custom add to cart button just by using dynamic data. Yet the default add to cart element feels lacking.
Here is what I would like to see:
- A DD tag that auto populates the add to cart URL for products in a custom query, with the option to manually select a product when the DD tag is used outside of a query. Also see this post.
- A condition that tests if the product in the query is a single product or a variation. This would allow adding a custom add to cart button for single products, or using a Dropdown element for variation products.
- On pages besides the product template: an option on the add to cart element to immediately select which variation to add to the cart, without going to the product page. Probably as a button for single products, but then a button/drop down (like what is seen with the Filter - Select element) when the product has variations, to select the desired variation to add to the cart.
- Bonus: the ability to add a product to the cart and immediately proceed to the checkout page on click. Essentially a Buy Now button that encourages quick checkout of a single product.
If anyone else has any other ideas please share them, or provide a link to your original posts. I’m going to submit this to the ideas page.