[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] Price Discounts problem
****** message to minivend-users from Lance Carito <lcarito@pathfinder.com> ******
Hello,
I'm trying to set up promotion discounts for our store, depending on
what mv_pc is set to. Our special offers page first looks up the
product code and discount associated with the key code passed to it,
and saves the info to scratch variables:
[seti psku][data base="promos" field="sku" key="[data session source]"][/seti]
[seti pdisc][data base="promos" field="discount" key="[data session source]"][/seti]
then sets the discount for the item:
[discount code="[scratch psku]"] $s * $Scratch->{pdisc} [/discount]
However, when the basket page is displayed, the [discount-price] tag
displays $0.00 and the [item-discount] tag displays the full price of
the item. The [subtotal] tag, though, reflects the discount.
If I hardcode the discount, replacing $Scratch->{pdisc} with, say,
.90, everything displays correctly.
Is there something I'm doing wrong here? Can one use $Scratch->{}
variables within [discount] tags?
--
-Lance
"Here's my talisman. If you change your mind, give us a chant."
-
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