Magento 2.1 product view page - magento

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.

Related

How to make a change to Magento cart page

I have a question regarding the cart page in magento. Where do I find the file to edit the copy?
Example of the site I am working on is: http://www.skeletonwatchshop.com/checkout/cart/
When you add an item to your cart, below you get an area where it says "Estimate Shipping and Tax"
I want to change that copy. I can't seem to find the file that has that copy.
The template file responsible for this block on the checkout page is:
app/design/frontend/*package*/*theme*/template/checkout/cart/shipping.phtml
If you can't find this template for the theme you're using, replace the package/theme name with the fallback theme, e.g. base/default

Magento New Product Page Layout

I want to design/test a new product page layout/template in magento. What would be the best way of doing this? Copy/paste the product view.phtml and rename it or is there a better way?
You need to change the layout or just the template
If layout you have to update the handle
If template create a new theme and add view.phtml in the theme in catalog/product/ folder respectively
Assign the theme to be default theme.
Do some investigation to get some more idea about theme and layout
It is fairly simple as there is already a built-in widget in Magento which display your newly products.
So create a new CMS page then go to content tab, click on insert widget, find "catalog new product list widget" under widget list and insert into page.

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

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

Magento: layouts not appearing in CMS page dropdown

I just installed the Bootstrap template into my Magento install. I uploaded the files, went to System > Design and added the design change. The frontend of my site now displays the theme, but when I go to CMS > Pages and select a page, the Layout dropdown still shows the default/default layouts, not the ones as defined in app/design/frontend/bootstrap/default/layout/page.xml
Any ideas why they are not appearing? Thanks!
It's because Page.xml doesn't define the CMS page layouts for that drop down menu. You can find more information on it here;
magento: remove page layouts
This Inchoo post is a good way to add your own CMS page layout types via a super simple module (one of the answers in the above link takes a similar approach);
http://inchoo.net/ecommerce/magento/custom-cms-page-layout/

Magento Home Page Layout

Why does my page.xml file not change the layout of the homepage?? It changes the layouts of the other pages, but not the homepage. Does the homepage have its own layout xml file??
Figured it out. You have to go to the admin panel -> CMS -> and change the layout for the homepage to match your layout.
For example:
Mine was not working b/c page.xml was using a single column layout whereas the homepage was using a two column layout. - it goofed it all up.
Just match the layouts.

Resources