Get product stock information in Magento 2
If you want to get stock data from a product without creating a new extension here what you need to do:
Read moreIf you want to get stock data from a product without creating a new extension here what you need to do:
Read moreToday I faced a problem with a client where the fotorama stage height needed to be adjusted based on the image that was displaying. After some digging I came up with a the following script to solve the problem:
Read moreWondering how to add a custom jQuery script to your magento 2 phtml template files? You will above to include the javascript code inside a require function. Here is how: That is it! Simple 🙂
Read moreIf you need to add css rules specifically to your product pages then the best is to avoid adding those rules to all pages of your website. You can achieve this but creating (or editing) a catalog_product_view.xml file inside /app/design/frontend/THEME_VENDOR/THEME_NAME/Magento_Catalog/layout or /app/design/frontend/THEME_VENDOR/THEME_NAME/Magento_Theme/layout. Because of the way magento handle theme inheritance the xml code included on this file is added to[…]
Read more