adding Rules
Hi,
I would like to know if someone can tell me how to add rules to an oder page i.e. minimum order of a products - customer must order a minimum of 6 cupcakes.
Thanks
Erick
Hi,
I would like to know if someone can tell me how to add rules to an oder page i.e. minimum order of a products - customer must order a minimum of 6 cupcakes.
Thanks
Erick
are you looking to have a minimum order of 6 cupcakes in total, or 6 of any particular kind ?
Hello Craig,
6 of a particular kind
Thanks
Erick
Ok, here's the next question.
Do you only want to sell in multiples of 6, or would a customer be able to add, for example, 8 to their cart ?
The customer can order any number more than 6, so say 6, or more - but no less than 6
Do you have validation toolkit or one of the WA apps which include validation toolkit?
you could try adding server side validation to your page with the add to cart form, checking for the quantity value in the add to cart form.
you would also need to do something similar on your cart page, so if the customer removes items from the cart to below 6 of any one item, they get a similar warning
Yes we do have Server and Client validation webassist tools, can you provide me with an examples of:
Validation trigger
Validation type
server variable
Thanks again
Erick
ok.
Assuming you are on your page with an add to cart form...
the validation trigger would be either any form post or cartname_ATC_button press
the validation type would be number
the server variable would be the add to cart form quantity field.
when you add the validation, set the minimum number to 6.
you then need to add the validation show if code
there is a validation toolkit guide here
validation-toolkit/
Do we use "server" or "client" validation? We have attempted both without luck. In the last post you stated to choose the quantity field from the server variables, we are not seeing that as an option.
Any direction is appreciated.
Thanks Erick
all files are attached
i modified cupcakes.php as you had a lot of duplicate code in there.
I set up server side validation for add to cart form 3, which is for all simple cupcakes.
i also changed your recordsets so all data comes from a table called cupcake1, (as i had this table with all of your items which i used to help you with your image display in an earlier post) and just filtered by product type
if you take a look at the code, it should be clear.
attached is the updated page
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.