Magento 2 custom theme layout xml and css not working

magento-prashantblog-520x245

If your custom theme layout xml and css not working then check your Database. There is a table called “theme” that stores a reference to all the themes that have ever been installed in your store. If the type of the theme is set to 1, that means Magento sees the theme are virtual and will no longer load your xml files. If that is the case, just change it to 0. I don’t know the why of this issue, but it has tripped me up a few time. And…

Read More

Resize Product Image in Magento 2

magento-prashantblog-520x245

Today We are going to describe how to resize the product image in Magento 2. Product image size is the good attribute to make your goods closer to the consumer with the product details. This article shows how to resize product image in Magento 2. In this example, I am loading a product by id and then resizing its image. I will also be injecting the object of Catalog Helper Image class for image resize purpose. Below is a block class of my custom module (Prashant_Common). I have injected an…

Read More

Which steps need to follow For Standard Extension Development for Magento 2

magento-prashantblog-520x245

For a Magento 2 extension, you should be following the Magento EQP (Extension Quality Program) code standards. Magento provides a tool to validate the PSR-2 code standards and most of Magento’s added standards on top of that. Magento has provided the package validation tool, Which detects any kind of packaging errors to reduce the module rejections from the Marketplace. Steps which need to follow For Standard Extension Development for Magento 2 : 1) must have composer.json in root folder of extension(Eg. app/code/Vendor/Module/composer.json) 2) must have registration.php in root folder of…

Read More

Switch Entire Magento Store Over to HTTPS

magento-prashantblog-520x245

Since Google made the declaration that serving your’s site pages over a safe convention (HTTPS) will turn into a positioning element back in August 2014 , numerous brands have rolled out the important improvements to serve their whole site over HTTPS (instead of just pages that contain conceivably delicate information like checkout, login and account URL’s). Despite everything we don’t consider this basic as how it weighs up as a positioning element is still moderately minor however throughout the following couple of years, it is most likely reasonable to say…

Read More