Jump to content


Photo

How to Add Block Before Add to Cart Button in Magento 2 Product Page

magento magento2 magento2development

  • Please log in to reply
No replies to this topic

#1 Meetanshi.inc

Meetanshi.inc

    Advanced Member

  • Members
  • PipPipPip
  • 432 posts

Posted 13 June 2022 - 06:58 AM

The product page of eCommerce store plays a vital role in convincing the customers for purchasing the products. Adding engaging content and elements on the product page can drive the visitors’ attention and give a quick boost to the conversion rate.

 

The area around the add to cart button on the product page is perfect for adding engaging content to seek the visitors’ attention. You can add block before Add to Cart button in Magento 2 product page and add elements as you wish. It can be easily done by tweaking some codes in the source files.

 

In order to serve the purpose in Magento 2, you need to add new block in the catalog_product_view.xml file at the Vendor\Extension\view\frontend\layout and create new view.phtml files at the respective directories.

 

Read the complete solution at: https://meetanshi.com/blog/add-block-before-add-to-cart-button-in-magento-2-product-page/



looking for the best presta addons with outstanding support? check this: PrestaShop Modules




Also tagged with one or more of these keywords: magento, magento2, magento2development