[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] Discount trouble with multiple product dbs
****** message to minivend-users from Barney Treadway <barney@wttech.com> ******
Hello all,
Been banging my head against this for hours. I'm sure someone has figured
this out. I'm running two product mysql tables each with size and color
modifiers and quantity pricing. When items hit basket.html with a quantity
of 1, pricing look up fails. As soon as quantity 2 or greater gets set,
things work fine. I don't want to hard code discount-pricing = item-field
price where item quantity = 1 as that would likely prevent my size and color
price modifiers from adjusting the price.
Several places I've needed to change [item-price] to [item-field price] but
basket uses [discount-price] and formulates that value somewhere. I'm
thinking maybe in Interpolate.pm around line 1316.
start --->
sub tag_price {
my($code,$ref) = @_;
my $amount = Vend::Data::item_price($ref,$ref->{quantity} || 1);
$amount = discount_price($ref,$amount, $ref->{quantity})
if $ref->{discount};
return currency( $amount, $ref->{noformat} );
end --->
Will someone please let me know how they worked this out?
Much appreciated!
Barney @ wttech.com
-
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