[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Common Adjust as MixMatch, again.
****** message to minivend-users from "March Roseland" <march@uia.net> ******
Apologies for replying to my own question, but I'm really stuck here.
Regardless of the trouble I'm having, I still find it hard to believe Mike
Heins is the only one who really understands the CommonAdjust thing. :}
This seems to be the last thing keeping this catalog from being declared
'done'. If anything in my message isn't clear, please let me know so I can
try to clarify it... otherwise, please help me figure out why it won't
behave! Many thanks.
-- March
----- Original Message -----
From: March Roseland <march@uia.net>
To: <minivend-users@minivend.com>
Sent: Tuesday, June 27, 2000 12:56 PM
Subject: [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
>
-
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