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(); […]
Magento
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 […]
Has someone checked if a Magento 2.3/2.4 installation with ElasticSearch is vulnerable to the Log4j exploit CVE-2021-44228? I’ve checked for the relevant .jar files in the ElasticSearch Apache CVE-2021-44228 page and found. /usr/share/elasticsearch/lib/log4j-core-2.11.1.jar /usr/share/elasticsearch/lib/log4j-api-2.11.1.jar I checked the apache logfiles for malicious code and found multiple requests. [11/Dec/2021:01:13:20 +0100] “GET / […]
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": […]
Magento 2.4.2-p1 Smartwave Porto theme Amasty One Step Checkout and other Amasty extensions PayPal Payments Pro set up in the Admin panel We use PayPal to process payments on our website (via the PayPal Payments Pro option in the Magento Admin panel). We have been getting a lot of declines. […]
Please see this code first public function setRefreshToken($token, $store = null) { $scope = 'default'; $scopeId = 0; if ($store !== null) { $scope = 'stores'; $scopeId = $store->getId(); } Mage::getConfig()->saveConfig('clougistic_twinfield/general/refresh_token', $token, $scope, $scopeId); Mage::getConfig()->cleanCache(); } This is magento 1 save config and clear cache code, here they save access […]