I am using pro builder to create a squeeze page for a product and need to create a functional add to cart button on that page which will add the specific product to cart and go to checkout. How can this be done in pro builder?
Hello @amanjaura,
Thanks for writing in! Please make use of the “Add to Cart” WooCommerce dynamic element when you are in the builder. The Add to cart button is for adding a product to a page while you can use Add to cart form in your custom single product layout.
Best Regards.
Thanks.
Tried it but where do we add product ID in this?
Hi
The Add to Cart Button
is outputting this on the URL field ?add-to-cart={{dc:woocommerce:product_id}}
.
The {{dc:woocommerce:product_id}}
part is dynamic. If you want to manually output a specific product, replace that with the specific product ID (e.g. ?add-to-cart=10
where 10
is the product ID).
Hope it helps,
Cheers!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.