Discount calculation question

General ShopSite user discussion

Discount calculation question

Postby Gary » Wed Jan 10, 2007 1:33 pm

Is there a way to subtract [--PRODUCT.saleamount--] from [--PRODUCT.Price--] in a template to show the amount of savings?

Thanks for any input.

Gary
Gary
 
Posts: 19
Joined: Fri Aug 04, 2006 5:46 pm
Location: Oregon

Postby loren_d_c » Wed Jan 10, 2007 1:54 pm

Not completely from within the template, because there is no addition/subtraction/etc in the template language. However, via a CALL tag you could pass these values to an external Perl script that could calculate the 'you save' amount and pass it back into the template.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum

Who is online

Users browsing this forum: Bing [Bot] and 118 guests