-
Notifications
You must be signed in to change notification settings - Fork 16
Multiple fixes for configurable products and add tests. #158
base: 8.x-1.x
Are you sure you want to change the base?
Multiple fixes for configurable products and add tests. #158
Conversation
Allow adding item to cart with multiple parents. Remove obsolete code related to stock rework. Update code to handle product tree, make it fast, efficient and less memory consuming.
Also make it more extendable.
$sku_ids = $query->execute(); | ||
|
||
if (count($sku_ids) > 1) { | ||
$this->failedSkus[] = $product['sku'] . '(Duplicate product SKU found.)'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why would we fail product update, removed this code to ensure we can update products
size: | ||
label: 'Size' | ||
type: integer | ||
attribute_set: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this schema change was required to make sure tests work fine for dynamically added fields
Schema errors for acm_sku.configurable_form_settings with the following errors: acm_sku.configurable_form_settings:attribute_weights.default.color missing schema
@@ -8,3 +8,5 @@ product_publish: false | |||
api_version: v2 | |||
filter_root_category: false | |||
text_format: rich_text | |||
delete_disabled_skus: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing config fields and schema was failing tests, haven't added update hook specifically for this one as I'm setting default values here, let me know if update hook is required (note: they are already editable via admin form)
Travis failure is not related to changes in PR or new tests added in PR PHPUnit tests passed:
Failure:
|
@miromichalicka @sdelbosc any feedback on this one? |
No description provided.