Dynamically Adding Products to Cart
Dynamically Adding Products to Cart
Just a background ... I work for a manufacturing company and we currently have a secured site for our customers where they are able to access certain company specific information for pricing, quoting, etc. Within our secured site we have a product builder where the customer has the ability to create custom parts (we only build/sell custom parts) and based on the product they build and quantity they specify a price is dynamically created. Basically what we want to do is add an “Add to Cart” button on our current product builder page and insert that data into the shopping cart. I talked with someone at Ablecommerce and they said it was possible using the web api. After purchasing ablecommerce and looking through the api/help web pages, I couldn't find anything we could use to help us do this. Could you help us with what steps we need to take to make this happen or give us an example of how to do this?
Re: Dynamically Adding Products to Cart
This is possible by using CommerceBuilder API. If you want the product item to be added using a link then working code for AC Gold is posted in this thread
viewtopic.php?f=65&t=17169
Simply download AddTobasket.aspx and upload it to your website root. Now when you visit the page with product id in query string it will add it to current user's basket. In your Product builder you can have Add To Cart link generated against every product pointing to AddToBasket.aspx page with product id in its query string parameter.
viewtopic.php?f=65&t=17169
Simply download AddTobasket.aspx and upload it to your website root. Now when you visit the page with product id in query string it will add it to current user's basket. In your Product builder you can have Add To Cart link generated against every product pointing to AddToBasket.aspx page with product id in its query string parameter.