magento2 update product stock in MSI programatically
I’m looking for a code which i can use to update msi product stock. with different source code and quantity. I want to update product stock having msi enabled.
I’m looking for a code which i can use to update msi product stock. with different source code and quantity. I want to update product stock having msi enabled.
I need to add a dropdown as the one in the image. The current dropdown, shown in the image, contains some of my attributes. However, I need to add an additional dropdown for other attributes which is identical to the… Read More »How can I create another Block for my attributes like the dropdown in the picture? (Product page)
I’ve been working on a module that adds Configurable Child Products to Cart at the Simple Product they are. This all works fine. The part of the module I’m working on now is to get the Child Product Image. If… Read More »Image Not Shown Unless Added & Deleted First
I have created a custom block and tried to insert it multiple times in the same page: <block class=”MyCompanyMyModuleBlockProducttabsCategoryProducts” name=”category.products.slider1″ template=”MyCompany_MyModule::producttabs/category-items-new.phtml”> <arguments> <argument name=”category_id” xsi:type=”string”>31</argument> <argument name=”block_title” xsi:type=”string”>Lorem ipsum</argument> <argument name=”block_text” xsi:type=”string”>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</argument> </arguments>… Read More »Arguments shared between multiple instances of same block
I’ve been strugling with this a lot, I have to redirect the users to Home when they login to the site. I’ve been following solutions given in other questions about the same, but nothing works, here are some links I’ve… Read More »Redirect to Home after login
I have created a payment method module in Magento 2.4.4 after a lot of trial and error and I finally have a small working version that works both in the adminhtml and the frontend. The problem I have is that… Read More »Why does my own payment method not get disabled?
Is there a way to change the state of all billing & shipping address fields from required to not required after selecting the payment method, for example, PayPal? I tried to find some info, and the closest is Toggle “required/not… Read More »How to set required field to not required after changing payment method
I have set up a Catalogue price rule to give 10% off as a percentage of original and have VAT set to 20%. Prices are set as Excluding Tax. I can not find anywhere that explains the calculation Magento 2… Read More »Magento 2 Catalogue Price Rule Calculations & Rounding Issues
I have a custom column within the Product Grid that states whether a product is In Stock or Out of Stock, based on whether or not the Salably Quantity is greater than zero. While I have managed to get sorting… Read More »Filter Product Grid Column Based on SQL calculation
I created a custom field for customer: <?php declare(strict_types=1); namespace VendorMyModuleSetupPatchData; use MagentoCustomerModelCustomer; use MagentoCustomerSetupCustomerSetup; use MagentoCustomerSetupCustomerSetupFactory; use MagentoEavModelEntityAttributeSet; use MagentoEavModelEntityAttributeSetFactory; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoFrameworkSetupPatchDataPatchInterface; use MagentoFrameworkSetupPatchPatchRevertableInterface; class AddCustomAttributeCustomerAttribute implements DataPatchInterface, PatchRevertableInterface { /** * @var ModuleDataSetupInterface */ private $moduleDataSetup;… Read More »Add field to Checkout