close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Set the Quantity field in Shopping Cart

Thread began 4/04/2015 4:58 pm by NWak04030229 | Last modified 4/08/2015 1:47 pm by Ray Borduin | 707 views | 5 replies |

NWak04030229

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

Sign in to reply to this post

CraigRBeta Tester

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

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post

NWak04030229

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" />

Sign in to reply to this post

Ray BorduinWebAssist

That would work... or you can just delete the quantity field and column in the cart display entirely.

Sign in to reply to this post

NWak04030229

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

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...