Skip to content

Commit

Permalink
Merge pull request #3218 from Cheeerd/#3164
Browse files Browse the repository at this point in the history
fix configurable options label in cart after product just added
  • Loading branch information
pkarw committed Jul 11, 2019
2 parents ac2f53f + fbb7c08 commit 5582a8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ value); `final_price` might been used along with `special_price` with Magento fo
- Make image proxy url work with relative base url - @cewald (#3158)
- Fixed memory leak with enabled dynamicConfigReload - @dimasch (#3075)
- Fixed error for the orderhistory null for google-tag-manager extension - @cnviradiya (#3195)
- Fixed label of configurable options in cart after product just added - @cheeerd (#3164)

### Changed / Improved
- Shipping address is saved as default when not logged in user chooses to create account during checkout - @iwonapiotrowska (#2636)
Expand Down
4 changes: 2 additions & 2 deletions core/modules/catalog/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,13 +377,13 @@ export function setConfigurableProductOptionsAsync (context, { product, configur
existingOption = {
option_id: option.attribute_id,
option_value: configOption.id,
label: i18n.t(configOption.attribute_code),
label: option.label || i18n.t(configOption.attribute_code),
value: configOption.label
}
configurable_item_options.push(existingOption)
}
existingOption.option_value = configOption.id
existingOption.label = i18n.t(configOption.attribute_code)
existingOption.label = option.label || i18n.t(configOption.attribute_code)
existingOption.value = configOption.label
}
}
Expand Down

0 comments on commit 5582a8d

Please sign in to comment.