MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Pricing and Subtotal help.



Quoting .cory.trese. (digital@specialty-books.com):
> 
> >message to minivend-users from Andrew Mull <mull@early.com>
> >
> >Hello,
> >
> >The items in my catalog require the use of two prices - one for members, 
> >and one for non-members.  There is no correlation between the two prices 
> >for all the products. i.e.  The member and non-member prices do not follow 
> >a certain rule ($5 off or 10%, etc) for all the products in this 
> >database.  Therefore, the "discount" facility will not work for me.
> >
> 
> Hmm.  I see.  Perhaps placing all the products in one database is not the best
> way to do this.  MiniVend (at least to me, I may be way off here) seems to be
> pretty set in it's ways of using one base price and then adjusting it for
> different circumstances.

Not necessarily; there are about a zillion ways to do it.

1. 

CommonAdjust   "[if scratch member]products:member_price[else]products:price[/else][/if]"

Don't do [if scratch member =~ /something/], as that will kill performance.

2. Locale -- different one for members and non-members. This is actually quite
nice, because it allows you to give different messages too:

	[LC]
		This is the mon member text.
		[member] Member text [/member]
	[/LC]

3.

Autoload   <<EOF
[perl arg="scratch config"]
	return if ! $Safe{scratch}{member};
	$Safe{scratch}{config}{PriceField} = 'member_price';
	return;
[/perl]

I can think of several more as well.

-- 
Mike Heins                          http://www.minivend.com/  ___ 
                                    Internet Robotics        |_ _|____
Be patient. God isn't               131 Willow Lane, Floor 2  | ||  _ \
finished with me yet.               Oxford, OH  45056         | || |_) |
 -- unknown                         <mikeh@minivend.com>     |___|  _ <
                                    513.523.7621 FAX 7501        |_| \_\


Search for: Match: Format: Sort by: