I have 2 poweautomate cloud flows for integrating magento to some other systems. The first one is working correctly and I am getting the items/produts based on the search criteria I am passing. Initially in a step I am getting the admin token In the next steps i am getting […]
Magento2
<?php declare(strict_types=1); namespace customScheduleContentNotifierPlugin; use MagentoCatalogStagingModelProductApplier; use customScheduleContentNotifierHelperEmail; use MagentoCatalogModelIndexerProductCategory; use MagentoCatalogModelResourceModelProduct; use MagentoCatalogModelResourceModelProductCollection; use MagentoCatalogStagingHelperReindexPool; use MagentoFrameworkIndexerCacheContext; use MagentoFrameworkIndexerIndexerRegistry; use MagentoStagingModelStagingApplierInterface; use MagentoStagingModelVersionManager; use MagentoStagingApiUpdateRepositoryInterface; use MagentoCatalogModelResourceModelProductCollectionFactory; class PluginProductApplier { protected $emailHelper; protected $_productCollectionFactory; /** * @var UpdateRepositoryInterface */ protected $updateRepository; /** * @var Collection */ protected $productCollectionResource; /** […]
When working with Full Page Cache and Varnish, the blocks are suppose to pass an array on the function afterGetOutput, by using the function $block->getIdentities(). These arrays are then merged into the X-Magento-Tags. We have noticed that a couple of blocks had null value on the $block->getIdentities(), and would create […]
Need possible use cases for a scenario in magento 2 when a customer places an order during checkout after entering place order stock from inventory gets reduced then customer moved to payment gateway for payment, but in case if a customer is not paying, the stock reduced remains the same […]
I work on extension name ” Order Details”. $customer = $this->order->loadByIncrementId()->getCustomerId()->getPayment(); $payment = $customer->getPayment(); $method = $payment->getMethodInstance(); $methodTitle = $method->getTitle(); return $methodTitle; How I can access the Cash on Delivery method and render on checkout/success/page.
I just wanted to disable pagebuilder from category description without using ui_component category_form.xml , is there any other way to do that like using plugin/event ?
We have a requirement to store values in Product Attributes in Key-Value pairs. I am still searching for the solution, need assistance reagrding the solution.
For the past 2 days, I haven’t had any sales because Magento checkout is not processing my orders. It’s giving me this error: “An error occurred on the server.” Error 400 While Receiving The Response From Payment Information. Image error: https://scontent.fgdl2-1.fna.fbcdn.net/v/t39.30808-6/350119154_730127159120672_7714966606860123206_n.jpg?_nc_cat=100&ccb=1-7&_nc_sid=5cd70e&_nc_eui2=AeGIQ7qut0H7gWEEgB9N7Mm3q_y6kDPom-6r_LqQM-ib7mb0NDVjXdmecKYS4jdqmjw&_nc_ohc=543G_33ZIqwAX-LcVCn&_nc_ht=scontent.fgdl2-1.fna&oh=00_AfCWOHKtzf-FAxRm1QRwj6qC2hSJ59mdvhfIOb9i7bxr1w&oe=6478A642 Has anyone experienced this issue before and knows how […]
I want to remove the products from the product collection that are set Non-Individually Visible. Here is my code: $validProductsCollection = $this->collectionFactory->create(); $validProductsCollection->addFieldToFilter(ValidProductsInterface::DEMO_ID, $feedId) ->setPageSize($itemsPerPage) ->setCurPage($currentPage) ->addFieldToSelect(ValidProductsInterface::VALID_PRODUCT_ID); $collectionSize = $validProductsCollection->getSize();