Dynamically Adding Products to Cart

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
ajackson
Ensign (ENS)
Ensign (ENS)
Posts: 18
Joined: Wed Sep 28, 2016 3:25 am

Dynamically Adding Products to Cart

Post by ajackson » Wed Sep 28, 2016 4:06 am

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?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Dynamically Adding Products to Cart

Post by mazhar » Wed Sep 28, 2016 9:12 pm

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.

Post Reply