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 […]
Magento
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: […]
I have a Pearl WeltPixel theme for my Magento site and I would like to remove the number of products next to the category name in the sidebar. But even putting “no” in display the number of products in layered navigation and then refresh the cache, the numbers are still […]
I am trying to show or hide a block based on a cookie. The cookie is set on a form submission and whether the user sees the block depends on if they have the cookie set. I have it working but when Full Page Cache is enabled it ignores the […]
How can an attribute added to Backlit Mirrors attribute set be deleted? None of the answers here in the stackexchange does help.
I have upgraded from Magento 2.3.6-p1 to Magento 2.4.0 all went well regarding composer update bin/magento s:up rm -rf var/cache/* var/page_cache/* generated/code/* bin/magento s:d:c bin/magento s:s:d -f when trying to access the site it shows the below error both on the frontend and admin panel. Fatal error: Declaration of LaminasServiceManagerServiceLocatorInterface::get($name) […]
We use a combo of color swatches generated by the Magento color picker and image swatches that we upload ourselves. And I am having an impossible time getting our uploaded swatches to behave like the color picker swatches. I have thought I had found the solution in the CSS a […]
i try to add my custom button to the form, not to the header of form, but after some fields inside fieldset, i found some example here https://devdocs.magento.com/guides/v2.4/ui_comp_guide/components/ui-button.html like this <form> ... <fieldset> ... <button name="custom_button"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="buttonClasses" xsi:type="string">custom-button-class</item> <item name="actions" xsi:type="array"> <item name="0" […]