0

I want to move the product custom options section before product price. How can I achieve that? i have used move element but did not get

Thanks

2
  • Can you show how you have tried so far? Commented Jan 27, 2020 at 12:27
  • i have applied this but not working ..<move element="product.info.price" destination="product.info.form.options" before="product.info.options.wrapper.bottom"/> Commented Jan 28, 2020 at 6:22

1 Answer 1

1

You can not move the Options outside to the form. But you can Move the price section under the options. to Archive this you have to add the below code in

app/design/frontend/Vendor/Theme/Magento_Catalog/layout/catalog_product_view.xml

<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <move element="product.info.price" destination="product.info.options.wrapper.bottom" before="-"/>
    </body>
</page>

Check the below image

enter image description here

2
  • I have applied your code..its working for product who have custom options ..but for a product which does not have the custom option..in that case, price is getting hidden.@kishor Thummar Commented Jan 28, 2020 at 6:21
  • @HemangiPatel are you able to solve it because i am also getting same issue without custom option products have price is hidden Commented Nov 19, 2020 at 13:15

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.