Closed (outdated)
Project:
Ubercart CCK currency
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2010 at 23:06 UTC
Updated:
27 Jun 2018 at 13:39 UTC
Jump to comment: Most recent
Comments
Comment #1
ykyuen commentedi try to set the currency in hook_node_api. here is the code
but i got the following error when i go to the node in browser
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/vhosts/dpshk_dev/sites/all/modules/token/token.module on line 346.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /var/vhosts/dpshk_dev/sites/all/modules/token/token.module on line 349.
* warning: array_values() [function.array-values]: The argument should be an array in /var/vhosts/dpshk_dev/sites/all/modules/token/token.module on line 350.
* warning: Invalid argument supplied for foreach() in /var/vhosts/dpshk_dev/sites/all/modules/token/token.module on line 413.
* warning: Invalid argument supplied for foreach() in /var/vhosts/dpshk_dev/sites/all/modules/pathauto/pathauto.inc on line 566.
The above errors will not appear if i am logout. and i find that the code only works only if i clear the drupal cache.
What is the proper way to change the currency in code level? it would be great if i can add this logic when user change the language at the language switcher block just like kaata suggested.
Comment #2
kenorb commentedDrupal 6 is no longer officially supported. If you think this issue is still relevant for 8.x, feel free to re-open.