how to move custom attributes below add to cart button in magento 2.3.4
Hi @sarithapoleela
Try to override below phtml file with in your theme:
vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml
With this file you can customise your design and add your attribute according to your requirements.
If issue resolve, please click on 'Kudos' & Accept as Solution!
You must create a block taking reference after add to cart link.
Create file in your module/theme catalog_product_view.xml.
<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="product.info.options.wrapper.bottom"> <block class="[Company]\[Module]\Block\Catalog\Product\Block" name="product.info.customattribute" template="[Company]_[Module]::catalog/product/customAttribute.phtml" after="product.info.addtocart"/> </referenceBlock> </body> </page>
and create phtml file accordingly.