-
Notifications
You must be signed in to change notification settings - Fork 29
[MAGETWO-43470] ImportExport Option with coma rise PHP Notice #65
Comments
Hello. |
@tadhgbowe this is for attribute options for example if you setup colour on a product. |
Hello. An update from me on this one: [TESTED on 2.3-develop branch]. Lets zoom in on product attribute "color". I created a new Option "White, Cream" in the Admin Panel and it saved fine. When I then tried to import a new configurable product linking to the above virtual product using the configurable_variations with a value like this "sku=SKU123,size=34,color=White, Cream" it throws the following errors:
So, if "additional_attributes" column works then we need to find a way of making the "configurable_variations" work too. I will continue my testing. Cheers |
@dmanners - Quick Update: I have a solution written to allow the comma character be part of a valid super attribute option value inside the configurable_variations column. For example "color=White, Cream" I will test with other characters like "=", "-" and "|" next. If all is well then I shall submit a pull request. Thanks, |
@dmanners - Test results with "|" pipe character. I created a color with an option value of "Yellow | Orange" This causes a product import failure when you try to assign that value to a configurable_variations SKU e.g. sku=YellowOrange34,size=34,color=Yellow | Orange The pipe character is the default multi-line separator for the configurable_variations column. So there's more work required here. In the above example you can see a space before and after the "|". This also presents a problem because when they get split temporarily the value is trimmed. Product attribute option values can have space characters before and after. This also presents challenges when importing if those values are trimmed en route. More testing required here. Regards, |
Hello. But I've made a discovery. You don't need to actually have a super attribute value specified. Here's an example - this is what we're used to seeing: sku=Yellow34,size=34,color=Yellow|sku=Yellow36,size=36,color=Yellow You only need this: sku=Yellow34,size=,color=|sku=Yellow36,size=,color= So, there's not much point fixing a problem when the original values are not actually needed. The original issue listed at the top is actually linked to custom options i.e. Error when import product with option label which contains symbols "," (coma) maybe doesn't work with others separator symbols (|,=) So this still remains a problem I think (my next task). I got slightly side tracked with my other comments above. Cheers |
MQE-1068: Require Issue ID for Skipped Test
Error when import product with option label which contains symbols "," (coma) maybe doesn't work with others separator symbols (|,=)
Preconditions
None
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: