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?– Nagaraju KasaCommented Oct 24, 2018 at 13:44
-
I'm using 1.9.2.1– NielN98Commented Oct 24, 2018 at 14:02
-
Hi @NielN98 let me know whether you are look for the solution on product view page (or) Category listing page?– Nagaraju KasaCommented Oct 24, 2018 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– NielN98Commented Oct 24, 2018 at 14:18
Add a comment
|
2 Answers
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.
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.– NielN98Commented Oct 24, 2018 at 17:58
-
Check the working theme and try to flush the cache it should work. Commented Oct 24, 2018 at 18:05
-