How to auto-add products to cart on button click
Create a cart permalink
Before you start, it's important to create a cart permalink. Refer to the Shopify guide here for detailed instructions on generating a cart permalink. This link will be used to add products directly to the cart.
If you need to find the variant ID of a specific product, follow the guidelines provided by Shopify here.
Should you encounter any issues during this process, don't hesitate to reach out to Shopify's support for assistance.
Create a popup
Once you have your cart permalink ready, proceed to create a popup on your Pop Convert app.
Add a button to your popup
Within the popup editor, add a button that serves as the trigger for adding products to the cart. In the button's settings, locate the URL section and insert the previously generated cart permalink. This step establishes the connection between the button click and the automatic addition of products to the cart.
Test your popup
Before deploying the feature live, it's important to test your popup to ensure everything functions as expected. Click the button within the popup and verify that the selected product is correctly added to the cart.
Before you start, it's important to create a cart permalink. Refer to the Shopify guide here for detailed instructions on generating a cart permalink. This link will be used to add products directly to the cart.
If you need to find the variant ID of a specific product, follow the guidelines provided by Shopify here.
Should you encounter any issues during this process, don't hesitate to reach out to Shopify's support for assistance.
Create a popup
Once you have your cart permalink ready, proceed to create a popup on your Pop Convert app.
Add a button to your popup
Within the popup editor, add a button that serves as the trigger for adding products to the cart. In the button's settings, locate the URL section and insert the previously generated cart permalink. This step establishes the connection between the button click and the automatic addition of products to the cart.
Test your popup
Before deploying the feature live, it's important to test your popup to ensure everything functions as expected. Click the button within the popup and verify that the selected product is correctly added to the cart.
Updated on: 25/12/2023
Thank you!