Closed (fixed)
Project:
Physical Fields
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2011 at 17:46 UTC
Updated:
12 Dec 2016 at 18:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ollie222 commentedI too would find this useful functionality.
Comment #2
Patricec commented+1
I second the request. Being able to import physical fields would be extremely useful. Thanks much.
Edit : I just posted a patch that helps import physical weight using Commerce Feeds. See http://drupal.org/node/1293820
Comment #3
pcambraAfter lots of discussion, I think that, as physical products are thought to be in other entity types, not only commerce products, the feeds integration belongs here more than to commerce feeds.
Patch attached, it's been widely tested inside commerce feeds.
Credits: The initial author of the patch is Patricec and andyg5000 has pushed it a lot forward, see #1293820: Integrate with the Commerce Physical Product / Physical Fields
Comment #4
wgsimon commentedDo we not need something like this in
physical.modulein addition to the contents of the patch?Comment #5
andyg5000Hey Will,
The current recommended version of Feeds (7.x-2.0-alpha5) will automatically add physical.feeds.inc file. If the feeds module is older, you just need to make sure that that file is included somewhere in physical.module so hook_feeds_processor_targets_alter() is executed properly.
Thanks,
Andy
Comment #6
johnvIMO this works flawless.
Comment #7
lima2x commentedHi,
I would need this importation of physical fields with Feeds, but I can't see this addition in 7.x-2.0-alpha5 ?
How shall add this patch ?
Thank you
Comment #8
brephraim commentedI have applied this patch, but I still am not seeing the weight field as an available target for feed imports.
I am using Feeds 7.x-2.0-alpha5, Commerce Feeds 7.x-1.2, and Physical 7.x-1.x-dev.
Comment #9
andyf commented#3 is working for me, I'm importing the weight but not the unit. Details the same as @brephraim's above.
Comment #10
brephraim commentedScratch that, it was a dumb user error. This works great for me.
EDIT: I didn't try to import the unit, though.
Comment #11
imiksuWorking for me too.
Comment #12
webrant commentedApplied patch to Commerce Feeds 7.x-1.3 but now get a 500 error whenever I try to access feeds/product_importer/mapping. Has the patch been used by anyone with the latest release of commerce feeds?
Comment #13
johnv@webrant, I only used it with my self-made mapper and nodes, not products.
Comment #14
webrant commentedThanks johnv. Has anyone successfully used the patch with Commerce Feeds 7.x-1.3 and the product importer?
Comment #15
Horroshow commentedApplied the patch but still can't see the field in either products or nodes importer. I'm using Commerce Feeds 7.x-1.3. Any clue?
Comment #16
Horroshow commentedI forgot modules versions I installed:
Feeds 7.x-2.0-alpha5
Commerce Feeds 7.x-1.3
Could it be related? What version are you using to make the patch work?
Comment #17
Horroshow commentedOk, the patch created the file physical.feeds.inc at the root. I just had to move it to /sites/all/modules/physical and the fields appeared in my feed product importer. Yeah! Thanks all!
Comment #18
pcambraYou always need to apply the module patches from the "module root" folder.
Comment #19
3rdLOF commentedNot working at all with the latest DEV versions of Commerce Feeds and Feeds.
Patched fine, not showing up at all.
Comment #20
3rdLOF commentedA) Like a few others, stupid mistake after 16hours of coding. Too stupid to mention.
B) Clearing the cache is a must.
Comment #21
shaneonabike commentedYep I fourth this in that it's working. Can we not apply this to the actual module PLEASE PLEASE!
Comment #22
deggertsen commentedYet another confirmation that this works. Please apply the patch.
Comment #23
myoung008 commentedWorks great with product importer. Please apply patch.
Comment #24
johns10 commentedWhen I try to apply the patch I get fatal: corrupt patch at line 99
Comment #25
johns10 commentedNevermind - had missing newline at end of file.
Comment #26
johns10 commentedSimilarly, patch works fine. However, I cannot map to physical fields when I'm setting up my importer:
Commerce Feeds 7.x-1.3
Feeds 7.x-2.0-alpha8
Am I missing something here?
I am feeding in to product bundles, not nodes.
Comment #27
summit commentedHi, Is this patch https://drupal.org/files/1372070-integrate_with_feeds.patch committed please?
greetings, Martijn
Comment #28
wgsimon commentedHi. This patch works for me. Is it possible to get it committed? I'm using Feeds 7.x-2.0-alpha8.
Comment #29
rogical commentedpatch works
Comment #30
2ndChanceTech commentedPatch worked great with multiple cvs importing just dimensions (I didn't try weight or units).
Thank you! Just what I needed.
Comment #31
JemBijoux commentedWould be great to see this committed! I had run this patch in the past, but an update today to the latest dev version seems to have undone it.
Comment #32
Kiendeleo commentedI to would like to see this committed.
Comment #33
msamavi commentedNot working here!
Feeds 7.x-2.0-alpha8
Commerce Feeds 7.x-1.3+5-dev
Comment #34
msamavi commentedThanks Horroshow, your comment helped.
Comment #35
vegantriathleteHere's another RTBC. Please do get this committed. Thanks so much to those who wrote the patch!
Comment #36
Kiendeleo commentedWe could really use this please get this commited
Comment #37
amysragbag commentedI applied the patch and I see that physical.feeds.inc is there in commerce_feeds/mappers but the options to add product weight and dimensions as targets are missing from the feeds/products_importer/mapping page. I am using Physical Fields 7.x-1.x-dev, Commerce Feeds 7.x-1.3, and Feeds Import 7.x-2.0-alpha8. Do you recommend checking or trying anything to get it working?
Comment #38
lunk rat commented@amysragbag and @msamavi if you are patching with
patchcommand, please make sure you are using the -p1 switch, like this:patch -p1 < 1372070-integrate_with_feeds.patchThen verify that
physical.feeds.inchas been created in your modules/physical directory.- lunk_rat
Comment #39
jimmynash commentedPatch applied fine for me. Import worked well. Just chiming in.
Thanks to all for the work!
Comment #40
crasx commentedWhy has this not been integrated yet?
Comment #41
zkrebs commentedWhen importing weight:unit what should the data look like?
Comment #42
spanac commented#3 Works great with latest Feeds 7.x-2.0-alpha8 and Physical Fields 7.x-1.x-dev (2013-Oct-01). Thank you all for making this :) @rszrama please commit this to the next dev version of Physical Fields.
For others having problems with implementation, just make sure that you have physicalphysical.feeds.inc at /sites/all/modules/physicalphysical.feeds.inc and flush all caches at admin/config/development/performance
Comment #43
czigor commentedLet's include the Volume field as well.
Comment #44
czigor commentedI just realised that the volume field only exists as patch. See #2483243: Add field for physical volume. So never mind my patch.
Comment #45
summit commentedHi, couldn't the volume field be added also, and not only for patch?
greetings, Martijn
Comment #46
czigor commentedThis patch is still not for review until the volume patch #2483243: Add field for physical volume gets in. I need this here for drush make purposes.
Comment #47
ecvandenberg commentedSpanac made a typo at #42 which made me wonder how that would work...
He means:
For others having problems with implementation, just make sure that you have physical.feeds.inc at /sites/all/modules/physical/physical.feeds.inc and flush all caches at admin/config/development/performance
Comment #48
andyg5000@czigor, You should open a new issue with your volume patch. Hopefully we can get this one and the other volume stuff committed soon. That being said, I did run across a small issue with @pcambra's patch which just needed 2 trim() calls. Without them, spaces in the data cause the fields to be skipped and can lead to data loss.
Comment #49
czigor commented@andyg5000 Created #2756893: Integrate volume with feeds for that.
Comment #50
nimek commentedPatch is wrong - in current state it will only works with nodes !
line 58
Solution to make it work with taxonomy terms
Or even more generic for all entity types
Comment #51
joelpittetI think #50 is correct, the code snippets need coding standards cleanup, isn't there a helper for getting the bundle though? I know entity_metadata_wrapper() will have
->getBundle(), but seems like a bit of a waste to wrap if we don't need to.Comment #52
nimek commentedComment #53
joelpittet@nimek, could you provide that as an update to the patch please?
Comment #54
czigor commentedThanks, @nimek, updated the patch in #48.
Comment #56
czigor commentedCommitted, thanks to all who contributed to this!
Comment #57
geek-merlinThanks you brought this home finally!
Comment #58
gturnbull commentedI tested patch 54 and it is working well for me. Thank for committing it!