Questions tagged [magento2.4.1]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
1k views

How to include custom block to phtml file

I have created a block for getting wishlist items, after that i need this list to my custom phtml file, my block : app\code\vendor\path\Block\WishlistProducts.php <?php namespace Vendor\Path\Block; ...
zus's user avatar
  • 155
0 votes
2 answers
413 views

How to get list of Wishlist product on popup in homepage?

I have added a wishlist icon on my header, I need to show my list of wishlist product if customer click the wishlist icon as a popup. Any reference thanks.
zus's user avatar
  • 155
2 votes
1 answer
4k views

Magento 2.4.1: One or more of your dotdigital cron tasks have errors: ddg_automation_customer_subscriber_guest_sync,

At the top of Magento admin page, below are the messages displayed. I'm not sure what these mean and how to fix them all. Please help me understand this. One or more of your dotdigital cron tasks have ...
CodeForGood's user avatar
0 votes
0 answers
446 views

change the wishlist item collection in "My Wish list" tab in My Account in Magento EE ver. 2.4.1

I am using Magento EE ver. 2.4.1 and i want to override the wishlist item collection in my account. But i am facing the below issue : PHP Fatal error: Uncaught Error: Call to a member function ...
Manashvi Birla's user avatar
0 votes
2 answers
218 views

Override a model not working Magento 2

I tried to override a model in Magento\Quote\Model\Cart\Data\CartItem but I cannot override it. here is my di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/...
Rosario Bagaskara's user avatar
1 vote
1 answer
2k views

Waiting for incoming connection with ide key 'xxxxx'

In phpstrom variable getting "Waiting for incoming connection with ide key 18836" while trying to run debug magento2 using xdebug. Xdebug is installed correctly in my Ubuntu system,checked ...
Shekhar Suman's user avatar
1 vote
0 answers
72 views

Magento 2 common css variables not applied for third party modules

