I need to add configurable products with lots of configurations like 2000 and even more. I want to do this through Admin Panel but Magento virtually dies when I click Save. Then I need to reboot the whole server in order to revive Magento. Is there any solution for that? […]
Magento1
this is my controller <?php namespace PrevajOrderswatchesControllerIndex; class Index extends MagentoFrameworkAppActionAction { protected $_pageFactory; /** * Undocumented function * * @param MagentoFrameworkAppActionContext $context * @param MagentoFrameworkViewResultPageFactory $pageFactory * @return void */ public function __contruct( MagentoFrameworkAppActionContext $context, MagentoFrameworkViewResultPageFactory $pageFactory ){ $this->_pageFactory = $pageFactory; return parent::__construct($context); } public function execute(){ return $this->_pageFactory->create(); […]
I want to redirect to my external payment method after place order is Saved, I create an observer for event sales_order_place_after. Inside execute I put this code $this->responseFactory->create()->setRedirect($this->url->getUrl(//ExternalURL like http://localhost))->sendResponse(); but I get an error cors and I don’t know how to fix or an alternative to redirect with dynamic […]
I am building a Magento 2 module that makes changes to stock information. Bearing in mind stock management APIs are different in Magento depending on if MSI is being used or not, what is the best practice to write different functionality for each scenario? Is it as simple as detecting […]
I have a function from a 3rd party plugin that uploads data using a CSV. The beginning of the function in the resource model that does the work looks like this public function uploadAndImport(MagentoFrameworkDataObject $object) { try { ... I want to call this function using a cron job (which […]
I installed Magento 2.4.1 and have an account on DHL I insert all required information and enable the module default but not working on my site (the DHL shipping method not display when checkout) Can help me with that, please?
I rename the “addtocart” button text to “item in cart” when product is in cart. but if i remove item from minicart at that time i want to again set button text as “addtocart”.
I want to disable the Magento Banner module but the module is depend on the below module i try to disale all the module one by one using command line but when i disable the module sales rule staging command and then run the setup upgrade command then i face […]
I have a Magento2 store with multiple logistics staff members working on the same Orders list and Verifying, Cancelling, or Processing orders by changing their status I want to find which user account performed the order status change, e.g. in the screenshot below; add the username or email address of […]