BuyButton & VariantSelector
Configure and connect the buy button and the variant picker correctly.
Updated:
BuyButton is the buy button. In "buyNow" mode a click goes straight to checkout, in "addToCart" mode the product is only added to the cart and the visitor stays on the page.
If a product has variants, the BuyButton blocks the purchase until all options are selected and a valid combination exists. This prevents accidentally buying without a selection.
The thank-you and cancel URLs in the checkout settings must be full (absolute) addresses.
VariantSelector displays the product options, such as size or color. The selection is passed to the BuyButton that shares the same Wix Product ID. To wire this up, bind the Wix Product ID field to the CMS on both components. Products without variants are not rendered by the VariantSelector at all.