Questions tagged [magento2.4.1]
The magento2.4.1 tag has no usage guidance.
271
questions
0
votes
2
answers
287
views
Load Products by SKU Using Dependency Injection
I am building a custom widget that I want to display specific products based on the product SKU. I have tried a few different code examples to get products using the dependency injection method, but ...
0
votes
2
answers
417
views
Unable to Print Log
Hi i am trying to print log here but its not working
file path is :- Vendor\Module\Model\Plugin\Shipping\Rate\Result\GetAllRates.php
class GetAllRates
{
public function afterGetAllRates($...
0
votes
1
answer
46
views
magentodockermagento241_redis_1 Cannot start service redis
I have try to install PWASacndi them in my local server.
But when I run dc up -d --remove-orphans command.
Error is shown like below the screen short so can you please help me and please say me how to ...
0
votes
0
answers
55
views
After disabling MSI modules in magento2.4.1
My Magento store is throwing this error:
Error: Cannot instantiate interface Magento\InventorySalesApi\Api\IsProductSalableInterface
I am using Magento 2.4.1
0
votes
1
answer
917
views
Can we disable all salable quantity modules in mganeto2.4.1
We manage our stock in another system and update the quantity field as orders come in. This is causing issues as suddenly the salable quantities are lowering, and never reset.
Is there a way to reset ...
0
votes
1
answer
475
views
Magento 2 avoid customer direct login after click confirmation email
Now my customer directly login after click confirm the email, i want if customer click the
confirmation mail after need to login.
0
votes
1
answer
1k
views
Magento 2. Can we display custom attributes on product page after SKU?
I created custom product attribute - Manufactures SKU.
Want to display in product page after SKU.
1
vote
0
answers
226
views
Magento 2 - How to get newsletter subscribers email id in transactional email templates without @domain.com
I am using the following script to add in my email template,
Hi {{var subscriber.getSubscriberEmail()}}
Eg: Hi [email protected]
I want to name only, how to remove @domain.com
I need: Hi abc123
2
votes
2
answers
2k
views
Magento 2.4.1 PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 176128 bytes)
This error(Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) in vendor/magento/framework/Serialize/Serializer/Json.php on line 37) is populated when we access the ...
0
votes
1
answer
45
views
Additional Data is not being imported into produces (full imports and focus additional data imports)
FIRSTLY I should note that all product data is importing correctly except the additional_attributes column.
I've been struggling for the past few hours with getting additional data imported into my ...
0
votes
1
answer
118
views
Exception not getting Caught in childHtml
I have a try catch block where inside of try I navigate to different set of childHtml based on a if-else in the parent .phtml file and if there is any error, I need to catch them. Problem is, the ...
0
votes
1
answer
756
views
After Upgrade to magento2.4.2-p1 getting admin login error, redirecting to denied controller
I have upgraded to Magento2.4.2-p1, and I am not able to log in to admin. It is redirecting to the denied controller.
Check screenshot
0
votes
1
answer
12
views
Magento 2 link of store->configurations->customer tab inside adminhtml phtml template file
I have an adminhtml phtml file. I want to add a link of page inside store->configurations->customer tab. I have "Add Secret Key to URLs" enabled. I have added this code to my phtml ...
0
votes
0
answers
44
views
Magento 2 - How to add facebook recent posts into my custom phtml page
I want to show recent Facebook posts into my custom phtml file, how to include them on Magento website?
0
votes
0
answers
49
views
How to Make Product Weight Attribute searchable in magento2.4.2?
Hello I am using magento2.4.2 in that when i try to enable Product Weight Attribute the search filed is stop to work and i got below error in exception, i want Product weight attribute searchable.
1
vote
1
answer
858
views
Getting Conclusion: don't install symfony/console v4.4 while upgrade Magento 2.4.1 from Magento 2.3.3
I am trying to upgrade my Magento 2.3.3 to Magento 2.4.1
running the below commands.
1.composer require magento/composer-root-update-plugin=~1.0 --no-update
2.composer update
3.composer require ...
0
votes
1
answer
317
views
_initSelect override with Plugin in Magento2.4.1
Need a help in this issue. I am trying to remove a MySQL condition from _initSelect from this Collection "Magento\SalesRule\Model\ResourceModel\Rule\Collection". This Collection has the ...
0
votes
2
answers
417
views
Magento 2 cron reindex causes Page Cache to be invalidated
I am running the following to reindex my products and categories on a schedule
/opt/plesk/php/7.4/bin/php -c /opt/plesk/php/7.4/etc/php.ini /var/www/vhosts/mydomain.co.uk/httpdocs/bin/magento indexer:...
0
votes
0
answers
317
views
Magento 2 - How to solve report.INFO: Broken reference error
How to solve the following error,
[2021-06-17 03:28:43] report.INFO: Broken reference: the 'catalog.compare.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn'...
0
votes
1
answer
292
views
How to customize update Mini-cart individual product price total when qty increased - KnockoutJS
I want to increase product price when to increase qty in Minicart, but here order total increased but price not updated.
1
vote
0
answers
1k
views
Magento 2.4.1 - "No such entity with customerid = "
I have an error on Magento 2.4.1 during the checkout process.
Basically, I try to place an order as a guest, having Store > Checkout > Checkout Options > Allow Guest Checkout = Yes, but I get ...
0
votes
0
answers
207
views
Magento 2 - How to update Google Business Reviews Authorization Bearer Token?
I am using Google Business Review API, every time i manually copy and paste the token key,
What is the best way to achieve this?
1
vote
1
answer
383
views
Magento 2 form key changes on going from front-end to back-end
I have a button on front-end category pages for editing these pages. On click it redirects to dashboard rather than category edit form in admin side.
$objectManager = \Magento\Framework\App\...
0
votes
1
answer
457
views
Magento 2.4.1: Zoom_in and Zoom_out button is not working inside product popup image on product details page
I am facing issue with image zoom_in and zoom_out functionality inside product image popup on product details page, I am also including screenshot for better under standing
Please help and how can I ...
0
votes
1
answer
2k
views
Magento2.4.1 __construct() must implement interface Magento\Store\Model\StoreManagerInterface, string given
I am using magento2.4.1 on php 7.3 I am facing this error right now.
Type Error occurred when creating object:
Vendor\Module\Model\ResourceModel\PushNotification\Grid\Collection\Interceptor, ...
0
votes
1
answer
254
views
How to override list.phtml for searcing in custom module?
I want to override the product div in list.phtml for both search view and category view i have replaced list.phtml by this way
catalog_category_view.xml
<?xml version="1.0"?>
<...
0
votes
1
answer
40
views
Where is configurable product variation suffix created?
Configurable product creates variation name suffix (color-size). Where can i remove this autogeneration?
0
votes
0
answers
30
views
Getting issue while importing product data in Magento 2.4.1
We are looking for solution in Magento 2.4.1 which can resolve our issue in data import
In our case the category name are like
Available Brands Migrated/Kitchen, Storage & Furniture/Cookware/...
0
votes
1
answer
1k
views
Magento2: How to remove login popup on minicart proceed to checkout button?
I am using magento2.4.1.
I want to remove login popup from proceed to checkout button on minicart and want to add login URL, So if guest user click on proceed to checkout from minicart it redirect ...
0
votes
1
answer
1k
views
How to override Magento_CatalogWidget::product/widget/content/grid.phtml widget template in custom Module?
I want to override grid.phtml in custome module without using preference.I have tried this link but it does not work for me.
widget.xml
<?xml version="1.0" encoding="UTF-8"?&...
0
votes
3
answers
165
views
Magento 2.4.1 Showing an Error No alive node found in you cluster while running upgrade Command
When I try to run upgrade and reindex Command on terminal it's showing an error No alive node found in you cluster, I am not able to set up elasticsearch Configuration on backend showing an same error....
0
votes
2
answers
237
views
Elasticsearch is not working "No Alive Nodes in Cluster"
Elasticsearch is not working "No Alive Nodes in Cluster"
Magento 2.4.1
Elasticsearch : 7.12.0
Elasticsearch : https://cloud.elastic.co/
create deployments in Elasticsearch
Using server : ...
0
votes
2
answers
257
views
Problem when download dompdf in magento 2.4.1
Hi am trying to install dompdf in Magento 2.4.1 using composer v1 but no success
0
votes
2
answers
982
views
Sort products by In stock in magento 2.4
Can we sort products In stock only.
see the below screenshot.
0
votes
2
answers
1k
views
Magento 2.4.1 Layered navigation with custom product collection
I want to override category product collection on the category product page in front-end. I want to show collection according to attribute set. After customize collection layered navigation product ...
0
votes
1
answer
605
views
Magento 2 Add New Customer - The customer email is missing. Enter and try again
I am attempting to Add New Customer via the admin panel but there is no email address field nor any address details (See screenshot attached).
Does anyone have any ideas?
Thanks,
Rob
0
votes
1
answer
241
views
Integration ID is not specified or invalid when authorising
On a Magento v2.4.1 site, when trying to authorise an existing integration record, I'm receiving the error "Integration ID is not specified or is invalid".
I verified that the record does ...
4
votes
5
answers
4k
views
Magento 2.4.1-p1 CE?: "main.ERROR: Can not resolve reCAPTCHA parameter..."
In /var/log/exception.log, I've been getting the following ERROR for over a week and can't figure out how to fix it:
main.ERROR: Can not resolve reCAPTCHA parameter. {"exception":"[...
0
votes
1
answer
390
views
curl_exec issue in Magento 2.4.1 and PHP 7.4.x
I have following code in the Magento site for getting external site data in PHP file, this worked fine in Magento CE 2.3.6 site but getting HTTP error code 400(Bad Request) after upgrading Magento to ...
1
vote
1
answer
775
views
Frontend Grid Filters not Working in magento 2.4.2
I am getting this after a click on the Apply Filters Button in the frontend grid.
Uncaught TypeError: $(...).notification is not a function
at UiClass.apply (filters.js:203)
at HTMLButtonElement. (...
1
vote
2
answers
518
views
How to remove main page title "Create New Customer Account" from registration page?
I am needing to remove the main page title "Create New Customer Account" from the registration page.
I see everywhere that I need to add the line below somewhere but where?
<...
1
vote
1
answer
4k
views
Warning: Illegal offset type in isset or empty Magento 2.4
I'm creating basic Module call CustomApplication also I've create a table call vendor_application. When I try to submit my form I get this error Warning.
Illegal offset type in isset or empty in
C:\...
1
vote
1
answer
220
views
How to get third party module block function to custom module block
Third party module Block:
Path: app\code\Amasty\Storelocator\Block\View\Attributes.php
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) 2021 Amasty (https://www.amasty.com)
* @package ...
0
votes
1
answer
592
views
How to call one block function to another block in same module
First Block:
app\code\Zero\Storelocator\Block\view\Attributes.php
function name : getLocationAttributes()
Second Block:
app\code\Zero\Storelocator\Block\Customerreview.php
How to get the first ...
0
votes
1
answer
53
views
How to pass the value from Module A phtml file to Module B php file
I want to share one field from Module A to Module B,
I am trying, (Module B)
$storeid = 'https://mybusiness.googleapis.com/v4/accounts/123456789/locations?filter=storeCode="<?php
...
1
vote
1
answer
155
views
The product's required option(s) weren't entered. Make sure the options are entered and try again
I am getting the standard error when the product requires options to be selected before adding to the quote/cart. However, it seems the error is displaying multiple times to match the number of ...
1
vote
1
answer
927
views
Magento 2.4: How to create Observer for "after save" event in custom module
I am using the custom module, in the backend, there are two fields, Field 1 manually entered Field 2 get the values based on Field 1. Here I want to get the Field 1 value in Observer after click save, ...
0
votes
1
answer
773
views
How to alter the customer checkout/login popup or process in Magento 2.4.1?
I am needing to alter the way the checkout process works on a Magento 2 site because the site offers quotes only and therefore I do not want any mention of the term "Checkout" in the ...
0
votes
1
answer
27
views
Googe business review api header authorization expired frequently
I am getting reviews from google business, i am using header Authorization Bearer, its frequently expired, again and again i am updating my Bearer token, how to handle this situation.
May i know the ...
2
votes
3
answers
1k
views
How to get value from admin configuration for my custom module
I have created a custom module, and added values directly in my code like hardcode, how to get those values from the admin configuration and passed to my code.
Block:
<?php
namespace Zero\...