I have upgraded Magento to 2.4.5 and deployed it to a new server. When i browse site JS file is not loading, but css file is loading correctly JS path is like this – https://test.com/jquery.js CSS path is like this – https://test.com/static/version1687893220/_cache/merged/c2f02f3311375ce676a7b8fc512d783c.min.css Also check with disable merge JS file but […]
Magento1
I have a Magento 2.4.3 multi-store and I am currently creating categories programmatically, with the following code: $category = $objectManager->create('MagentoCatalogModelCategory', ['data' => ["name" => $refCat['name'], "is_active" => $refCat['active'], "include_in_menu" => $refCat['menu'], "parent_id" => $parentID, "store_id" => $refCat['store_id']]]); $category->setCustomAttributes(["display_mode" => "PRODUCTS", "custom_use_parent_settings" => true, "is_anchor" => "1"]); $repository = $objectManager->get(MagentoCatalogApiCategoryRepositoryInterface::class); $repository->save($category); […]
When I am trying to compile, then I am getting Below error: Namespace not defined properly you can see proper command running here : www-data@robert-php-fpm:/var/www/html$ bin/magento setup:di:compile -v Compilation was started. Repositories code generation... 1/9 [===>------------------------] 11% < 1 sec 109.0 MiB In FileClassScanner.php line 201: [MagentoSetupModuleDiCodeReaderInvalidFileException] Namespace not defined […]
I have multiple active shopping cart rules on my website, including some older rules. The problem is that Magento validates these rules every time there is an update to the shopping cart or when a customer proceeds to checkout. The method setValidationFilter() calls getNoCouponCodeSelect() from the class vendor/magento/module-sales-rule/Model/ResourceModel/Rule/Collection.php, which is […]
Due to migration collision, I need to shift upward many product IDs. Here is why : If I use a delta migration from Magento 1 to Magento 2, new products in Magento 2, which have the same id than new products in Magento 1, are overwritten. Is it safe to […]
We want to create the following setup: Main Web Site (code: store) -> Store BE (code: store-be) -> Store View NL (code: nl) Main Web Site (code: store) -> Store BE (code: store-be) -> Store View EN (code: en) Main Web Site (code: store) -> Store NL (code: store-nl) -> […]
I have a product with a SKU that looks like this: “0/000.150.2010” So naturally, when I try to update said product: https://URL.com/index.php/rest/da/V1/products/0/000.150.2010 I get a “message”: “Request does not match any route.” error. Encoding the parameter, gives a HTML page with a 404 status. https://URL.com/index.php/rest/da/V1/products/0%2F000.150.2010 Now, I’ve looked at How […]
We are on magento community 2.4.0 and for the past couple of months, (occasional) transactions have resulted in 404 error after checkout. We don’t get any notification of an order. I looked on stack exchange and someone reported this with mageonto 2.3 but I wonder if the same issue could […]
i am new to magento..i am facing issue while learning configuration of system.xml..i want to depend a field of type=”dropdown” to field of type=”checkbox”..any help would be appreciated..here is my system.xml file..thanks in advance.. System.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> <system> <tab id="ktplmodule" translate="label" sortOrder="50"> <label>KTPL</label> </tab> <section id="section_extension" showInDefault="1"> […]