View Single Post
  #149  
Old 01-03-2012, 05:22 PM
  fmoses's Avatar 
fmoses fmoses is offline
Banned
 

Senior Member
  
Join Date: Apr 2008
Posts: 155
 

Default Re: Multi currency modul

Quote:
Originally Posted by fmoses
I went ahead and installed it, it seems to have been working fine but i'm having the issue with the on sale mod, and it not showing the prices normally. For US, Euro, Australian, it's showing the proper pricing, but I've also included INR or Rs. for Indian Rs. and it doesn't show the pricing correctly? I'm on 4.1.9 and not sure what the issue is. Please see the attached screen shots.

It's currently on our development site at http://www.anythingindian.biz/wws_main/wws


Bill with Altered Cart provided the solution. Posting here for anyone else that might have encountered the same issue.

It looks like the price_format() function is causing the problems. Try the following:

skin1/modules/Product_Options/func.js:

Change this bit of code at the beginning of the file from:

// On Sale :: alteredcart.com //
function onsale_calculate_product_discount(price){

if (
discount_per_amount > 0)
price = price_format((price/100)*(100-discount_per_amount));

if (
discount_abs_amount > 0)
price = price_format(price - discount_abs_amount);

return
price;

}
// END On Sale :: alteredcart.com //



to:

// On Sale :: alteredcart.com //
function onsale_calculate_product_discount(price){

if (
discount_per_amount > 0)
price = (price/100)*(100-discount_per_amount);

if (
discount_abs_amount > 0)
price = price - discount_abs_amount;

return
price;

}
// END On Sale :: alteredcart.com //
Reply With Quote