I want to enable/disable the COD payment method based on product attribute. I tried this: Disable Payment Method at Checkout in Magento 2 Based on Product Attribute But I am having an issue when I have 2 products in cart where, cod value of one product is set to “yes” […]
Magento
<script type="text/javascript"> require(['jquery'], function($) { $(document).ready(function() { $("select").on('change', function() { $(this).find("option:selected").each(function() { var geeks = $(this).attr("value"); if (geeks) { $(".GFG").not("." + geeks).hide(); $("." + geeks).show(); } else { $(".GFG").hide(); } }); }).change(); }); }); </script> <div> Show me ranges for: <select> <option value='select' selected>Please select</option> <option value="cars">Cars</option> <option value="bikes">Bikes</option> <option […]
I am not sure how do I write a unit test for the below controller? Any thoughts on this ? namespace GoodEnhancedProfileControllerAccount; use MagentoFrameworkAppActionHttpGetActionInterface as HttpGetActionInterface; use MagentoFrameworkAppActionContext; use MagentoFrameworkViewResultPageFactory; use GoodSSOViewModelSsoConfiguration; class Index extends MagentoCustomerControllerAbstractAccount implements HttpGetActionInterface { /** * @var PageFactory */ protected $resultPageFactory; /** * @var ssoConfiguration […]
I need to create a user registration form in magento 1.9, but on the magento checkout page, and register the user at the end of the purchase. But I don’t know the correct way to do this working in magento 1.9 checkout. Is it possible to do it using magento’s […]
I’m trying to remove a dash ('-') from an input field (Zip Code) at checkout, but can get it to work. I want to clean just the initial character if a user enters the dash at the beginning of the zip to remove it; so, from this -98001 to this […]
I’m using Adobe Commerce 2.4.4 with PWA Studio and I don’t have a valid SSL validation in my browser during the local development. For the documentation, it should be working fine. How could I debug and solve it?
Is there any magento plugin that allows in the section of “password change” to restict the field “new password” not to accept values as in “current password”?
question of interest. We are using the PUT command for updating our products, but the data in custom attributes are not cleared when not sending in the body: rest/store_view/V1/products/sku Is that expected behavior from Magento? We expect that a POST or PATCH is updating only the selected attributes and that […]
i need urgent help, i am getting curl request error when i go to Stores->configuration in magento admin panel. I am using magenot 2.4 Please can anyone advice what i can do to resolve this? https://prnt.sc/_9Vi_ayLw3jC