I am using a custom theme, declared common variables under, app\design\frontend\Zero\my_theme\web\css\source\components 1) _variables.less Eg: @h1__font-size: 48px !important; 2) common.less Eg: h1 { ...
zus's user avatar
  • 155
1 vote
1 answer
1k views

Getting error while publish message to RabbitMQ

I am getting an error while publishing a message to RabbitMQ :The connection timed out after 3 sec while awaiting for incoming data. use Magento\Framework\MessageQueue\PublisherInterface; $this->...
Birjitsinh Zala's user avatar
5 votes
0 answers
394 views

Magento 2 : shipped items not appearing in email template

{{layout handle="sales_email_order_shipment_items" shipment_id=$shipment_id order_id=$order_id}} is used to render shipped items in email template but no items appear in email template. I ...
devhs's user avatar
  • 497
1 vote
1 answer
345 views

I want to add "Show More" link in Review Tab in product detail page in Magento 2. Only want to show 5 reviews at a time

Add "Show More" link in review on product detail page. Only want to show 5 reviews at a time.
Shubham Sahu's user avatar
0 votes
0 answers
44 views

API Call getting error on home page slick product slider

I am using api for free delivery available or not for the products, producty listing page my api helper class working, path-> my app\design\frontend\Zero\my_theme\Magento_Catalog\templates\list....
zus's user avatar
  • 155
0 votes
0 answers
137 views

Home page error - How to solve Element 'block', attribute 'destination': The attribute 'destination' is not allowed

My homepage getting the following error, 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block', attribute 'destination': The attribute 'destination' is not ...
zus's user avatar
  • 155
0 votes
0 answers
3k views

SSL Certificate error when trying to download the Cybersource Magento Plugin

I'm trying to install the Cybersource package for Magento. I'm new to Magento, I had a pretty hard time installing Magento itself, but I got there. Now, I'm stuck installing this cybersource module. I'...
Ani's user avatar
  • 1
0 votes
1 answer
595 views

Magento2 - Is it safe to delete entries for deleted order from inventory_reservation table?

I have delete test order data using Mageplaza Delete Order plugin. All of the test orders state was processing. So now I am facing issue with salabale qty because of order deletion. To fix this issue ...
user94674's user avatar
0 votes
1 answer
103 views

Magento 2 : How can I add my custom side bar below Summary side bar in Cart page?

In cart page I want to add custom side bar below Summary side bar. Please give me some suggestions. Thanks!
Shubham Sahu's user avatar
0 votes
2 answers
154 views

Customer logged in condition not working on controller

My controller, <?php /** * * Copyright © 2015 Zmagecommerce. All rights reserved. */ namespace Zero\my_module\Controller\Index; use Magento\Framework\Controller\Result\JsonFactory; class ...
zus's user avatar
  • 155
0 votes
1 answer
816 views

Magento 2 redirect back with message from controller, redirecting working fine but error message not showing

Messages do not appear after redirection. Tried many solutions but no luck. Here is the code I tried. I have created a fronted form with custom routing with URL params. public function execute(){ ...
Mukesh Khatri's user avatar
0 votes
0 answers
86 views

Magento 2.4.1: We can't find products matching this selection indexer issue

This error message keeps displaying across the category pages of our Magento 2.4.1 site. Indexer status is below. Not sure what is the cause of this recurrent issue.
CodeForGood's user avatar
1 vote
1 answer
845 views

How to add product to Wishlist without redirecting and without page refresh using ajax on Listing page

My controller: app\code\Vendor\Mymodule\Controller\Index\Wishlist.php <?php namespace Vendor\Mymodule\Controller\Index; class Wishlist extends \Magento\Framework\App\Action\Action { public ...
zus's user avatar
  • 155
0 votes
2 answers
192 views

How to find from which file $block->getContent() called?

I am using Magefan blog extension, app\code\Magefan\Blog\view\frontend\templates\post\view.phtml <div class="post-text-hld"> <?= /*@noEscape*/ $block->...
zus's user avatar
  • 155
0 votes
1 answer
209 views

M2 - How to move banner image using XML file

I am using Magefan blog extension, in the article page i want to move my banner image under breadcrumbs, Live demo : https://blog.demo.magefan.top/blog/post/fashion/our-favorite-blue-bags-for-fall-...
zus's user avatar
  • 155
0 votes
1 answer
728 views

Credit memo "Return to Stock" not working properly, Configurable Product

Here is my setup: Magento 2.4.1 Stores->Configuration->Sales->Payment Methods->Braintree (sandbox)->Payment Action = "Intent Sale" (same as "Authorize and Capture") ...
bluedarter's user avatar
0 votes
1 answer
46 views

Unable to create table with foreign key?

<table name="profile_products" resource="default" engine="innodb" comment="profile products"> <column xsi:type="smallint" ...
bagish's user avatar
  • 1
1 vote
2 answers
767 views

bin/magento always got killed

I can't run any bin/magento commands, always got killed. (setup:di:compile, cache:clean, cache:flush, indexer:reindex) I already changed memory_limit = -1 the php.ini, and tried to run the bin/...
user1979276's user avatar
0 votes
1 answer
36 views

Magento 2.4.1: Does reCaptch v2 work with Magento 2.4.1?

I added reCaptcha v2 Invisible to the new account creation page, but it doesn't show the reCaptcha icon at the right bottom corner. I wonder if I need to set up reCaptcha v3 Invisible for it work.
CodeForGood's user avatar
0 votes
1 answer
333 views

Ajax call not working on Magento_Wishlist

I have created a controller for products added wishlist or not, if available include class name, Controller: <?php namespace Vendor\Mymodule\Controller\Index; class Wishlist extends \Magento\...
zus's user avatar
  • 155
0 votes
1 answer
448 views

URL rewrites not being used

I am using Magento 2.4.1, PHP 7.4, nginx and varnish and a stock import module that also creates URL rewrites. This part of it is all working fine and the url_rewrite table in the database has the ...
Alex Smith's user avatar
0 votes
1 answer
587 views

How to Configure Elasticsearch with hostgator Hosting in Magento 2.4.1

I have installed magento 2.4.1 in my hostgator shared/Reseller hosting.All things are working fine but I am getting error Of Catalog/search Indexing required. But when I reindex from admin panel or ...
Syze Developer's user avatar
0 votes
1 answer
161 views

Magento 2.4.1: Image in the Magento admin category editor doesn't appear in the site's category page

Recently upgraded to Magento 2.4.1. The image in the Magento admin category editor doesn't appear in the site's category page. Also, some text that appears in the sites category description doesn't ...
CodeForGood's user avatar
0 votes
1 answer
92 views

Magento 2.4 Commerce cloud - After push the code from dev to live server less not compiled to css file

I have created a custom theme, for the listing page i have created custom less file, app\design\frontend\Zero\my_theme\Magento_Catalog\web\css\source\ _custom_listing_page.less On the Website listing ...
zus's user avatar
  • 155
0 votes
1 answer
1k views

GraphQL Error in Magento 2.4.1: Cannot query field "uid" on type "ConfigurableProductOptionsValues"

I'm having trouble getting the uid for my Configurable product options via GraphQL. Testing with this simplified query: { products(filter: { url_key: { eq: "test-product" } }) { ...
Ben C's user avatar
  • 101
1 vote
1 answer
1k views

How to change Wishlist button color once product added to Wishlist using controller

How to change the wishlist button color once the products added to the wishlist.I am getting an error while using a controller. Ref: 1)https://magento.stackexchange.com/a/256570/57334 2)https://...
zus's user avatar
  • 155
0 votes
1 answer
1k views

M2 - How to change Wishlist icon color after product added to Wishlist

My code: app\design\frontend\Zero\my_theme\Magento_Wishlist\templates\catalog\product\view\addto\wishlist.phtml <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for ...
zus's user avatar
  • 155
6 votes
2 answers
7k views

Magento 2 Media Gallery doesn't show any images in 2.4.1

I installed Magento 2.4.1. All is working fine but the newer feature that Media Gallery does not show any images. Is there any other configuration requires for seeing images? I disabled the old media ...
Jantar Mantar's user avatar
0 votes
1 answer
58 views

Third party extension issue with custom theme

I have created a custom theme which i inherit from the blank theme, if i applied third party extension its not applied, i am tried with couple of extensions same issue, what are all the necessary ...
zus's user avatar
  • 155
3 votes
2 answers
1k views

There was an error loading payments.Please refresh or try again later. PWA Venia Theme Magento2.4 issue coming on

I have installed PWA Venia Theme with magento2.4.1 EE but on checkout, no payment methods are loading. Error Getting: There was an error loading payments. Please refresh or try again later. Attached ...
vivek mehta's user avatar
0 votes
1 answer
311 views

Invalid parameter given. A valid $fileId[tmp_name] is expected. magento 2.4.1

While uploading a image getting error Invalid parameter given. A valid $fileId[tmp_name] is expected.
Anjani Choubey's user avatar
0 votes
2 answers
910 views

Magento 2.4.1. Grunt exec error

I have tried this on a clean install of magento 2.4.1 I then went to a magento 2.3.6 ran grunt exec and grunt less both worked After upgrading the 2.3.6 to 2.4.1 the grunt exec then failed with the ...
Phes's user avatar
  • 86
0 votes
3 answers
95 views

Magento 2.4.1 installation composer or Archive

I have to install Magento 2.4.1 for the Live website. There are many options are available for Magento 2.4.1 installation. Composer Git Archive Can someone tell me which method should I prefer and ...
m2dev's user avatar
  • 63
0 votes
1 answer
372 views

Magento 2 Commerce Edition - Category Image upload error : Attention File validation failed

I am getting the following error when i try to add image for category, How to solve this issue, i am using commerce edition ver 2.4.1
zus's user avatar
  • 155
0 votes
1 answer
319 views

Setup Magento 2.4.1 project on Github

I have created the Magento 2.4.1 project in my local system. Now I have to set up this project on Github. I have created an account on Github. Can someone tell me the steps to set up this on Github? ...
m2dev's user avatar
  • 63
0 votes
0 answers
231 views

Assign Products to Specific Store Programmatically : Magento2

I am trying to assign different products of the main store to other stores programmatically. Is there any way to get it done?
VishalParkash's user avatar
4 votes
1 answer
314 views

Issues with the `sales_order_item_cancel` event in Magento 2.4.1

I have made an API which cancel and order. This is part of the code: // \Magento\Sales\Api\OrderManagementInterface $this->orderManagement->cancel($order->getId()); The above code will ...
Attila Naghi's user avatar
  • 3,903
2 votes
1 answer
692 views

Magento 2.4.1: Class Magento\PageCache\Observer\SwitchPageCacheOnMaintenance does not exist

While running php bin/magento maintenance:enable after upgrading Magento to 2.4.1, I find the error message Class Magento\PageCache\Observer\SwitchPageCacheOnMaintenance does not exist How to fix this?...
CodeForGood's user avatar
0 votes
1 answer
106 views

Magento 2.4.1: templatehints=magento doesn't seem to work on the payment method page

templatehints=magento displays the templates for other pages on the storefront than the payment method page. When entered the parameter on this page, it redirects to 404 page. Any solution to this? ...
CodeForGood's user avatar
1 vote
1 answer
578 views

How can you map a virtual column in magento 2.4.1?

I have just upgraded to Magento 2.4.1 that REQUIRES you to use Elasticsearch as the search engine instead of MySql. In the previous setup (Magento 2.3.2) I had a custom sort by a discount in the ...
Mircea Andrei's user avatar
1 vote
1 answer
61 views

Is there any simple way to install Magento 2.4.1?

Whenever I am running this command to install Magento 2.4.1 php bin/magento setup:install --base-url="http://192.168.1.128/magento" --db-host="localhost" --db-name=&...
Abhay Sharma's user avatar
0 votes
3 answers
3k views

Magento 2.4.1 disable Elasticsearch

I want to use Magento 2.4.1 in a shared server, the problem is that the shared server is not support Elasticsearch. Is there any way to can remove the Elasticsearch or to disable the entire search ...
Robert's user avatar
  • 2,166
1 vote
0 answers
346 views

Display custom options on category page and allow add to cart

I want to display product's custom option on listing page and want to allow customer to add to cart from the category listing page. I have added Qty field and following code to display the custom ...
Jackson Wyss's user avatar
1 vote
0 answers
1k views

Default sorting options Sort by 'rating' not working in Magento 2.4.1 in ElasticSearch 7.x

I have installed Magento 2.4.1 Open source edition with Elastic Search 7.x version. Magento admin -> Stores -> Attributes -> Product Find default 'rating' attribute and set 'Use in filter ...
sandip's user avatar
  • 3,944