cancel
Showing results for 
Search instead for 
Did you mean: 

Configurable product Name replace the symbol - with space

Configurable product Name replace the symbol - with space

Hello,

when I create a configurable product with size and color, magento automatically set child's name to:
"PARENT NAME"-"COLOR"-"SIZE"
Hose for women-black-M
How can I replace the symbol - with space and get "Hose for women black M"?

1 REPLY 1

Re: Configurable product Name replace the symbol - with space

Hello @emilianoli

 

module-configurable-product/view/adminhtml/web/js/variations\variations.js

 

where you can find :- 

getVariationKey: function (options) {
return _.pluck(options, 'value').sort().join('-');
},

 

 

you need to change that.

 

hope it will help you.


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer