[ic] Quick order - Enter an SKU into a form

cfm@maine.com cfm@maine.com
Mon, 19 Feb 2001 21:56:41 -0500

On Mon, Feb 19, 2001 at 08:40:50PM -0500, Chris Rapier wrote:
> I'm trying to write a page where the user can simply enter an SKU into a
> form and have that automatically added to their cart. I've got it
> working for the most part except...
> I give them 10 fields they can enter skus into. If they leave an sku
> field blank it adds a 'null' entry into their shopping cart. I can
> delete this by setting the quanitity to zero but it would be better if
> it never entered the item into the shopping cart in the first place. I
> had assumed that an order item without an sku woudl simply be ignored
> but this is not the case. This is under minivend 4 but I'm guessing
> similar problems would arise under interchange.

Are you setting a parallel "array" of mv_order_quantity values?  That will
default to 1 if you do not.  We've got this working but with a multi-line
TEXTAREA so it's not exactly same.

> Any suggestions?
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users


Christopher F. Miller, Publisher                             cfm@maine.com
MaineStreet Communications, Inc         208 Portland Road, Gray, ME  04039
1.207.657.5078                                       http://www.maine.com/
Content management, electronic commerce, internet integration, Debian linux