Questions tagged [magento2.4]

Denotes questions related to the features included in Magento version 2.4.x

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Whitelisting an external script in CSP

I am using a trusted, external script in one of my phtmls. <script src="//My/script.js"></script> Since I haven't whitelisted it yet I get the expected Error: [Report Only] ...
0
votes
1answer
23 views

Magento 2 with 300.000 sku became slow

I am building a magento 2.4.2 in a vps. Problem is that when I imported many sku became really slow. It is running on vps with plesk. I am using porto theme and before adding sku was fast. Now it ...
0
votes
1answer
13 views

How to create _extend_child.less for grand children theme

I am new to Magento 2. I am having difficulty in creating a child theme. However I have created the child theme now I am facing how to add source for child them. In my configuration, I have created ...
0
votes
1answer
27 views

Memory limit local and master value difference

I have a magento 2.4.2 and i have in plesk added memory_limit value at 6124M. Problem is that when i access my xxx.info.php i see difference in memory limit value. Local value is 756M and master value ...
0
votes
3answers
29 views

Magento 2.4 : How to override \Magento\Sales\Model\Reorder\Reorderp model?

Model\Reorder\Data\ReorderOutput must be compatible with Magento\Sales\Model\Reorder\Reorder::execute(string $orderNumber, string $storeId): Magento\Sales\Model\Reorder\Data\ReorderOutput I am ...
0
votes
1answer
28 views

How to Get Current Product ID in Magento 2?

Help me with these two type please: Using object manager Using block
0
votes
1answer
24 views

Magento2: Get Category list by using admin Authentication Token?

I want to get Category list by authorization bearer key by helper function. I have created custom api module and created helper Data.php and created function for getting generated bearer key. public ...
0
votes
0answers
46 views
+50

Magento 2.4 product stock status not change after salable quantity become zero

I tried below scenario in Magento 2.4.0 version Anyone please try below scenario in your Magento 2.4 version ? I created one configurable product and its two simple child with 100 qty. Before Order ...
0
votes
0answers
10 views

How to debug (e.g. print a value in console) in PWA Studio intercept.js (Magento 2.4)

I want to use console.log to print a variable value inside the local-intercept.js but it compile failed due to dot is not recognized. How can we check variable value for intercept? const ...
1
vote
0answers
14 views

When placing the order in magento2.4 then sequence_order_1 table generating the three increment id

When place the order then three increment id store in the sequence_order_1 table How can i store the one order id in the sequence_order_1 table when place the order Before placing order ...
0
votes
0answers
23 views

How to enable search from product name only in magento 2?

I am new on magento. Please help me to enable search of product according to product name only, on Magento 2.4. Because I am searching diaper and it is showing other products. Please check the below ...
-1
votes
1answer
36 views

Magento 2.4.2: How to change the shipping label?

With a custom shipping module, I am adding brokerage and duties to the shipping cost for an order from Canada. How can the shipping label be changed so that it reads "Shipping includes brokerage ...
0
votes
0answers
16 views

How to change the product list page to drop down refresh?

I have two themes, one for PC and one for mobile. I want to change the product list page of mobile to the dropdown refresh mode.(Slide up to the bottom automatically loads the next page) What should I ...
0
votes
0answers
10 views

How to remove Currency Rates settings in my store

I am working in a store with Magento 2.4.0 and as a test objective I have added the USD and EURO coins to my store, the problem now is that I cannot delete these coins even though I disable them in ...
0
votes
1answer
5 views

Product name on multiple lines

I am using Magento 2.4.2 and the latest porto theme and i would line the product name to be listed on 2 lines and then if still longer then show an ellipsis. I would like to do this anywhere where i ...
0
votes
1answer
13 views

URL Category rewrites not updated after the change

I'm using Magento 2.4.2, when changing the categories URL keys in the admin panel the URL rewrite sometimes isn't updated. Why would it happen and how can I update them?
0
votes
2answers
31 views

Magento 2.4.3 - Module and Theme Installation not working

I have installed Magento 2.4.3 via composer and trying to install custom frontend/admin theme and custom modules. These modules are already working in version 2.3 that have been copied and added at ...
0
votes
0answers
19 views

