3

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.

enter image description here

2
  • Already warning message are showing at correct place in my case. Did you changed anything before or you can check console errors Commented 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.
    – codeIT
    Commented Nov 22, 2016 at 11:57

1 Answer 1

2

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 = '';
}
1
  • Thank youu, a lot!
    – codeIT
    Commented Nov 22, 2016 at 12:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.