Product image not displaying in product page(view.phtml) - image

Product image not displaying in product page of magento. Where as its showing in list and grid. It is due to an extension which i installed and uninstalled, since that the product image is not showing up, Even the view.phtml is not calling the media.phtml. Please any suggestions ...
Thanks..

You could replace view.phtml with your original file, which could could copy from the base template into your custom template
app/design/frontend/base/default/template/catalog/product/view.phtml
to
app/design/frontend/[yournamespace]/[yourtheme]/template/catalog/product/view.phtml
You may also need to delete any layout xml files installed by the module, incase it has made changes to the layout of the view page
app/design/frontend/default/default/layout/[moduleslayout].xml

Related

Magento 2.1 product view page

I'm working on magento 2.1 ..
If I add content to product see picture ---> Click for photo
How can I change product view page?
Where is the phtml file?
Magento 2 no longer uses a formal view.phtml file for the product view. It is all controlled with XML to load lots of individual template files.
You will find the layout in;
/app/design/frontend/[theme maker]/[theme name]/Magento_Catalog/layout/catalog_product_view.xml
If your theme is using a base theme as a fallback, for example the Magento/Blank theme, copy the file from that theme to your own theme's path.

get content of $this->getChildHtml('left')

I have installed sns nova theme for my site.
I need to know from where $this->getChildHtml('left') getting data. Inside same there is promotion slider. I need to reposition it to the bottom. Can anybody help me out to solve it?
you need to look on local.xml of your theme if it is correcly packaged, on the layout folder. Else search for left on the same folder to see where is the xml declaration. Once you found, you can check which blocks are called and the according template. I believe that your left child consist of many templates but I cannot be sure as I do not know the theme.

Magento products show up in all categories

I have a problem with products on my category-pages.
I've got 2 sub-categories, both with products. When I call the category-page of the first category, products from both categories show up.
When i turn the theme back to the default magento theme, only the products from the correct category show up.
I have already looked in the list.phtml file, but that's not it.
Got any idea's where to look? Thanks.
First check if there is a local.xml in your theme folder. The local.xml is used to apply specific changes without affecting the fallback system. Check the loca.xml for any specific changes to <"catalog_category_default"> , <"catalog_category_layered"> or <"default">.
If there is no local.xml in your theme folder you should check the catalog.xml.
You could open the catalog.xml from the default folder and open it next to the one you use in your theme. Then step by step check the differences.
Hope it helps!
I found the problem. For me the problem was in the 2columns-left.phtml file of my theme.
I compared it to the base 2columns-left.phtml file and saw some differences. Then is was easy to see which one it was and to fix it.

How to edit Magento product page template?

I have just installed custom options for grouped products plugin. It currently generates the template in the product page below the add-to-cart button. Now if I need to position it above the add-to-cart button, what procedure should I need to follow?
Thanks :)
Get familiar with how "getChildHtml" works. The block is added in layout yet (because you see it), so you just need to edit your catalog/product/view.phtml and change the positioning of the actual getChildHtml('block_name_in_layout_xml_you_want_to_move').

Magento attributes showing in one theme / not showing in another

Magento attributes not showing in layered navigation.
In my original Theme attributes are showing as they should.
When use another theme, all attributes are not showing.
Obviously there must be somewhere in the theme but I do not know where to change it.
It is hard to guess your situation with so few information, but if your 'original theme' contains some extra code for attributes in layered navigation, then the file should be in
\app\design\frontend\PACKAGE\THEME\template\catalog\navigation\left.phtml

Resources