[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] How to make Some items fractional & some not?
****** message to minivend-users from minivend@hq.com.au ******
Ok so here's an interesting one.
We have a catalog that has FractionalItems Yes set and has a multiple item
order page.
Some items are fractional =1 in the database and some are fractional =0
How should/could/would we only allow items with fractional=1 to be ordered
fractionally?
We can order .5 pounds of something but not .5 of a can!
We tried variants on this;
<FORM ...
<INPUT TYPE=hidden NAME=mv_check VALUE="Qty_Check">
...
</FORM>
[set Qty_Check]
[perl]
my $qty = $CGI->{mv_orderitem_quantity};
my $out = '';
if ($qty =~ /\./i) {
$CGI->{mv_todo} = 'return';
$CGI->{mv_nextpage} = 'badqty';
}
return;
[/perl]
[/set]
but it didn't work and produces lots of code with each item. (25 on a
sheet).
Clues, Ideas, Samples welcome.
Regards,
Geoff
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list