I am trying to figure a way to hide stock status/availability on product page when it is set to ‘don’t manage stock.’ And if it is set to ‘manage stock’, it should show stock status/availability on product page. Any clue ?
Magento
I have created an attribute for Orders through a module using the steps here http://www.thecoachsmb.com/how-to-add-order-attribute-in-magento-2/ But in the example given, the value is only added after the Order has been saved. I wanted to have the attribute shown during the Creation of Order in the Admin Page, and would like […]
I am trying to convert the error message displayed in error container to alert box. To do so, I have created a mixin for set-payment-information-extended.js on path Magento_Checkoutjsactionset-payment-information-extended.js the function i need to override from original payment-information-extended.js is return storage.post( serviceUrl, JSON.stringify(payload), true, 'application/json', headers ).fail( function (response) { errorProcessor.process(response, […]
I’m unable to extend the MagentoCustomerBlockAddressEdit edit block for customize existing country and State field in my account address field. How to customise the edit address block in Magento2
I have created a controller to get layered navigation but, I am facing an issue in price layered navigation price range always the same in every category 0-10000 10000-20000 etc not according to a product in the category below is my code try { $this->verifyRequest(); $environment = $this->emulate->startEnvironmentEmulation($this->storeId); $category = […]
Not able to edit my account customer address country field. I have override customer address edit block with my custom module. Magento/customer/block/address/edit Is there any way for customizion my account existing address field.
This question has been answered for Magento 1. (see: here). As I am migrating to Magento2 and need the same logic here is the issue: I am trying to figure a way to hide show stock status/availability on product page unless it is out of stock. I have all the […]
I’m developing a payment gateway module and would like to persist some of the payment provider’s return data to a custom table named xxx_yyy_transaction_log. The field order_id is a foreign key to the table sales_order in this table. I used the placeRequest method on ClientInterface class to persist the data. […]
After try to make a payment with PayPal and place the order, at the link paypal/express/placeOrder/ is showing me this issue: Uncaught TypeError: Argument 2 passed to MagentoInventorySalesPluginSalesOrderManagementAppendReservationsAfterOrderPlacementPlugin::afterPlace() must implement interface MagentoSalesApiDataOrderInterface, null given, called in … This is the code on line 119: public function afterPlace(OrderManagementInterface $subject, OrderInterface $order): […]