[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Pricing based on customer status (with a few twists)
****** message to minivend-users from Barry Treahy <Barry@BSTent.com> ******
I'm in the process of doing a variation of this and based on what I have gleaned from
the mail list archives, I'm going with a CommonAdjust approach and a usertag where one
set of disty's get an additional 25% off.
Something like:
CommonAdjust pricing:q1,q10,q25,q50,q100,q200:, ;products:price, [disty_adjust]
UserTag disty_adjust Routine <<EOF7
sub {
my $output;
if ($Vend::Session->{'username'} eq 'id1' ){
$output = '&$s-$s*1.25';
} else {
$output = '0';
}
::logError($output);
return $output;
}
EOF7
I haven't all the kinks worked out, but its getting there.
Say Mike, any prospects of re-enabling debugging for 4.0 and bin/ifdef -y -t DEBUG? I
do not know about others, but I certainly found the info helpful at times.
Barry
junglepost wrote:
> ****** message to minivend-users from junglepost <junglejj@swbell.net> ******
>
> Hello List,
>
> I am a medium skill level Minivend developer. I have done several
> sites, and they all have this or that specific challenge. One of my
> latest ones is racking my poor tired brain. If someone out there
> could help me I will buy you a beer. Or mail you one, or something...
> ;)
>
> My client wants to make his database available to both the public, and
> to dealers. Dealers would usually pay 1/2 retail *but not always*.
> There is a discount structure on some items that I will use common
> adjust for (if I can under the circumstances). The discounts would
> apply to both retail and dealer pricing schemes. This combination of
> needs is making my set up process a little more difficult than usual.
>
> I have looked at several options on how to implement this.
>
> 1. Locale seems to be one option, but it is not obvious to me at the time
> how to use it.
>
> 2. I could set a variable via a password page and try to do some sort
> of [if variable...][perl config]
> {config}{PriceField}='dealerprice';[/perl] [/if] type of thing
> (dangerous??)
>
> 3. I could set up some sort of convoluted [discount] tags (this would
> end up being messy and complex)
>
> Have any of you experience in this area? I searched the maillist
> database and found a couple similar things, but nothing really
> illuminating.
>
> Thanks for your help!
> James Johnson
> flam@bigfoot.com (even though majordomo don't like bigfoot ;)
>
> -
> 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