/
Integration for AddToCart functionality
Integration for AddToCart functionality
The Add To Cart functionality allows products to be added to the current order by accessing a web page.
Step-by-step guide
Setup:
- Setup the following default templates (via zAllocate.aspx):
- Add To Cart Success Template (can use tokens for Product in the template)
- Add To Cart Fail Template
- It is not essential to setup the templates. If they don't exist a default value is displayed:
- For success: "Successfully added [Product.ProductCode] to cart."
- For fail: "Failed to add [Product.ProductCode] to cart."
To add products to the current order:
- Login to the CSS website. You need to login otherwise the products will not be added to the order.
- Go to the page AddToCart.aspx and pass the following parameters:
- ProductCode
- Qty
- If the product is already on the order, the quantity of the product on the order is increased by the Qty specified.
For example, if the website is mywebsite.com to add the product "ABC123" to the current order go to the web page: mywebsite.com/AddToCart.aspx?ProductCode=ABC123&Qty=1
In order for the product to be added to the current order:
- A user must be logged in.
- The logged in user must have access to AddToCart.aspx page.
- All the parameters must be specified and must be valid:
- ProductCode must be an existing product.
- Qty must be a positive integer greater than zero.
Related help
© Copyright 2001-2023 Commerce Vision Pty Ltd. Use of this site signifies your acceptance of Commerce Vision’s Terms & Conditions. CV Connect, the Commerce Vision logos, and other Commerce Vision marks are assets of Commerce Vision Pty Ltd.