I have a scenario in which I am adding multiple transaction for an order, I tried to use below code but records is adding in sales_payment_transaction but not in sales_order_payment as its updating the existing record, I need to add multiple rows in both the table with different transaction_id and […]
Magento
I need to create a product using a custom Rest API. (this is my first time working on API). So to check API whether it’s working or not I wrote the code below, API is working, now I need to give different parameters to create a simple product but I […]
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 = […]
I would like to customize the detail view of the catalog products. First of all, I want to output the product´s base image separately as a header image. What is the best way to achieve this? I am grateful for any advice!
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 […]