Magento
This my code for the controller. <?php declare(strict_types=1); namespace VendorModuleControllerIndex; use MagentoFrameworkAppActionHttpPostActionInterface; use MagentoFrameworkAppResponseHttp; use MagentoFrameworkAppRequestHttp as HttpRequest; use MagentoFrameworkControllerResultInterface; use MagentoFrameworkExceptionLocalizedException; use MagentoFrameworkControllerResultJsonFactory; use MagentoFrameworkViewResultPageFactory; use MagentoFrameworkHTTPPhpEnvironmentRemoteAddress; use VendorModuleModelMyModelFactory; use MagentoFrameworkMessageManagerInterface; use MagentoFrameworkStdlibDateTimeTimezoneInterface; use PsrLogLoggerInterface; /** * This class allows to save the request in database * Class Index […]
I’m creating a module to change the file upload template (file.phtml) on the product page with a custom option like file. In catalog_product_view.xml I moved as follows: <move element = "product.info.options" destination = "product.info.media" after = "skip_gallery_after.target" /> and it’s ok. I tried to add css and js in the […]
Check my Magento 2 category pages, I get the error below “We can’t find products matching the selection.” So I ran the command below php bin/magento indexer:reindex catalogsearch_fulltext But I got the error below Catalog Search index process unknown error: {“error”:{“root_cause”:[{“type”:”illegal_argument_exception”,”reason”:”request [/magento2_product_1_v2/document/_mapping] contains unrecognized parameter: [include_type_name]”}],”type”:”illegal_argument_exception”,”reason”:”request [/magento2_product_1_v2/document/_mapping] contains unrecognized parameter: […]
After upgrade Magento 2 (2.2.8 to 2.3.5) i am getting some errors and bugs, one of those is on checkout payment page, the region name and city name is empty for guest users, for example: URL /checkout/ and the result: URL /checkout/#payment for register users with the same values: The […]
I recently started noticing that Magento 2 Store Configuration URL to not work. It just leads me to 3rd party module configuration page, not to the store configuration. Please help
I am working on my Magento 2 and when i run the setup:di:compile commant i am running into the following message ( see screenshot ) I have opened this directory to open the file and check line 20 for myself. This is the part of the line the error is […]
I want to set the payment method on behalf of the customer, with the admin access token. I don’t have the customer access token but I have the customerId I used this API call: carts/{cartId}/payment-information it throw an error: { “message”: “Request does not match any route.” }
How to load only a specific attribute instead of loading all attributes in magento 1.9? I’m using the code below, but it loads all the information and I just need the product ID. Mage::getModel('catalog/product')->loadByAttribute('sku', $_customOptions['simple_sku']);