Print Page | Close Window

Force Number of BTO Items

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=3999
Printed Date: 15-July-2025 at 6:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Force Number of BTO Items
Posted By: steverguy
Subject: Force Number of BTO Items
Date Posted: 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!



Replies:
Posted By: ProductCart
Date 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!


-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software


Posted By: intour
Date 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


-------------
http://www.innerview.co.uk - Innerview
Productcart Platinum Reseller
Web Design/Hosting/Virtual Tours



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net