Adding a Product with Variants to the Cart

 

SmithCart supports adding products with variants directly to your cart by adding “productid” and “variantid” in the  querystring.  Follow these steps to obtain the correct link for hyper linking:

 

1.  Navigate to the “Manage Products” page and locate the “Product ID” of the product you want to add to the cart using the querystring.

 

2.  Navigate to the “Product Variant Setup” page and locate the “Variant ID” of the product variant you want to add to the cart using the querystring.

 

3.  The format of the URL when passing multiple product ids and variant ids in the querystring is the following:

 

https://www.mydomain.com/BuyNow/cart.aspx?Variants=1~3~5;14~34~35~38

 

A semi colon is used to delimit “productids” and the tilde is used to delimit “variantids”.  This format allows you to add multiple products and multiple variants and associate products with a specific set of variants.