M2.4 Notice: Trying to access array offset on value of type int on Php7.4

I'm using m2.4 and php7.4 I getting this problem how can i fix it if i using php7.4, thank you! 1 exception(s): Exception #0 (Exception): Notice: Trying to access array offset on value of type int in ...
0
votes
2answers
20 views

How do you create or modify a CMS Block without Deprecated Methods?

How can I create or modify a CMS Block from a list according to that CMS Block if there is or not, in the same programming code without depracted methods? load() & save() -> is the deprecated ...
0
votes
0answers
11 views

Magneto 2.4 Recaptcha loads before the form

I am using magento 2.4.1 and having issue with the recaptcha module. The recaptcha load on the page before the form does. Can anyone suggest some solution to this. I tried loading the script first but ...
1
vote
1answer
34 views

Magento 2: Need to check function for auto stock status changed

I have configurable products and its child items in Magento 2.4 admin panel I have 3 child items for one configurable parent. If I set out of stock for 2 items and save then parent would be in in ...
1
vote
1answer
28 views

How to add Categery name url in category page

At present my category page URl is https://myshop.com/catalog/category/view/s/handbag/id/54/. I need to change Category page URL like https://myshop.com/handbag. Please let me know which file want to ...
0
votes
0answers
7 views

Getting Elasticsearch issue while adding new custom option in the sort PLP pages

I am facing one issue in my Magento 2.4.0 Commerce project. Please let me know if anyone has faced this before and you have any solution. It is coming when I try to add a non-product attribute or ...
0
votes
0answers
10 views

Unable to save qty in magento 2.4.2

