View Single Post
  #4 (permalink)  
Old 07-25-2008, 12:51 AM
Murray *ACE*
 
Posts: n/a
Diggs:
Default Re: Minimum order on a shopping cart?

Ahh - thanks, Mick. Turns out the cart has multiple ways to submit the form
(clear, update, keep shopping, and checkout) so having it on the onsubmit
event was not optimal. I moved it to the checkout button, and it works a
treat, I think!

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Michael White" <mwhite13@rochester.rr.com> wrote in message
news:g6au28$coa$1@forums.macromedia.com...
> Murray *ACE* wrote:
>> Got it - changed the function to this -
>>
>> <script type="text/javascript">
>> function minimumCheck(value) {
>> if (value < 6.00) {
>> alert("There is a $6.00 minimum order at Armydogtags.com");
>> return false;
>> }
>> return true;
>> }
>> </script>
>>
>> and the form tag to this -
>>
>> onSubmit="return(minimumCheck(<?php echo
>> $ADTCart->TotalColumn("TotalPrice") ?>))">
>>
>>

> There should be a space between return and "(":
>
> onSubmit="return minimumCheck(<?php echo
> $ADTCart->TotalColumn("TotalPrice") ?>);">
>
> Mick


Reply With Quote