X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Multi currency modul (https://forum.x-cart.com/showthread.php?t=38421)

xtech 01-03-2011 07:18 AM

Re: Multi currency modul
 
Any update about 4.4 versions??

webkeon 06-16-2011 09:25 PM

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


dmpinder 06-27-2011 08:42 AM

Re: Multi currency modul
 
Is this compatible with v4.4.3?

Thanks,

Darren

Glowfast 07-24-2011 12:22 AM

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


sinobest 08-13-2011 04:01 AM

Re: Multi currency modul
 
Does this work with 4.3?

fmoses 10-28-2011 10:14 PM

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?

webdesignhelper 12-16-2011 09:34 AM

Re: Multi currency modul
 
any update on the 4.4 version ?

fmoses 01-01-2012 11:18 PM

Re: Multi currency modul
 
2 Attachment(s)
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

fmoses 01-03-2012 05:22 PM

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 //

fmoses 01-04-2012 08:22 AM

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.


All times are GMT -8. The time now is 05:41 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.