Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Multi currency modul

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #141  
Old 01-03-2011, 07:18 AM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: Multi currency modul

Any update about 4.4 versions??
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #142  
Old 06-16-2011, 09:25 PM
 
webkeon webkeon is offline
 

Member
  
Join Date: Mar 2010
Posts: 16
 

Default Re: Multi currency modul

Dear,

I am trying to download this module but when I click the following link, i am not able to download the module... links go to the main forum page ... may I know the process of download this module and also want to know this is free or chargeable.

Thank you & regards


Quote:
Originally Posted by virtual@croatia
Here is a module which brings a multi currency support.
- No limited number of currencies
- It can automatically update the currency rate with only one button pressing
- In combination with IP_Range it can recognize the country where the customer is coming from and choose the right currency for him

http://www.smee.hr/skin1/images/xcart%20forum/client.jpg


Currency management:
http://www.smee.hr/skin1/images/xcart%20forum/admin.jpg

Instrunctions how to install it:

1. Unzip all files in the root of the xcart. Replace all files with the new one (be carefull if you made some changes on admin/func/func.mail.php, skin1/currency.tpl, skin1/modules/Product_Options/check_options.tpl or skin1/modules/Product_Options/func.js)

2. In a browser type http://yoursitedomain/install-currency.php and follow the procedure. You will need a number you were provided with when you were installing the shop for the first time. If you don't have it, you can find it in include/install.php file under $installation_auth_code

3. Insert this code into your design (for example in skin1/head.tpl), where you would like to have a currency choice.
If you want to put it in between a table:
PHP Code:
{if $active_modules.Multi_Currency}
    <
tr><td align="left">{include file="modules/Multi_Currency/menu_currency.tpl"}</td></tr>
    {/if} 


Out of a table:
PHP Code:
{if $active_modules.Multi_Currency}
    {include 
file="modules/Multi_Currency/menu_currency.tpl"}
    {/if} 



4. Insert this code in skin1/admin/menu_admin.tpl, anywhere between lines 3 and 20:
PHP Code:
{if $active_modules.Multi_Currency}<a href="{$catalogs.admin}/currencies.php" class="VertMenuItems">{$lng.lbl_currencies}</a><br />{/if} 


5. Insert this code in skin1/single/home.tpl, anywhere between lines 60 and 250, on any empty line:

