[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Display Whole Price
Quoting Michael Stearne (mstearne@mac.com):
> Right now I am building a site based off of the foundation demo.
>
> When an item is being displayed it has options that may be at
> different prices.
>
> When a regular user (or no user) is logged in the retail price is
> displayed with this code:
>
> [item-options td=1 label=1 bold=1 price=1]
>
> My question is, when a user that gets a dealer price (wholesale) the
> retail price is displayed in the options.
>
> The HTML below is generated
>
> <select NAME="mv_sku">
> <option VALUE="BD202-bk-T000-LG">Black, heavywgt T, Large
> ($18.00)
> <option VALUE="BD202-bk-T000-XL">Black, heavywgt T, X-Large
> ($18.00)
> <option VALUE="BD202-bk-T000-MD">Black, heavywgt T, Medium
> ($18.00)
> </select>
>
> Which is showing the retail prices. But when the item is purchased
> the correct price is charged, the wholesale price.
>
> I have 2 questions:
> 1. How can I tell if a user that gets Dealer price is logged in and
Remember this is all done in the foundation in etc/after.cfg, and is
specific to the "tools" personality of foundation.
[if scratch dealer]
This is a dealer.
[/if]
> 2. Is there any way I can display the wholesale price in the options
> menu above?
Change the CommonAdjust string in etc/after.cfg:
Profile dealer <<EOR
{
CommonAdjust => <<EOF,
pricing:w5,w10:,
;:wholesale,
;:wholesale:mv_sku,
;$,
==:options:wholesale
EOF
NonTaxableField => 'nontaxable',
}
EOR
--
Red Hat, Inc., (emailing wirelessly from my laptop, on Perl Whirl
in the Caribbean Ocean) Geek Cruises (www.GeekCruises.com)
phone +1.513.523.7621 fax 7501 <mheins@redhat.com>
Experience is what allows you to recognize a mistake the second
time you make it. -- unknown