Magento Data patches have been highly used and most of the time I don’t see it as required, so I would like to know when it’s a good scenario to use it from your point of view. Bad usage Client manually creates and deletes CMS pages or CMS blocks and […]
Magento1
I got the shipping address from the customer IP and set it to Quote. And the total price includes the tax price. But I don’t know how to get the tax price. Please let me know.
Situation: Magento 2.4.2 p1 (but was also like this on earlier versions) We have Magento multistore. So example. I create a configurable product from our imprts (emagic manager(. I set ‘manage stock’ for default value of the configurable product to ‘no’ Now as ‘manage stock’ is a global setting I […]
I am trying to get data from database table, my code of index.php <?php namespace DemoHelloworldControllerPost; class Index extends MagentoFrameworkAppActionAction { protected $_postFactory; public function __construct( MagentoFrameworkAppActionContext $context, MagentoFrameworkViewResultPageFactory $pageFactory, PixelproHelloworldModelPostFactory $postFactory ) { $this->_pageFactory = $pageFactory; $this->_postFactory = $postFactory; return parent::__construct($context); } public function execute() { $post = $this->_postFactory->create(); […]
I want to write a render to add one of the column in the Gird. It needs to retrieve data from the vendor_module_slide_store. I wrote a function to get store_id from that table, by using the key (slide_id). I am appreciate for any help. $this->addColumn( 'store_id', [ 'header' => __('Store […]
I want to generate a csv file in var folder. I used these lines of code it’s not working. Can someone help me to figure it out public function execute() { $filepath = 'export/customerlist.csv'; $this->directory->create('export'); $stream = $this->directory->openFile($filepath, 'w+'); $stream->lock(); $header = ['Id', 'Name', 'Email']; $stream->writeCsv($header); $collection = $this->customerFactory->create()->getCollection(); foreach […]
After purchasing Eway Payments for Magento 2 extension, there are issue while installing the same. Can anyone help me out.
Price is automatically changed to 0.00 in product detail page for Magento 2.4.3-p1 after a full load of the page, I searched for hours and found a solution in this #ae304d43 patch, My question is what is the best way to apply this patch in my instance, already checked Quality […]
I’m trying to do an ajax api call on admin page, but it returns Decoding error: nUnable to unserialize value. Error: Syntax error… $('#button').on('click', function(){ $.ajax({ url: "<?php echo $block->getBaseUrl()."rest/V1/orders" ;?>", data: { "entity":{ "entity_id": Number(<?php echo $order_id; ?>), "status":"processing", "state":"processing" } }, type: 'POST', headers: { "Content-Type": "application/json", "Authorization": […]