Go Back   3dCart Shopping Cart Software Forums > Shopping Cart Software > General Configuration Questions

Reply
 
Thread Tools Display Modes
  #1 ()  
Old 01-26-2007, 01:41 AM
Breeze Breeze is offline
3dCart User
 
Join Date: Feb 2006
Posts: 60
Default How do you create a product bundle

I would like to create a bundle and have inventory (stock) updated for each item within the bundle. Can you do this today?
Reply With Quote
  #2 ()  
Old 02-11-2007, 05:33 AM
mueller mueller is offline
3dCart Geek
 
Join Date: Mar 2006
Posts: 317
Default

I don't think you can currently do this with 3DC. However, we added sort of a recommended set of packages and if you click on the buy button it adds all of the products to the cart at once. If you wanted to add a discount for the package you could probably create a discount that is automatically applied if a certain set of products is in the cart.
Reply With Quote
  #3 ()  
Old 02-11-2007, 06:20 PM
superdetail superdetail is offline
3dCart Newbie
 
Join Date: Oct 2006
Posts: 4
Default

mueller,

Could you go into more detail on how you did this?

Maybe an example?
Reply With Quote
  #4 ()  
Old 02-11-2007, 08:12 PM
mueller mueller is offline
3dCart Geek
 
Join Date: Mar 2006
Posts: 317
Default

Quote:
Could you go into more detail on how you did this?
Maybe an example?
Well, we didn't actually do it on our own. A little help from Gonzalo and Jimmy got us started and then we modified as needed. I will post an example but basically you have to create a form with most of the elements set as hidden. These elements list the product(s) and quantities you want included when 'add to cart' is clicked. Without further ado:
Code:
<form ENCTYPE="multipart/form-data" method=post action=add_cart.asp name="add"> <td> <input type=hidden name="item_id" value="1"> <input type=hidden size="2" name="qty-1" value=1> <input type=hidden name="item_id" value="2"> <input type=hidden size="2" name="qty-2" value=1> <input type=hidden name="item_id" value="3"> <input type=hidden size="2" name="qty-3" value=1> <input type=hidden name="item_id" value="4"> <input type=hidden size="2" name="qty-4" value=1> <input type="submit" name="Add" value="Add to Cart" class="btn"> </td> </form>
So this would add one of each of product with an item_id of 1 through 4. For the sake of clarity here is the same thing, but adding 2 of each to the cart:
Code:
<form ENCTYPE="multipart/form-data" method=post action=add_cart.asp name="add"> <td> <input type=hidden name="item_id" value="1"> <input type=hidden size="2" name="qty-1" value=2> <input type=hidden name="item_id" value="2"> <input type=hidden size="2" name="qty-2" value=2> <input type=hidden name="item_id" value="3"> <input type=hidden size="2" name="qty-3" value=2> <input type=hidden name="item_id" value="4"> <input type=hidden size="2" name="qty-4" value=2> <input type="submit" name="Add" value="Add to Cart" class="btn"> </td></form>
Please note the 'td' tags are just part of what I copied and pasted from our page and are obviously not required for this to work.

Hope this helps.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:43 PM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8