Is it possible to move up label, below the fields? And where I can find it? I tried in validation.js, but didn't have much luck.
-
Already warning message are showing at correct place in my case. Did you changed anything before or you can check console errors– Nitin PawarCommented Nov 22, 2016 at 11:54
-
No, I didn't change anything. Other warnings are fine, but only this one is move down. Have no idea how to move it up, since it's all added via js.– codeITCommented Nov 22, 2016 at 11:57
Add a comment
|
1 Answer
By default this warning message comes from core module Magento Swatches.
vendor/magento/module-swatches/view/frontend/web/js/swatch-renderer.js
Override core js file into your theme,
/app/design/frontend/{Packagename}}/{themename}}/Magento_Swatches/web/js/swatch-renderer.js
Replace
if ($widget.productForm) {
$widget.productForm.append(input);
input = '';
}
with,
if ($widget.productForm) {
$widget.productForm.find('#product-options-wrapper').after(input);
input = '';
}