PHP Code:
{elseif $main eq "currencies_edit"}
{include 
file="modules/Multi_Currency/currencies.tpl"

After inserting it should look something like this:

PHP Code:
...
{elseif 
$main eq "snapshots"}
{include 
file="admin/main/snapshots.tpl"}

{elseif 
$main eq "currencies_edit"}
{include 
file="modules/Multi_Currency/currencies.tpl"}

{elseif 
$main eq "titles"}
{include 
file="admin/main/titles.tpl"}
... 

6. Insert this code in skin1/admin/home.tpl, anywhere between lines 60 and 250, on any empty line:
PHP Code:
{elseif $main eq "currencies_edit"}
{include 
file="modules/Multi_Currency/currencies.tpl"

After inserting it should look something like this:
PHP Code:
...
{elseif 
$main eq "snapshots"}
{include 
file="admin/main/snapshots.tpl"}

{elseif 
$main eq "currencies_edit"}
{include 
file="modules/Multi_Currency/currencies.tpl"}

{elseif 
$main eq "titles"}
{include 
file="admin/main/titles.tpl"}
... 


7. Insert this code in skin1/admin/menu.tpl:
PHP Code:
{if $active_modules.Multi_Currency}{include file="modules/Multi_Currency/menu_currency.tpl"}<br />{/if} 


8. Do not forget to empty the field of the alternative currency symbol in Admin/General Settings, paragraph General parameters. The default currency should have 3 letters, like CAD or USD or EUR, not US$, ─ or similar! Don't forget to make some of the currencies active. Go to the currencies section in the admin mode and check Active for the currencies you want to be active.

9. If you use PayPal unpack the file paypal.zip and overwrite your existing files.


Important!
If you want to use it with IP_Range module, you have to install IP_Range module first!
If you miss to do that you have to change line 67 in include/data_cache.php from

PHP Code:
$all_active_modules func_query_column("SELECT module_name FROM $sql_tbl[modules] USE INDEX (active) WHERE active='Y'"); 

to

PHP Code:
$all_active_modules func_query_column("SELECT module_name FROM $sql_tbl[modules] USE INDEX (active) WHERE active='Y' ORDER BY module_name"); 


It's been tested with 4.1.10 and 4.2.1 versions

New version uploaded 23/08/2007 - fixed error "Unknown column 'xcart_currencies.orderby' in 'order clause'"
New version uploaded 02/03/2008 - fixed error with product options prices
New version uploaded 04/03/2008 - fixed minor error with product options prices
New version uploaded 19/03/2008 - implemented gift certificate support
New version uploaded 29/10/2008 - updated for 4.1.10 version
New version uploaded 08/11/2008 - fixed an error when a changing the currency forced the page to be redirected to the main page
Paypal files uploaded 13/01/2009 - if you use PayPal please overwrite your existing files with the one in the attachment

4.2.1 version uploaded 07/06/2009 - this is the first version for xcart 4.2.1. It should work, but if it doesn't please post your problem and I will fix it soon

New versions uploaded 22/06/2009 - Auto update added. It auto sets the rate from the web site http://rss.timegenie.com/forex.txt. After the update the updated currencies will be italic.
New version uploaded 25/06/2009 - minor fix an error during the uninstalling
New version uploaded 25/06/2009 - fix an error for 4.2.1 when SEO option was enabled
New version uploaded 25/06/2009 - fixed some issues with Product Options in 4.2.1
New version uploaded 07/08/2009 - fixed loosing order by after update in version for 4.1.10
__________________
Rakesh Kumar
Webkeon Technologies
Reply With Quote
  #143  
Old 06-27-2011, 08:42 AM
 
dmpinder dmpinder is offline
 

Advanced Member
  
Join Date: Jun 2009
Posts: 86
 

Default Re: Multi currency modul

Is this compatible with v4.4.3?

Thanks,

Darren
__________________
Darren

X-Cart Gold 4.3.1
Reply With Quote
  #144  
Old 07-24-2011, 12:22 AM
 
Glowfast Glowfast is offline
 

Newbie
  
Join Date: Aug 2010
Posts: 2
 

Default Re: Multi currency modul

Is this mod able to adjust the currency in the invoice? for example could we charge in Aus $ and US$ and have that reflected on the invoice?



Quote:
Originally Posted by virtual@croatia
Here is a module which brings a multi currency support.
- No limited number of currencies
- It can automatically update the currency rate with only one button pressing
- In combination with IP_Range it can recognize the country where the customer is coming from and choose the right currency for him

http://www.smee.hr/skin1/images/xcart%20forum/client.jpg


Currency management:
http://www.smee.hr/skin1/images/xcart%20forum/admin.jpg

Instrunctions how to install it:

1. Unzip all files in the root of the xcart. Replace all files with the new one (be carefull if you made some changes on admin/func/func.mail.php, skin1/currency.tpl, skin1/modules/Product_Options/check_options.tpl or skin1/modules/Product_Options/func.js)

2. In a browser type http://yoursitedomain/install-currency.php and follow the procedure. You will need a number you were provided with when you were installing the shop for the first time. If you don't have it, you can find it in include/install.php file under $installation_auth_code

3. Insert this code into your design (for example in skin1/head.tpl), where you would like to have a currency choice.
If you want to put it in between a table:
PHP Code:
{if $active_modules.Multi_Currency}
    <
tr><td align="left">{include file="modules/Multi_Currency/menu_currency.tpl"}</td></tr>
    {/if} 


Out of a table:
PHP Code:
{if $active_modules.Multi_Currency}
    {include 
file="modules/Multi_Currency/menu_currency.tpl"}
    {/if} 



4. Insert this code in skin1/admin/menu_admin.tpl, anywhere between lines 3 and 20:
PHP Code:
{if $active_modules.Multi_Currency}<a href="{$catalogs.admin}/currencies.php" class="VertMenuItems">{$lng.lbl_currencies}</a><br />{/if} 


5. Insert this code in skin1/single/home.tpl, anywhere between lines 60 and 250, on any empty line:

PHP Code:
{elseif $main eq "currencies_edit"}
{include 
file="modules/Multi_Currency/currencies.tpl"

After inserting it should look something like this:

PHP Code:
...
{elseif 
$main eq "snapshots"}
{include 
file="admin/main/snapshots.tpl"}

{elseif 
$main eq "currencies_edit"}
{include 
file="modules/Multi_Currency/currencies.tpl"}

{elseif 
$main eq "titles"}
{include 
file="admin/main/titles.tpl"}
... 

6. Insert this code in skin1/admin/home.tpl, anywhere between lines 60 and 250, on any empty line:
PHP Code:
{elseif $main eq "currencies_edit"}
{include 
file="modules/Multi_Currency/currencies.tpl"

After inserting it should look something like this:
PHP Code:
...
{elseif 
$main eq "snapshots"}
{include 
file="admin/main/snapshots.tpl"}

{elseif 
$main eq "currencies_edit"}
{include 
file="modules/Multi_Currency/currencies.tpl"}

{elseif 
$main eq "titles"}
{include 
file="admin/main/titles.tpl"}
... 


7. Insert this code in skin1/admin/menu.tpl:
PHP Code:
{if $active_modules.Multi_Currency}{include file="modules/Multi_Currency/menu_currency.tpl"}<br />{/if} 


8. Do not forget to empty the field of the alternative currency symbol in Admin/General Settings, paragraph General parameters. The default currency should have 3 letters, like CAD or USD or EUR, not US$, ─ or similar! Don't forget to make some of the currencies active. Go to the currencies section in the admin mode and check Active for the currencies you want to be active.

9. If you use PayPal unpack the file paypal.zip and overwrite your existing files.


Important!
If you want to use it with IP_Range module, you have to install IP_Range module first!
If you miss to do that you have to change line 67 in include/data_cache.php from

PHP Code:
$all_active_modules func_query_column("SELECT module_name FROM $sql_tbl[modules] USE INDEX (active) WHERE active='Y'"); 

to

PHP Code:
$all_active_modules func_query_column("SELECT module_name FROM $sql_tbl[modules] USE INDEX (active) WHERE active='Y' ORDER BY module_name"); 


It's been tested with 4.1.10 and 4.2.1 versions

New version uploaded 23/08/2007 - fixed error "Unknown column 'xcart_currencies.orderby' in 'order clause'"
New version uploaded 02/03/2008 - fixed error with product options prices
New version uploaded 04/03/2008 - fixed minor error with product options prices
New version uploaded 19/03/2008 - implemented gift certificate support
New version uploaded 29/10/2008 - updated for 4.1.10 version
New version uploaded 08/11/2008 - fixed an error when a changing the currency forced the page to be redirected to the main page
Paypal files uploaded 13/01/2009 - if you use PayPal please overwrite your existing files with the one in the attachment

4.2.1 version uploaded 07/06/2009 - this is the first version for xcart 4.2.1. It should work, but if it doesn't please post your problem and I will fix it soon

New versions uploaded 22/06/2009 - Auto update added. It auto sets the rate from the web site http://rss.timegenie.com/forex.txt. After the update the updated currencies will be italic.
New version uploaded 25/06/2009 - minor fix an error during the uninstalling
New version uploaded 25/06/2009 - fix an error for 4.2.1 when SEO option was enabled
New version uploaded 25/06/2009 - fixed some issues with Product Options in 4.2.1
New version uploaded 07/08/2009 - fixed loosing order by after update in version for 4.1.10
__________________
Jason Theuma

4.1
Reply With Quote
  #145  
Old 08-13-2011, 04:01 AM
 
sinobest sinobest is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 412
 

Default Re: Multi currency modul

Does this work with 4.3?
__________________
X-Cart Version: 4.7.12 GOLD
www.cheapglasses123.com prescription glasses online at discounted prices.
prescriptionglassesusa.com
www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS
Reply With Quote
  #146  
Old 10-28-2011, 10:14 PM
  fmoses's Avatar 
fmoses fmoses is offline
Banned
 

Senior Member
  
Join Date: Apr 2008
Posts: 155
 

Default Re: Multi currency modul

Was wondering if anyone new if this would cause any issues with the on sale mod by altered cart? Also Is there anyway to get the multiple pricing to come out on export feeds for google so submissions can be made for the various regions?
Reply With Quote
  #147  
Old 12-16-2011, 09:34 AM
 
webdesignhelper webdesignhelper is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 52
 

Default Re: Multi currency modul

any update on the 4.4 version ?
__________________
WebDesignHelper.co.uk
Version 4.4.2 of x-cart
Reply With Quote
  #148  
Old 01-01-2012, 11:18 PM
  fmoses's Avatar 
fmoses fmoses is offline
Banned
 

Senior Member
  
Join Date: Apr 2008
Posts: 155
 

Default Re: Multi currency modul

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
Attached Thumbnails
Click image for larger version

Name:	Rs price.jpg
Views:	56
Size:	34.8 KB
ID:	2836  Click image for larger version

Name:	proper price showing.jpg
Views:	55
Size:	35.0 KB
ID:	2837  
Reply With Quote
  #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
  #150  
Old 01-04-2012, 08:22 AM
  fmoses's Avatar 
fmoses fmoses is offline
Banned
 

Senior Member
  
Join Date: Apr 2008
Posts: 155
 

Default Re: Multi currency modul

Finally got everything installed. I had a customer who ordered a product it appears that it went through in PayPal, on the backend it showed it as declined. On checking the error I found this problem that the api was kicking back to me

Reason: Declined: Payment amount mismatch: wrong order currency ( USD )

Where am I missing something?

In General Settings I had the symbol of $, but I have now changed it USD, and unfortunately that hasn't corrected it.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:50 AM.

   

 
X-Cart forums © 2001-2020