I'm trying to use this module as a way of defining what the default currency should be for each locale on my Drupal Commerce site. There are two pieces of the puzzle currently missing to achieve this are as follows:

1. A hook_commerce_default_currency() implementation which sets the site default currency to that selected on the locale

2. (A nice to have) Instead of a textfield on the locale languages edit form, why not have a select displaying the currency codes which are enabled in commerce?

I'm just wondering - is there any reason this module would not do both of these out of the box?

Comments

jamsilver created an issue. See original summary.

jamsilver’s picture

Simple patch attached.

I've used the select_or_other module (if it is enabled) to allow users to specify a non-commerce currency should that be desired.

jamsilver’s picture

Assigned: jamsilver » Unassigned
Status: Active » Needs review
james.williams’s picture

Three years later, still looks great to me, thanks! I'm going to use this on a new project :-D

james.williams’s picture

Status: Needs review » Reviewed & tested by the community