[ic] Quick order - Enter an SKU into a form
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
Christopher F. Miller, Publisher firstname.lastname@example.org
MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
Content management, electronic commerce, internet integration, Debian linux