ShopSite Pro went live 1.5 years ago (June 2011).
I would like to know when the next major upgrade will occur.
<strike>[-- product.price --]</strike> [-- PRODUCT.SaleAmount --]
You Save
[-- CALL savexpercent.pl (product.price,PRODUCT.SaleAmount) --]
#!/usr/bin/perl
# Print Discount on Product
$Price = substr($ARGV[0],1,length($ARGV[0]));$Sale = substr($ARGV[1],1,length($ARGV[1]));
#print "p1:".substr($ARGV[0],1,length($ARGV[0]))." p2:".substr($ARGV[1],1,length($ARGV[1]));
$Discount = ($Price - $Sale)/$Price;
$Save = ($Discount * 100);
print sprintf("%.2f",$Save)."%";
;
$6.00 $5.00 You Save 16.67%
Users browsing this forum: Bing [Bot] and 146 guests