1

I need to change all my products to the page layout "2column left". Now is everything set on 1column. How can I do this in one step for all the products?

  • magento version please? – NIPPU Oct 24 '18 at 13:44
  • I'm using 1.9.2.1 – NielN98 Oct 24 '18 at 14:02
  • Hi @NielN98 let me know whether you are look for the solution on product view page (or) Category listing page? – NIPPU Oct 24 '18 at 14:09
  • It is for the product view page. All the products need to be this: online-ledshop.com/… . Now is everything like this: online-ledshop.com/philips-corepro-ledtube-t8-8w-60cm.html . It are 700 products that need to be change, so I need a solution I can do this in a few steps – NielN98 Oct 24 '18 at 14:18
0

You can overwrite Magento_Catalog with layout file named catalog_product_view.xml by custom module and put this layout (2columns-left) in it.

 <page layout="2columns-left" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

Hope this will help you.

0

Create a catalog_product_view.xml under your theme like below:

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

and paste the below content to it:

<?xml version="1.0"?>
<page layout="2columns-left" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
</body>

You can create catalog_product_view.xml under any different module as well.

  • Thank you for the reaction. I created this xml file and added the code, but there is no change. I also deleted the cache. – NielN98 Oct 24 '18 at 17:58
  • Check the working theme and try to flush the cache it should work. – Sukumar Gorai Oct 24 '18 at 18:05
  • Sorry, but it do not work... – NielN98 Nov 1 '18 at 20:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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