[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] some minivend math (the last message needs a patch...)
****** message to minivend-users from Mark Stosberg <mark@summersault.com> ******
Mark Stosberg wrote:
>
> Hello! Good evening everyone.
>
> I'm setting up a bookstore for a publisher with Minivend and needs
> some discounts. I've reviewed the documentation on the issue but I'm
> confused which option(s) are right for me. My problem is
> straightforward: To start with, you get 30% off of everything, just for
> ordering directly. If you order 10 or more of any combinations of items,
> you get 55% of of everything.
> These may sound like steep discounts, but they actually make _more_
> money selling directly this way then selling them through a distributor
> and then a bookstore!
> Thanks for any pointers,
>
I'm having a trouble getting everything I need into single emails today. :\
Here's a bit of a patch to my last message with this subject line, if
anyone's interested.
The [perl] code should't return the scratch variable to the environment,
instead it should silently set the variable and return nothing:
[perl]
if ($totalq >= 10) {
$Scratch->{percent_discount} = 55;
} else {
$Scratch->{percent_discount} = 30;
}
return
[/perl]
-mark
-
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