I have a landing page that I am creating in UnBounce. I have created a button on UnBounce and I would like it to go to a shopping cart on my woocommerce page that has the item in it. For example, if I am selling chocolate chip cookies the user would click the "buy now" for chocolate chip cookies on UnBounce and it would take them to a shopping cart on woocommerce with a dozen chocolate chip cookies in it. I would rather this didn't go to the product page (which I know is possibe) - just the shopping cart. Thank you for you help.
1
votes
1 Answers
1
votes
WooCommerce can add any product to the cart using the following URL http://example.com?add-to-cart=PRODUCT_ID
Unfortunately Unbonce does a mess with add-to-cart
variable, changing it to addtocart
.
So you will need a function to receive the Unbounce variables and change them to WooCommerce variables.
Does it make sense to you?
Regards, Gabriel