1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How can I programmatically add or Increment a product in the users shopping cart?

How can I programmatically add or Increment a product in the users shopping cart?

2 posts, 1 answered
  1. Gregg
    Gregg avatar
    20 posts
    Registered:
    22 Jan 2013
    19 Feb 2013
    Link to this post

    Many of the products in our product list are customizable. However the cost to customize that product is a set price regardless of the quantity ordered.  So say we have product A and the cost is $100 each. And the set cost to customize any product is $10. Then if someone orders 1 product A Customized the total cost would be $110. But if they order 2 product A's customized, then the cost should be $210.

    Since we can't use a variation because that price gets added on a per unit basis. We thought perhaps we could create a "Customization" product that cost $10. And implement some logic that would check to see if the customer has marked the product to be customized when they order. If so we would add 1 "Customization" product to shopping cart regardless of the quantity ordered. But I can find no way to programmatically add a product to the shopping cart.

    We're on Sitefinity version 5.2

    Any help would be greatly appreciated.

  2. Gregg
    Gregg avatar
    20 posts
    Registered:
    22 Jan 2013
    20 Feb 2013 in reply to Gregg
    Link to this post

    I found the solution Here

    Answered
2 posts, 1 answered