Closed (fixed)
Project:
Commerce Migrate
Version:
8.x-2.x-dev
Component:
Ubercart D6
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2017 at 01:06 UTC
Updated:
23 Aug 2017 at 21:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
willeaton commentedSorry, was missing some code, attached latest version. I still get some errors so I think there is more work to do also.
Comment #3
willeaton commentedSorry, was missing some code, attached latest version. I still get some errors so I think there is more work to do also.
Comment #4
quietone commented@willeaton, thanks for the patch. You mention you are running different Ubercart versions. Can you say which versions have this problem and which ones don't?
Comment #5
willeaton commentedUbercart 6.x-2.4
Not sure it was a ubercart version issue...
Comment #6
mglamanMarking for review so we can see what the tests say.
Comment #8
willeaton commentedHey, this patch isn't ready to launch as it is anyway. It needs some work to apply the proper the currency. My patch just hard codes it to euros at the moment. I'm not sure how to query the currency, I imagine it needs to be a separate query call.
Comment #9
mglamanI'm not sure either.
Won't quite work. Since Ubercart isn't multi-currency, I suppose we could just load the first available currency and default to that.
Comment #10
willeaton commentedFirst available currency in D6 or D8? I think from D6 would be sufficient if possible. Have you got a patch to test this?
Comment #11
heddnSeems like a duplicate to #2888764: Process plugin for default store currency. Or at least pended on that issue. Someone make a call.
Comment #12
quietone commentedWe can get the currency from the variable, uc_currency.
The source plugin now works when the currency column is present and when it is not. When it is not there it will get the currency from the variable and add it the query so the columns remain the same. Since the change is on the source plugin there are two new test for the source plugin. One with a currency column and one without.
Comment #14
quietone commentedPrevious CI st aborted. Test pass and ready for review.
Comment #15
mglamanTests look great, like the workaround. +1 from me!
Comment #16
willeaton commentedPatch tested on a real case, order products imported correctly and set to correct currency. I'd say this is good to release.
Comment #18
quietone commentedThanks all!