[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] Common Adjust as MixMatch, again.
****** message to minivend-users from "March Roseland" <march@uia.net> ******
Hi,
Sorry to write again so soon, but... all seemed to be well using the
mix-match usertag:
UserTag mix-match Order number
UserTag mix-match Routine <<EOR
sub {
my $nitems = shift;
my $ca_string = 'products:price';
my $level;
my @breaks = ( 26, 100, 200 );
foreach $level ( @breaks ) {
last if $nitems < $level;
$ca_string = "pricing:q$level";
}
return $ca_string;
}
EOR
and this Common Adjust string in catalog.cfg:
CommonAdjust "[mix-match number='[nitems]']",
;pricing:price_group,q1,q26,q100,q200, ;products:price
But then I found that quantity.html was giving only the single item price in
all four columns.
So then I tried:
CommonAdjust pricing:price_group,q1,q26,q100,q200:, ;products:price
and several other similar strings, and added a column named 'price_group' to
my pricing.asc, with a '1' in every row. When I do that, the quantity.html
page displays the appropriate prices for each quantity... but I no longer
have the mixmatch functionality. 26 of one item drops the price as it
should, but 24 or one and 2 of another doesn't. What am I doing wrong?
Thanks...
-- March
-
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