![]() |
Force Number of BTO Items |
Post Reply
|
| Author | |
steverguy
Groupie
Joined: 05-April-2006 Location: United States Status: Offline Points: 44 |
Post Options
Thanks(0)
Quote Reply
Topic: Force Number of BTO ItemsPosted: 14-September-2010 at 1:24pm |
|
I have a client who sells boxed lunches. The Brown Bag Lunch contains 1 Turkey sandwhich, chips and your choice of a cookie or a soda (Coke, Pepsi, etc) - (you can have either a soda or a cookie, but not both).
You have to order at least 10 boxed lunches. Each lunch can have a different soda/cookie selection.
I believe BTO is the best option for this. Brown Bag Lunch would be the main item. Cookies, Coke, Pepsi and other Drinks are BTO Items.
In the BTO Product editor, I set the minimum # of products to 10.
In the BTO Configuration page I enable check boxes and quantity fields - this way, a user can have 10 boxed lunches with 4 Cokes, 2 Pepsies and 4 cookies. This functions correctly... kind of.
However, what if the user wants 11 boxed lunches? If that happens, the user needs to be reminded to select another BTO Item. What if they order 10 boxed lunches, but select 11 bto items. They need to be prompted to only choose 10 bto items.
Does this make sense? I can write custom code for this - but I would be easier (for upgrading sake) if there was a solid way to do it leaving Product Cart as is.
Any suggestions would be appreciated!
|
|
![]() |
|
ProductCart
Admin Group
ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
Post Options
Thanks(0)
Quote Reply
Posted: 15-September-2010 at 1:07am |
|
BTO now allows you to set the maximum number of items that you can select on the configuration page (E.g. select 20 chocolates for this 20-item chocolate box). So one way to accomplish what you are describing - without code modifications - would be to use that feature, and then create BTO products for different, pre-defined number of boxed lunches.
So you would have the following BTO products in your catalog (which you can quickly created by using the cloning feature): 10-pack Boxed Lunches 20-pack Boxed Lunches ... Another solution - with some custom programming - is to introduce code that ensures that the ratio is correct between the item selections and the BTO quantity selected (e.g. enforce that "number of boxed lunches = (number of beverages + number of cookies)". You might be able to accomplish this with just some additional JavaScript, so it could be fairly non-intrusive in terms of future ProductCart updates. We hope this helps! |
|
![]() |
|
intour
Senior Member
Joined: 30-June-2006 Location: United Kingdom Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Posted: 23-September-2010 at 5:45am |
|
I implemented something very similar earlier this year.
It did require custom coding. If you want some more information please message me.
Nigel
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |