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)
-   -   Multiple Currencies Mod Complete (v4.1.2) (https://forum.x-cart.com/showthread.php?t=23547)

koaloa 08-29-2006 08:54 AM

Re: Multiple Currencies Mod Complete (v4.1.2)
 
As it says on my post, right below the download link... The password to extract is: koaconsulting.com

Have fun! :)

bngwarehouse 08-29-2006 09:34 AM

Re: Multiple Currencies Mod Complete (v4.1.2)
 
Yes your right...(Oops!) My bad. Nice Mod!

gobligoo 09-13-2006 02:41 AM

Re: Multiple Currencies Mod Complete (v4.1.2)
 
Hi,

Looks like a very good mod, but any chance of seeing it live?

---------------
x-cart 4.19 (Unix)

just wondering 11-13-2006 07:44 AM

Re: Multiple Currencies Mod Complete (v4.1.2)
 
At first the drop down box was blank. I changed the Currency Rates and it worked.

Crazy, but it did it for me...

Does anyone know if would it be possible to make it so that instead of showing ($4.99) it shows (CAD$4.99) [for example]?

I'd prefer to have it that way to stop the possible 'I didn't know it was in USD, I thought it was in CAD' problems some people will try on you.

Cheers!

girlsbits 12-09-2006 01:59 PM

Re: Multiple Currencies Mod Complete (v4.1.2)
 
Great mod K, huge thanks.

Works perfect in 4.1.4, make sure to follow complete thread for Koalas posts.

Polvo 04-23-2007 11:18 AM

Re: Multiple Currencies Mod Complete (v4.1.2)
 
I've just installed this mod for v4.1.6. I found it needed a few alterations to work with GBP as the default currency. So here's my revised version of the original installation instructions. Thanks to koaloa for a nice mod.

X-Cart Multiple Currency Mod – for version 4.1.6 Gold
=====================================
Download zip file and open with password given in first post in this thread.

Start by going to Admin > General Settings and remove the default alternate currency code '€'.

Copy:
skin1/customer/top_menu.tpl.
modules/Multiple_Currency/config.php

Copy these three files. If your default currency is not USD then edit them all first changing 'USD' to your default currency eg 'GBP'.:
skin1/customer/main/alter_currency_value.tpl
skin1/customer/main/show_currency_options.tpl
modules/Multiple_Currency/func.php with functions

Edit your copy of admin/configuration.php and add the lines of code from the included version (search for the text koaconsulting.com to see where changes have been made). Note: This file copies the currency rates from the Admin config table to the currencies table on opening or clicking save.

Modify the table xcart_config by adding entries including your default currency eg:
INSERT INTO `xcart_config` VALUES ('currency_rate_usd', 'Rate for the US Dollar', '0', 'Multiple_Currency', 0, 'numeric', '1.0', '');
INSERT INTO `xcart_config` VALUES ('currency_rate_euro','Rate for the EURO', '0', 'Multiple_Currency', 0, 'numeric', '1.0', '');
INSERT INTO `xcart_config` VALUES ('currency_rate_gbp', 'Rate for the British Pound', '0', 'Multiple_Currency', 0, 'numeric', '1.0', '');

Modify the table xcart_currencies by adding a field called 'rate', setting it as 'double' and making sure the default value is set to zero.

You need to run these SQL commands:
INSERT INTO `xcart_languages` VALUES ('US', 'lbl_currencies', 'Currencies', 'Labels');
INSERT INTO `xcart_languages` VALUES ('US', 'option_title_Multiple_Currency', 'Multiple Currencies Options', 'Labels');
INSERT INTO `xcart_modules` VALUES (xx, 'Multiple_Currency', 'Enables users to select different currencies to be displayed.', 'Y');
(Where xx is next id number available).

Go into the Admin > Modules area. 'Multiple_Currency' should be listed and ticked. Click 'Configure' to set your exchange rates, your default currency should be set to 1.

floracal 05-05-2007 11:41 AM

Re: Multiple Currencies Mod Complete (v4.1.2)
 
I get this error

$query = "SELECT * FROM xcart_currencies WHERE rate != '0'";

How do i add rate field?

effour 06-28-2007 01:52 PM

Re: Multiple Currencies Mod Complete (v4.1.2)
 
has anyone got this mod working on 4.1.7?

Looker1 08-27-2007 07:44 AM

Re: Multiple Currencies Mod Complete (v4.1.2)
 
or 4.1.8? Would be interested in this but do not want to be first.

1. Also, anyone have some nice examples from live sites?
2. Can you select yoru currency by clicking on a jpeg instead of pull down menu? Would be great if this could be tweaked to do so.

Kansla 11-08-2007 12:42 PM

Re: Multiple Currencies Mod Complete (v4.1.2)
 
Has anyone run this mod working on 4.1.9?


All times are GMT -8. The time now is 02:48 AM.

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