In my acount.phtml file we made some changes then override the file from this path to our custom module magneto_theme. /var/www/html/Szco_Supplies_netsuite/vendor/swissup/theme-frontend-argento-blank/Magento_Theme/templates/html/header/my-account.phtml
Category: Magento
How to override a block from a vendor to a custom module?
To override a block from a vendor module in Magento, you can follow these general steps: Create a custom module: If you haven’t already, create a custom module in your Magento installation. This module will contain the overridden block and any additional customization you want to apply. Identify the block to override: Determine the block… Continue reading How to override a block from a vendor to a custom module?
Get Customer Level price with quote(cart) observer
Here we may achieve the quote items and quote table data from an event triggered during the product is added to the cart
Overriding an Existing Observer and Event
Sometimes we may not be able to call an event in an external module. So this happens due to some event or observer may be functioning for default function.in order to override these observers or events we need to create an external module with a di.xml file here we can give preference to the observer… Continue reading Overriding an Existing Observer and Event
How to add the backorder field with data in salesorder page .
How to get current customer group id in magento2
Magento\Customer\Model\Session $customerSession using this class you will get the current customer group id NOTE: You only get customer id if the customer logged in
How to increase the quality of product photos(Magento 2)
The following procedure can improve the quality of a product’s image. Log in to your Magento 2 admin panel. Go to “Stores” in the main menu and click on “Configuration”. Under the “Advanced” section in the left sidebar, click on “System”. Click on “Images Upload Configuration”. Look for the “Quality” option and set it to… Continue reading How to increase the quality of product photos(Magento 2)
intval() function .
The intval() function is used to convert a value to an integer. By using intval(), any decimal or fractional part of the quantity value will be truncated, and only the integer part will be displayed. This can be useful if you want to ensure that the quantity is displayed as a whole number without any… Continue reading intval() function .
imagecolorsforindex(): Argument #2 ($color) is out of range when running bin/magento catalog:images:resize
I basically changed the default image adapter configuration of “Image Processing Settings” inĀ Configuration>Advanced>Developer>Image Processing SettingsĀ from PHP GD2 to ImageMagick, and ran catalog:images:resize again after flushing image cache