Will this module be ported?

Comments

markus_petrux’s picture

Category: support » feature
Status: Active » Postponed

Sure, though I cannot tell when. Also, it depends on other modules that also need to be ported yet.

lpalgarvio’s picture

and a drupal 6 upgrade? CCK 3.x is in development for D6

note: Fields is now present in D7 core, with optional contrib 3.x modules (cck project)

BenK’s picture

Subscribing

NathanM’s picture

Subscribing

NathanM’s picture

Subscribing

gagarine’s picture

suscribe

clashar’s picture

+1

Oceanman’s picture

subscribe

dmadruga’s picture

+1

jeroenHendrickx’s picture

subscribe

elly’s picture

subscribingggg (sorry)

7wonders’s picture

sub

JGO’s picture

sub

bsnodgrass’s picture

It appears the Currency API has a stable release for D7 and CCK (contrib 3.x?) has posted a 7.x-2.x-dev version 7.

Since there is no update on this issue or on the project page as yet, I was wondering if anyone has an idea when a dev version for Money CCK will be started?

Thanks

btw, this module saved my bacon on a D6 site! I only wish I was a coder and could help with that.

Shadlington’s picture

Subbing

7wonders’s picture

Title: Plans for D7 » Money CCK plans for D7

title change so its easier to follow

CarbonPig’s picture

subscribe

iRex’s picture

subscribing

clashar’s picture

there is now "following" button, it's up on the right of the page. So no more need for subscribing, "+1" ))

basicmagic.net’s picture

subscribe

pepemty’s picture

Subscribing

ydnar79’s picture

Priority: Normal » Major

There does not seem to have been any further progress in over a year.... Has anyone made in progress with this module? Is there any news?

Drupal 7 will have been out for a year very soon.... I am sure that MANY would appreciate having this module available to them for D7!

markus_petrux’s picture

Priority: Major » Normal

I'm sorry I have very little time to do the port. Also, there are 2 basic modules here that need to be ported first: Format Number API, Formatted Number CCK.

PS: AFAICT, tagging as 'major' won't render more attention to port the module to a new version. Please, use this priority status for bugs only.

splash112’s picture

Would a bounty help? And if so, what size?

mgifford’s picture

Someone running the git version through the Coder module to resolve obvious stuff can help the migration to D7 considerably. Once there's a patch off the latest D6 to test it is much easier to bring it to a release.

lolandese’s picture

For some use cases the Double field module can be an alternative.

nouriassafi’s picture

Here is a Drupal 7 port of Money CCK Field:
http://drupal.org/sandbox/nouriassafi/1619328

Please make sure to use this version of the Format Number API:
http://drupalcode.org/project/format_number.git/commit/e52ee8a46466f4aa7...

And the Drupal 7 port of Formatted Number CCK available here:
http://drupal.org/sandbox/nouriassafi/1603812

nouriassafi’s picture

Title: Money CCK plans for D7 » Initial Drupal 7 port: issues
Status: Postponed » Needs review
giorgio79’s picture

Awesome! @nouriassafi would you be interested in becoming a maintainer of this module? So this port could be released right away as a dev release.

Perhaps the module should be renamed as Money Field as well.

nouriassafi’s picture

Yes, I am willing to maintain it.

andrewoke’s picture

StatusFileSize
new9.52 KB

There is a bug in the port from #27 (using all 3 recommended modules on 7.14). When you edit the node the field appears fine; however after submission it adds a bunch of commas and decimals which throws a validation error (submitting it again does work though). Same thing happens when you try to add another field.

If I have the time I'll dig around in the code and see what's going on and try to submit a patch.

kaizerking’s picture

Any update on the bug @#31 pl?

nouriassafi’s picture

@andrewoke I have not been able to reproduce the bug. Could you provide further details?

kaizerking’s picture

@nouriassafi nice job i have downloaded from your links and works nice job

mgifford’s picture

@nouriassafi can you also build a patch from your sandbox? Would be good to know if any of the functionality has changed and a patch is a nice way to do that.

Also, it's been tested and seems to work. Might be some bugs still that @andrewoke might be able to contribute later, but that's expected in a dev release. Let's get the code in the repo and get folks to start testing it.

Finally, has anyone reached out to @Wim Leers or others about this? Would be good to have this module be maintained in D7. Adding @nouriassafi seems like a good step.

mgifford’s picture

Oh ya, probably should consider name change with D7, right? No CCK after all.

Ozzie’s picture

subscribing

kenorb’s picture

kenorb’s picture

StatusFileSize
new31.94 KB

Find the recent patch in the attachment (mainly generated from the sandbox).
See: #27 for module dependencies

kenorb’s picture

StatusFileSize
new31.92 KB

This patch works with the current stable Currency module and latest development version of Format Number API
So no any sandboxes needed.

currency_api_get_list() is currency_options()

See: http://drupal.org/node/1945330

Tested and it seems to work.
Please test it.

xano’s picture

You no longer need Format Number API, as Currency 2 comes with Unicode Common Locale Data Repository-based price formatting that site builders can customize on a per-locale basis through the user interface. Simply run amounts through CurrencyLocalePattern::loadFromEnv()->format($currency, $amount); and you're good.

I'm actually thinking of adding a field to Currency itself for the 2.1 release, since it has everything it needs for parsing user input (the currency_amount form element), displaying amounts (CurrencyLocalePattern), and performing calculations (BCMath) already.

playfulwolf’s picture

Is there anything downloadable and patched in zip format for drupal7?

giorgio79’s picture

Perhaps we could simply grab the Price module from http://drupal.org/project/commerce as the D7 version? :)

markus_petrux’s picture

@kenorb: just saw your request by email. I have added you to the list of maintainers of this project. I'm sure you'll drive this module in the right direction. Thank you!

kenorb’s picture

Thank you.
Can we rename the title from 'Money CCK field' into 'Money field'?

kenorb’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Fixed

Committed.
@PlayfulWolf: 7.x-1.x-dev version is now available in the zip file.
Please raise separate tickets for any issues.

Current dependencies:
http://drupal.org/project/currency
http://drupal.org/project/format_number
http://drupal.org/sandbox/nouriassafi/1603812

See also currency field request for Currency module at #1957402: Currency: add Field support

kenorb’s picture

The recent D7 dev version doesn't have dependencies to format_number and formatted_number anymore.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.