Set the Quantity field in Shopping Cart
I have eCart 6 and the items I sell are all 'one-offs' so I need the shopping cart option set at 1 and NOT let the customer have the option to increase the quantity
I have eCart 6 and the items I sell are all 'one-offs' so I need the shopping cart option set at 1 and NOT let the customer have the option to increase the quantity
on the add to cart page, give the quantity_add field a value of 1 and set it to hidden.
This way, 1 will always be added to the cart.
<input type="hidden" name="schoolshopcart_1_Quantity_Add" value="1" size="4" >
you will need to change the cart display too, so that the quantity is not updateable
You should also change the setting in the Add to cart server behavior. By default if an item is already in the cart it will "sum quantities" and you can change that to "ignore" or "replace" for unique items.
Ray - On each of the Add to Cart pages, I had set the Quantity to 1 and Action as Ignore (there doesn't appear to be a 'hidden' option. On the Cart page - I have changed the state of the Quantity server behaviour to 'read-only' - will that work?
This is how the code reads now:
<input name="Progs_Quantity_<?php echo $Progs->DisplayInfo("WAUID"); ?>" type="text" id="Progs_Quantity_<?php echo $Progs->DisplayInfo("WAUID"); ?>" onkeypress="waec_showUpdate('Progs_Update_Quantity_<?php echo $Progs->DisplayInfo("WAUID"); ?>',this);" value="<?php echo $Progs->DisplayInfo("Quantity"); ?>" size="3" readonly="readonly" />
That would work... or you can just delete the quantity field and column in the cart display entirely.
I think I'll just stick with that. Trust me to pick a huge site full of items to use as my learning curve!! Thanks again for all your help
Nick
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.