Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void createOrUpdateAttributeValues(List<ProductAttributeValue> attributeValues,
- Product feature,
- String attributeId,
- String value,
- Language language = null,
- Boolean isUpdate) {
- if (canAttributeValueBeUpdated(isUpdate, attributeId)) {
- ProductAttributeValue productAttributeValue = constructAttributeValue(feature, attributeId, value, language)
- if (productAttributeValue) {
- attributeValues << productAttributeValue
- }
- } else {
- log.debug("Skipping updating value of attribute ${attributeId}. Feature id: ${feature.productId}")
- }
- }
Add Comment
Please, Sign In to add comment