14219 is the ID of the parent product. 14217, 14218 are the child product ids but the collection only returns the parent product,I need to get from the Layer which products visibility is VISIBILITY_NOT_VISIBLE , can anyone help? Thanks class Layer extends MagentoCatalogModelLayer { public function getProductCollection() { $collection = […]
Magento
I was trying to setup a new Magento Cloud 2.4.3 project, and wanted to remove unnecessary module from the installation. I usually use yireo/magento2-replace-all package to clear out some of the module which I will not be using for the project, it usually works without any issues. But now with […]
I was reading this article where the author shows how to configure both varnish and redis for Magento 2. In the first portion, he configured Varnish. In the second section, he ends up using this configuration to setup redis: 'cache' => array ( 'frontend' => array ( 'default' => array […]
Is it possible to hide particular shipping method based on post code only in admin area. When I say admin area I mean Sales order page in the admin section. I have tried around plug-in <type name="MagentoShippingModelShipping"> <plugin disabled="false" name="Vendor_Extension_Model_Shipping" sortOrder="10" type="VendorExtensionPluginApplyShipping"/> aroundCollectCarrierRates But this isn’t helping me to get […]
In the below code, I am hiding all shipping methods based on postal code 2nd value is 0. In this case, all shipping methods are removing. but I want to remove only free shipping. Can you explain how I can do this? require(['mage/url', 'jquery','domReady!' ,'jquery/ui'],function(url , $) { $("[name='postcode']").live('change',function(){ postCode […]
I want to redirect to cart page after adding the product into cart, I know there is a provision in config but I have a custom product type and that config is not working for that product. That configuration setting is working for simple and other products but not for […]
i try to update re image urls directly on db. In many of them (1700+) is missing the “/” at the begining. i try with this sql file ALTER TABLE 'catalog_product_entity_media_gallery' MODIFY COLUMN 'value'; REPLACE INTO 'catalog_product_entity_media_gallery' ('value_id', 'attribute_id', 'value', 'media_type', 'disabled') VALUES (13584, 88, '/o/m/om-5e_1_2nd.png', 'image', 0); but i […]
Please tell if there is such an extension, so that we can crop the image of the product and add it to cart.
I’m trying to use redis as session storage on Magento 2.3.3. In my app/etc/env.php file I have: 'session' => [ 'save' => 'redis', 'redis' => [ 'host' => '127.0.0.1', 'port' => '6379', 'password' => '{password}', 'timeout' => '2.5', 'persistent_identifier' => '', 'database' => '2', 'compression_threshold' => '2048', 'compression_library' => 'gzip', […]