Uc currency

Downloads


What is UC Currency
This UC Currency module provides multiple currency convertion feature for ubercart 3.

This module would help Drupal site admin/devs to configure the currency system for ubercart in minutes by using automatically converter or manual rate settings.

Current Features

  • Automatically convertion (rate from Yahoo Finance
  • Manually Rate Convertion
  • Currency switcher block
  • Unlimited Currency use
  • Easy Configurations

Requirements


PreviewAttachmentSize
uc_currency.zip32.05 KB
mittalpatel's picture
Offline
Joined: 06/11/2009
Juice: 12
Getting some errors

I tried to install and use this module but while adding the currencies on the configuration page, I am getting below errors:

Warning: Invalid argument supplied for foreach() in uc_currency_settings_form() (line 56 of C:\wamp\www\ubercarttest\sites\all\modules\contrib\uc_currency\uc_currency.admin.inc).
Notice: Undefined index: GBP in uc_currency_settings_form_submit() (line 110 of C:\wamp\www\ubercarttest\sites\all\modules\contrib\uc_currency\uc_currency.admin.inc).
Notice: Undefined index: CAD in uc_currency_settings_form_submit() (line 110 of C:\wamp\www\ubercarttest\sites\all\modules\contrib\uc_currency\uc_currency.admin.inc).
Notice: Undefined index: JPY in uc_currency_settings_form_submit() (line 110 of C:\wamp\www\ubercarttest\sites\all\modules\contrib\uc_currency\uc_currency.admin.inc).
Notice: Undefined index: EUR in uc_currency_settings_form_submit() (line 110 of C:\wamp\www\ubercarttest\sites\all\modules\contrib\uc_currency\uc_currency.admin.inc).
Warning: Invalid argument supplied for foreach() in uc_currency_settings_form() (line 56 of C:\wamp\www\ubercarttest\sites\all\modules\contrib\uc_currency\uc_currency.admin.inc).

I tried to add "GBP, CAD, JPY, EUR" in the Allowed Currencies field.

I think it's not adding these values properly to the database. Can you figure out what could be the issue here?

Thanks

steven-spencer's picture
Offline
Joined: 08/01/2012
Juice: 10
Error

I am experiencing a similar error

using Currency 7.x.-1.0

---------------
Notice: Undefined index: COP in uc_currency_settings_form_submit() (line 110 of /home8/unitedwo/public_html/sites/all/modules/uc_currency/uc_currency.admin.inc).
--------------

steven-spencer's picture
Offline
Joined: 08/01/2012
Juice: 10
Line 116

line 116 caused error.

variable_set('cuc_currency_convert', serialize($convert_currencies));

cuc_ prefix needs to be set to uc_

Jurgen8e's picture
Offline
Joined: 10/02/2008
Juice: 87
multi currency

Hi,

Does this module work with this correction?

No currency integrated in Ubercart 3? It wasn´t in Ubercart 1.
Plans for D8/U4?

steven-spencer's picture
Offline
Joined: 08/01/2012
Juice: 10
uc currency

After correcting that line the module works for me with currency API.

stoan's picture
Offline
Joined: 01/19/2013
Juice: 16
Only for display?

Hi

Does this module change the currency for customer's viewing purposes or is the newly selected currency used by also by the payment gateway?

e.g. if my site's default currency is ZAR and the user selects USD, will USD be used by the payment gateway as well?

Thanks

stoan's picture
Offline
Joined: 01/19/2013
Juice: 16
Re: Uc currency

I did the fix as well but still having the same issue.

Notice: Undefined index: USD in uc_currency_settings_form_submit() (line 110 of /sites/all/modules/uc_currency/uc_currency.admin.inc).

Please assist

sargvahan's picture
Offline
Joined: 10/17/2013
Juice: 16
currency_api_get_symbol ERROR

When I save the form Store->Config->Currency I have
Fatal error: Call to undefined function currency_api_get_symbol() in mysite.com/sites/all/modules/uc_currency/uc_currency.admin.inc on line 124.

And the pages of products are opening without style and with another error massage at the bottom.
Fatal error: Call to undefined function currency_api_get_symbol() in mysite.com/sites/all/modules/uc_currency/uc_currency.module on line 140

Who can help me to resolve this probleme

eric's picture
Offline
Joined: 11/25/2007
Juice: 82
Re: Re: Uc currency

I encountered the same error as #8 but I found a way to fix it.

I believe the author have actually fixed it but did not update the module attached in this thread.

I used the uc_currency.admin.inc copy from the Drupal sandbox and this module can save the currency code without error now.

You can get the uc_currency.admin.inc file from Drupal sandbox, I have attached it here as well. Remove the txt extension.

The configuration page have an option that says "Choose switcher type". This is a block which you need to enable in order to use this module.

Some problems I notice
1) Regardless whether I set it as radio or select list, the block shows select list.
2) The block is quite large... anyone knows how to reduce the size?
3) It seems like the currency conversion will throw this error when the shopping cart block is empty and hidden.
Notice: Undefined variable: block in uc_currency_block_view() (line 93 of /....../uc_currency.module).

It will not have this error when the shopping cart block is shown or disabled altogether.

Btw, I am using currency module 7.x-1.2 because 7.x-2.1 requires PHP version 5.3 which is not supported by the server I am using yet.

Enjoy Eye-wink

AttachmentSize
uc_currency.admin_.inc_.txt 4.14 KB
andyonubercart's picture
Offline
Joined: 12/17/2013
Juice: 8
uc_currency error

