[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] Discount Tags on index.html
****** message to minivend-users from Sydney Urshan <urshan@nethollywood.net> ******
I can't get the [item-discount] or [discount_price] tags to work on
pages before basket.html (index, results, flypage, etc.) They work
on the basket, final, receipt, etc. The discount I am using is:
[loop list='2001 2002 3001 3002']
[discount [loop-code]]
my $str = $Tag->time('', {}, '%m %d');
my ($month, $n) = split /\s+/, $str;
my %mon = (
01 => 31,
02 => 29,
03 => 31,
04 => 30,
05 => 31,
06 => 30,
07 => 31,
08 => 31,
09 => 30,
10 => 31,
11 => 30,
12 => 31,
);
if($n == 1) {
return ($s);
}
elsif ($n > 1) {
return ($s - ($s / $mon{$month} * $n));
}
[/discount]
[/loop]
which is placed on the pages in question.
I saw one answer in the archives to use a bit in CommonAdjust, but I
am not using that at all.
Thanks,
Sydney Urshan
p.s. Mike H. - Thanks for the great consulting!
-
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