Are there plans to migrate current stock value on products as well if Commerce_Stock is activated ?

CommentFileSizeAuthor
#2 MigrateStockValue-1370410-1.patch3.31 KBkmolkens

Comments

bojanz’s picture

If you write it, I'll commit it.

kmolkens’s picture

StatusFileSize
new3.31 KB

Here's a patch containing some changes :
1) Currency used for migrating products is default currency of Commerce site.
2) Cost is transferred as well (if field_cost exists)
3) Stock value is migrated if stock module is enabled on commerce site
There's still a problem with this last one.
Value is taken from source site correctly.
Value is added to new entity but is converted to an array with a string and a language code and therefor not added to the integer field of stock ?
Anybody an idea why ?

kmolkens’s picture

I tested the above patch after installing migrate 7.x-2.x-dev and now everything works fine.
Can someone review the patch and commit it ?

rfay’s picture

Project: Commerce Migrate » Commerce Migrate Ubercart
Component: Commerce Migrate Ubercart » Code
dwkitchen’s picture

Issue summary: View changes
Status: Active » Closed (outdated)