What would be the easiest solution to edit the design of a PDF invoice and send it to customers? As I understand, editing the design in Magento is a bit too complicated. I’m currently considering 2 options: using third-party modules; interating with Zoho Invoices (or similar service) where I can […]
Magento
I’m working on Magento 2 upgrade from 2.2.9 to 2.4.3 and I’m having an issue with an on-line payment. Here is the deal, after payment the following callback executes public function execute() { $getData = $this->_request->getParams(); $quoteId = $this->helper->getQuoteId($getData['quoteId']); $response = $this->helperConnect->getRequest($this->helperConnect->prepareRequest($getData)); if ($this->validator->validates($response)) { if ($this->paymentProcessor->approveOrder($quoteId, $response)){ $this->logger->addInfo('Callback action […]
I have approx 3200 products which needs to be migrated from one magento website to another. All products are having hundreds of attributes and brands which also needs to be migrated. Moreover both the websites have their own orders and customers which needs to be as it is. I tried […]
I am trying to disable the text field in the configuration field once admin has entered the data. I know it can be done via <frontend_model> but in that case the field gets disabled as soon as the page loads. frontend_model class: protected function _getElementHtml(AbstractElement $element): string { $element->setData('readonly', 1); […]
I need to run a command to compile my theme styles and commit them every time I need to push something new, these are the commands below. npm i gulp style gulp js When I try to run it via the Magento Cloud pipeline file, I got a permission issue […]
I have a problem with generate export csv fo custom entity type.Process execute but, file not saved, not logs in queue message status is 4 after press continue in admin panel. Could you please send me a example or how can I debug the problem ?
I’m facing a problem with the payment gateway after the order is paid by the gateway most of the time the order status will be complete and no invoice is created and not registered as paid. Is it possible after the order status is complete to create an invoice and […]
We use the following helper to get the current category: class Category extends MagentoFrameworkViewElementTemplate { protected $_registry; public function __construct( MagentoBackendBlockTemplateContext $context, MagentoFrameworkRegistry $registry, array $data = [] ) { $this->_registry = $registry; parent::__construct($context, $data); } public function _prepareLayout() { return parent::_prepareLayout(); } public function getCurrentCategory() { return $this->_registry->registry('current_category'); } […]
Getting following error trying to fetch data from react app. Magento 2.4.2 Reac JS v17 Apollo/Client 3 import { ApolloClient, InMemoryCache } from "@apollo/client"; export const client = new ApolloClient({ uri: "https://someurl/graphql", cache: new InMemoryCache(), }); I also tried to add “no-cors” as suggested but still its not working fetchOptions: […]