Dear Sir,
The attachment uc_currency.admin_.inc_.txt cannot be download.
Where can I get it to solve the uc_currency error ?

regards,
Andy

eric's picture
Offline
Joined: 11/25/2007
Juice: 82
Re: Uc currency

The file is in the Drupal sandbox, the Drupal project link at the top. I can't post the link directly in the message because it is recognized as spam.

I am attaching it here again as a zipped file (somehow txt file can't be downloaded).

AttachmentSize
uc_currency.admin_.zip 1.31 KB
andyonubercart's picture
Offline
Joined: 12/17/2013
Juice: 8
get other error

Dear Sir,

Thanks for post the file.
The (line 110...) error has resolve after updated this file, thanks.

However it get another error as below once I am going configure it :
" Fatal error: Call to undefined function currency_api_get_symbol() in /home/content/54/11985954/html/ishopping/sites/all/modules/uc_currency/uc_currency.admin.inc on line 124 "

I had try the Currency module in version 1.2 and 2.1 but still get error of calling "currency_api_get_symbol()..."error.

Do have any idea how to fix it ?

best regards,
Andy

eric's picture
Offline
Joined: 11/25/2007
Juice: 82
Re: Uc currency

Did you configure your currency?

Also try uninstall the module and then reinstall it to make sure your database is clean of left over errors.

Sorry but I don't have the same error, it is working fine on my test site except those problems I pointed out.

alexeymalk's picture
Offline
Joined: 02/11/2014
Juice: 3
Re: Uc currency

Forgive, has not seen that a problem fixed

eric's picture
Offline
Joined: 11/25/2007
Juice: 82
Re: Uc currency

I figured out a fix for the error
"Notice: Undefined variable: block in uc_currency_block_view() (line 93 of /....../uc_currency.module)."

Simply change the line from

if (!variable_get('uc_cart_block_empty_hide', FALSE) || $product_count) {

to

if (variable_get('uc_cart_block_empty_hide', FALSE) || $product_count) {

The revised uc_currency.module also attached.

AttachmentSize
uc_currency.zip 1.8 KB
amcoms's picture
Offline
Joined: 04/04/2012
Juice: 150
Hello Where is the code for UC Multi Currency

Can someone explain if this is Multi Currency or just the Drupal Currency

How many people are using MultiCurrency? with D7 U3 ?

Why isn't there a working version for this feature ?

Please can someone help and enlighten ?

where is a Working version of UC multi Currency to download please?

Thanks
A

carbonomedia's picture
Offline
Joined: 11/10/2009
Juice: 44
Same Error

Hi Eric, thanks for your work on this... This thread has almost got it working for me.

But I am getting this error:
"Notice: Undefined variable: block in uc_currency_block_view() (line 93 of /....../uc_currency.module)."

Only when the Cart is Empty. I have tried the 2 above fixes to no avail. perhaps you have a suggestion here?

I am so close, just this one little thing on this crazy journey.. I have had a look at the module code... and I have no idea... why this error is only showing when the cart is empty...

What did you end up doing to get this working? anything different to your suggestions above?

any help would be greatly appreciated!

if this gets sorted.. i will put detailed instructions up on here... As I think this is a big issue with Ubercart... Multicurrency, it really should ship with the ubercart module I would think.

Ricky

eric's picture
Offline
Joined: 11/25/2007
Juice: 82
Re: Same Error

Please READ before posting, solution was posted in comment #15

carbonomedia's picture
Offline
Joined: 11/10/2009
Juice: 44
Re: Re: Same Error

Yes I definitely read this post... This is why I am posting.. It didn't seem to work like described... I tried replacing the line, and replacing the file with the provided Zip... nothing.

I also noticed that in #9, #11, you suggest replacing a file called uc_currency.admin.inc . where does this file go exactely? in the module folder ? or somewhere else?

could this error maybe be related to this file?

thanks

AttachmentSize
Screen Shot 2014-10-23 at 8.53.44 am.png 28.84 KB
eric's picture
Offline
Joined: 11/25/2007
Juice: 82
Re: Re: Re: Same Error

I have already provided ALL instructions that worked for me. If you can't follow it, I can't really help you there. It is pretty obvious how to do it.

My only conclusion is you didn't follow my instructions.

carbonomedia's picture
Offline
Joined: 11/10/2009
Juice: 44
Re: Re: Re: Re: Same Error

Okay for anyones reference.

I did get this working... by editing Erics Module file.

I changed

if (variable_get('uc_cart_block_empty_hide', FALSE) ||

to

if (variable_get('uc_cart_block_empty_hide', TRUE) ||

and it seems to all work fine now. From what I can see.

Eric if you could maybe give me any feedback on this??? Im not too much of a PHP guy... and im not entirely sure why this would fix it....

I have attached a zip file of the module for the time being.

thanks.

AttachmentSize
uc_currency.module.zip 2.23 KB
eric's picture
Offline
Joined: 11/25/2007
Juice: 82
Re: Re: Re: Re: Re: Same Error

I am not a php or coder either.. Sorry, can't help/comment, I was just trying and reporting what seems to worked for me.

shahidaali's picture
Offline
Joined: 03/09/2016
Juice: 3
Error in module uc_currency.admin.inc file

Hi,

I found a bug in module in file uc_currency.admin.inc on line 113 variable_set('cuc_currency_convert', serialize($convert_currencies)); here the variable name is wrong, and extra "c" is appended , due to this field values are not saving correctly and the complete module is not working. Thanks.