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
  #31  
Old 08-20-2008, 07:03 AM
 
Waynarky Waynarky is offline
 

Member
  
Join Date: Jun 2008
Posts: 14
 

Default Re: Multi currency modul

Hi guys

This mod is exactly what I need. I'm using 4.1.9. (my signature says 4.1.10, but the site I'm currently working on is 4.1.9)
Does it work on this version?

Your signature is a bit disconcerting Virtual! LOL:
Quote:
Check what you can do with x-cart 4.1.9:

I have limited knowledge of PHP so would need assistance fixing any bugs.

Much appreciated
__________________
Wayne Thompson
X-Cart GOLD 4.1.10
Fancy Categories
Reply With Quote
  #32  
Old 08-20-2008, 08:27 AM
 
virtual@croatia virtual@croatia is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 92
 

Default Re: Multi currency modul

Quote:
Originally Posted by Waynarky
Hi guys

This mod is exactly what I need. I'm using 4.1.9. (my signature says 4.1.10, but the site I'm currently working on is 4.1.9)
Does it work on this version?


I think it should work with it. I can help you with it if it won't work.
__________________
Check what you can do with x-cart 4.1.9:
www.smee.com

Modules I made:
IP_Ranges
Multy_Currency
Order_Dates

Modules I use:
Fancycategory
Magnifier
Survey
AOM
Reply With Quote
  #33  
Old 08-21-2008, 11:40 PM
 
Waynarky Waynarky is offline
 

Member
  
Join Date: Jun 2008
Posts: 14
 

Default Re: Multi currency modul

Many Thanks!! I'll implement it and let you know either way.
__________________
Wayne Thompson
X-Cart GOLD 4.1.10
Fancy Categories
Reply With Quote
  #34  
Old 08-29-2008, 02:01 AM
 
Waynarky Waynarky is offline
 

Member
  
Join Date: Jun 2008
Posts: 14
 

Default Re: Multi currency modul

Hi Virtual

I've implemented the module and its working great. Thank you very much!
The instructions were clear and simple

I do want to ask about one small issue though. When I change currency it goes back to the home page, instead of refreshing the product page. I see that on your www.smee.hr site, that's not the case. Can you help?
__________________
Wayne Thompson
X-Cart GOLD 4.1.10
Fancy Categories
Reply With Quote
  #35  
Old 08-29-2008, 11:56 PM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default Re: Multi currency modul

Yep - I would also like to know how to keep the user on the current page after a currency change - thanks
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #36  
Old 09-25-2008, 03:41 AM
  AquaClic's Avatar 
AquaClic AquaClic is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 37
 

Default Re: Multi currency modul

Quote:
Originally Posted by virtual@croatia
If you are willing to search for it, there is a file x-currency.sql in folder sql which has to be corrected. If you won't be able to fix it, I'll do it for you when I come home (2 weeks).

Regards,
virtual

Hi there

I tried to fix it myself but i didn't have any success. I always get the same sql error. I also have to admit that my sql-knowledge isn't very good either .

Is there anything else i should try?

thanks for your time

Aqua
__________________
Xcart version 4.1.10
Reply With Quote
  #37  
Old 10-12-2008, 03:11 PM
  AquaClic's Avatar 
AquaClic AquaClic is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 37
 

Default Re: Multi currency modul

Okay, i figured that one out, just add an empty string at the end of row 1 and it will install but the menu-point "currencies" won't appear in the backend and i get this if i try to reinstall the module

Code:
Copying skin files ... Creating directory: [skin1/modules/Multi_Currency] ... [OK] Copying to file skin1/modules/Multi_Currency/menu_currency.tpl - [OK] Copying to file skin1/modules/Multi_Currency/currencies.tpl - [OK] [OK] Activating the module ... Please wait ... [OK] Please wait ... Creating table: [xcart_currency_rate] ... [OK] Creating table: [xcart_customer_currency] ... [OK] [OK] Please wait ... [FAILED] Duplicate entry 'US-lbl_default_currency' for key 1
__________________
Xcart version 4.1.10
Reply With Quote
  #38  
Old 10-12-2008, 04:21 PM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: Multi currency modul

Quote:
Originally Posted by AquaClic
Okay, i figured that one out, just add an empty string at the end of row 1 and it will install but the menu-point "currencies" won't appear in the backend and i get this if i try to reinstall the module

Code:
Copying skin files ... Creating directory: [skin1/modules/Multi_Currency] ... [OK] Copying to file skin1/modules/Multi_Currency/menu_currency.tpl - [OK] Copying to file skin1/modules/Multi_Currency/currencies.tpl - [OK] [OK] Activating the module ... Please wait ... [OK] Please wait ... Creating table: [xcart_currency_rate] ... [OK] Creating table: [xcart_customer_currency] ... [OK] [OK] Please wait ... [FAILED] Duplicate entry 'US-lbl_default_currency' for key 1

I hope we can get this module working for 4.1.10. Is the author around anymore?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #39  
Old 10-16-2008, 07:05 AM
  AquaClic's Avatar 
AquaClic AquaClic is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 37
 

Default Re: Multi currency modul

Okay, i figured this one out

It actually was an empty string missing in the x-currency.sql in the sql folder. I didn't try this because Virtual stated in a post before that it didn't work.

BEWARE
I'm posting this only to find out what the problem is. The problem is following and i'm still working on it, maybe someone can help me out:

I installed the module and it's working correctly on 4.1.10 but i get the error 2 posts above if i try to reinstall/uninstall the module.

I don't know what will happen with other 4.1.10 installations and i'm not sure if it is good for anyone to install it this way untill we've found a proper solution(!).

This is how my x-currency.sql in the sql folder looks like:

Code:
INSERT INTO xcart_config VALUES ('default_currency', 'Select default currency', 'EUR', 'Multi_Currency', 10, 'text', 'EUR','',''); INSERT INTO xcart_modules (module_name, module_descr, active) VALUES ('Multi_Currency','This module adds a multi currency support.','Y'); CREATE TABLE xcart_currency_rate ( code CHAR( 3 ) NOT NULL DEFAULT '', rate DECIMAL( 12, 5 ) NOT NULL DEFAULT '1.00000', active CHAR( 1 ) NOT NULL DEFAULT 'N', order_by INT( 11 ) NOT NULL DEFAULT '0', PRIMARY KEY (code) ) TYPE=MyISAM; INSERT INTO xcart_currency_rate (code) SELECT code FROM xcart_currencies; UPDATE xcart_currency_rate SET active = 'Y' WHERE code = (SELECT value FROM xcart_config WHERE name = 'currency_symbol') OR code = (SELECT xcart_currencies.code FROM xcart_currencies INNER JOIN xcart_config ON xcart_currencies.symbol = xcart_config.value AND xcart_config.name = 'currency_symbol'); CREATE TABLE xcart_customer_currency ( login VARCHAR ( 32 ) NOT NULL DEFAULT '', currency CHAR( 3 ) NOT NULL DEFAULT '', PRIMARY KEY (login) ) TYPE=MyISAM;

I only added an empty string in the first line.

If you want to try it for yourself then please backup everything you can and don't chop off my head if something goes wrong, i never told that this is a nice solution, it' merely an unfinished fix
__________________
Xcart version 4.1.10
Reply With Quote
  #40  
Old 10-22-2008, 05:49 PM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: Multi currency modul

Can anyone help get this mod working? I am willing to pay for this.
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 04:18 PM.

   

 
X-Cart forums © 2001-2020