I am creating product programmatically. Following is the code enter code here $product = $objectManager->create('Magento\Catalog\Model\Product'); try { $product->setName('Test Product'); $...
0
votes
0answers
23 views

Uncaught TypeError: Cannot read property 'websiteId' of undefined

I can see this error on any page. I'm not sure what caused this error Do you have any solution?I'm new to Magento,Could you tell me the specific solution thank you very much!!
0
votes
1answer
25 views

How to remove sitemap link in the footer? - Magento2

To remove sitemap link in the footer, I tried to add this on Magento_Theme/layout/default.xml <referenceBlock name="sitemap-link" remove="true"/> or <referenceBlock name=&...
0
votes
1answer
26 views

How to show a footer link for only specific language store view? - Magento2

How can I make a footer link show only a specific store language view? For example, I want to show this custom footer link only for English store view, not other language store view. So I can setup ...
0
votes
1answer
18 views

Magento 2.4 Error flushing Varnish server. Host: “127.0.0.1”. PURGE response code: 405 message: Not Allowed after running upgrade command

I enabled varnish cache from admin(magento 2.4), then I ran this command bin/magento setup:config:set --http-cache-hosts=127.0.0.1 Now I can't run the upgrade script. I'm getting this error: Error ...
0
votes
0answers
16 views

Magento 2 REST API doesn't update salable quantity

I use rest api to create a simple product on my magento. All works correctly except quantity column that is correctly update on "Quantity" column but not on the salable quantity. Rest call: &...
1
vote
0answers
12 views

Magento 2.4 Issue with Product saleble qty

I have installed Magento 2.4 enterprise edition and enabled MSI with 5 warehouse and backorder. Placed one backorder with qty 1. When i see the product saleable qty in admin it shows -5, after the ...
0
votes
0answers
12 views

magento 2.4 how to programmatically reindex specific index without using reindexList()?

I have a cron class that needs to reindex some product ids. Normally, I would do something like this: $productIndexer = $this->indexerRegistry->get('my_custom_index'); $productIndexer->...
0
votes
1answer
9 views

Magento 2 QR Code image for 2 Factor Authentication broken on Magento 2 Admin Login

We have an issue with a new Magento 2.4.2 site after migrating from M1 and activating 2 Factor Authentication. The QR code will not load and just displays as a broken image.
0
votes
1answer
20 views

How to show only US country in checkout dropdown and admin orders side display all countries

How to show US country only in magento2 checkout frontend and admin orders side show the all countries How to restrict all countries except US country in magento2 checkout.
0
votes
0answers
8 views

How to run grunt exec theme name over Magento cloud

I am working with Magento cloud, but Magento commands run like docker-compose run --rm deploy magento-command cache:flush How to run grunt over docker compose run ?
0
votes
1answer
27 views

Magento 2.4.2: Setting and getting custom config data works fine, but the text field in the admin backend is empty

I am able to set and get config data in a field under General table with the test code. The Magento backend displays the field as the screenshot below shows. The issue is this field is blank, but ...
0
votes
1answer
22 views

Position text inside ahref element (in center of image)

I created a static block with the following issue: I'm trying to center text inside an ahref element, which looks like the following; <div class="small-24 medium-16 cell"> <...
0
votes
0answers
6 views

additionalOptions labels not updating on store view (language) switch

If you add an item to the shopping cart and then switch to another store view, the additionalOptions labels are not translated. They stay in the language from where the item was added to the cart. Is ...
0
votes
1answer
39 views

How to display the cart number on each page?

I am having an issue,How to display the cart number on each page? $helper = $this->helper('\Magento\Checkout\Helper\Cart'); echo $helper->getItemsCount(); or $helper = $this->helper('\...
0
votes
0answers
8 views

Redirect the Simple products to configurable products including simple products images

I need to redirect the simple products images on the configurable product . I redirect the simple product to configurable but not able to redirect the simple product images when first time simple ...
1
vote
1answer
26 views

How do I remove the black box border from my magento website?

Please help me, I can not seem to figure out a way to remove the black border box surrounding all my product images and containers. My website is tucsons.ng Here is a sample of what I really want gone ...
0
votes
2answers
35 views

Where to look to get Magento Quality Patches as .patch or .txt file?

I am having issue of cron job resulting in error due to process a large number of items. I've checked logs but it fails without any log in cron_schedule table. After searching for some time I found a ...
0
votes
1answer
14 views

Can't see (imported) configurable products in catalog or search

I may need help... If I manually create a configurable product I see it fine in the frontend. However when I import products from stock with my homemade script, they don't show up. On my backend all ...
1
vote
1answer
19 views

How to show Product Custom dropdown Attriute without filtering all attributes in vuestorefront?

I Have a brand Attribute in Magento 2.4.2 and and i am getting is value like 5 but i want to show its label like puma. this is showing in product details but i want to show below sku in vue-storefront ...
0
votes
1answer
38 views

Magento 2.4.2: How to get order sub total in my custom module?

With the code below, I am trying to get the order sub total. Please note I am querying the table that I created in the Magento Database. $subtotal = $request->getOrderSubtotal(); doesn't get the ...
0
votes
0answers
9 views

Magento 2 not requesting styles-m.css and styles-l.css

This question is already asked here but it didn't get any suitable answer and it's already 2 years old. I did 2 Magento installs, 1 for 2.4.2 and other for 2.4.1 and neither of them asks for styles-m....
0
votes
0answers
17 views

Wrong parameters for Elasticsearch | windows | Xampp

I am trying to install Magento 2.4.2 where I am getting follwing error Fatal error: Uncaught Error: Wrong parameters for Elasticsearch\Common\Exceptions\ServerErrorResponseException([string $...
2
votes
0answers
26 views

Catalog Search result Wrong Result Magento 2

I am facing issue in the search result. I have installed Magento 2.4.0 and using Elasticsearch 7.0. When I search for h397 it gives me 4 product count and if I search for h397-4 it gives me 1868 ...
0
votes
0answers
10 views

Magento 2 - How to upload image and some post data to REST API (POST)

I'm working with a Magento 2 project that need to upload image and post data using a POST endpoint How can I send image with post array data.If post request sample available then share. Thank you very ...
0
votes
0answers
22 views

Magento 2.4 shows 502 bad geteway error

I have installed magento 2.4.2 and installation is done but when tried to access through url it shows 502 bad gateway error
0
votes
0answers
32 views

Filtering product collection by custom attribute by overriding $layer->getProductCollection();

I created a module and a new block so that I can overwrite \Magento\Catalog\Block\Product\ListProduct. My catalog consists of configurable products, and I need to filter based on attributes assigned ...

1
2 3 4 5
16