Questions tagged [magento2]
Magento 2 is an eCommerce R&D project facilitating the improvement of Magento Core products. Written in PHP-Zend Framework. Available under both open-source and commercial licenses.
4,906
questions
0
votes
0
answers
24
views
Product collection is not showing Products on frontend
here is my block file:
path:-Vendor\Module\Block
<?php
namespace Vendor\Module\Block;
class Product extends \Magento\Framework\View\Element\Template
{
protected $_productCollectionFactory ;
...
-1
votes
0
answers
14
views
How can I override or customize page builder components in magento?
I want to customize page builder components from magento with material UI. How can I do that ?
path:
/node_modules/@magento/pagebuilder/ContentTypes
0
votes
0
answers
10
views
Execute function after template render ,$nextTick
currently we are using Alpinejs in our custom magento 2 theme and I need to count the elements inside a tag once it has finish rendering, I heard about usin $nextTick but it has a strange behaviour.I ...
0
votes
0
answers
12
views
How to customize checkout page in magento2
How can we customize magento checkout page?
For example how can we add total,subtotal and grand total like this in checkout page.
I tried some methods found from internet and i am not able to make an ...
0
votes
0
answers
10
views
How to update Product Custom Attribute with media_image type via REST API in Magento 2.4
I'd like to know how I can update the product custom attribute defined as media_image type via REST API in Magento 2.4.4.
My custom attribute is defined like the following:
{
"...
0
votes
0
answers
8
views
Magento 2 - Is there any possibility to ignore the core_config cache?
With the help of the Magento\Framework\App\Config\Storage\WriterInterface class, I'm currently trying to save a value in core_config_data that I want to get back and update 15 minutes later (with the ...
0
votes
0
answers
4
views
Get Image for Wishlist product in Magento 2
To get wishlist items for customer I use the code
$wishlist = $this->wishlistFactory->create()->loadByCustomerId($customerId);
if (!$wishlist->getId()) {
throw new ...
0
votes
0
answers
19
views
404 errors on index.php after upgrading to 2.4.3 from 2.4.1 community edition
After upgrading from 2.4.1 to 2.4.3 community-edition, I am unable to properly access admin login or the website. All that is displayed is the website 404 error page which is correctly formatted with ...
0
votes
0
answers
5
views
Magento 2 problem redirect admin control panel
from one moment to another when I try to access the control panel, it redirects me to the following, apparently it is something about tickets or ticket system.
Has it happened to someone?
delete cache ...
0
votes
0
answers
14
views
How to save custom form data into database in magento 2.4
I have a custom for (ss below).
The problem I am having is that, When I add something and then click on save button, it redirects me to Catalog/Category when the form is located in CONTENT/Element/...
0
votes
0
answers
11
views
How to make primary button in custom grid redirect to custom form in magento 2.4?
I created a custom grid in magento 2 admin. Inside of that custom grid, I have a primary button with label, "Add New Question" (ss below)
. How do I redirect that button to a custom form? I ...
0
votes
0
answers
15
views
Request does not match any route in Magento 2 API
Need to help in Magento 2 API.
Every time when I call Login API show below response.
{“message”:“Request does not match any route.“,”trace”:null}
My Login xml file as per below.
<?xml version=&...
0
votes
1
answer
16
views
Apache subdomain vhost + subfolders of several Magento 2 installs
Basically I want to have several stores under one subdomain as sub-folders. Like this:
mysubdomain.website.com/magento2v1 - Magento 2 store #1
mysubdomain.website.com/magento2v2 - Magento 2 store #2
...
0
votes
0
answers
19
views
Magento 2 : Custom csp module unknown
I'm trying to override the csp module of magento but I get an error i don't understand : Unknown module
here is my module.xml registration.php the error i get
0
votes
0
answers
15
views
Magento 2 how to get mage-init data in my custom JS
I have this code in my.phtml:
<script type="text/x-magento-init">
{
"*": {
"installment": <?= $block->getConfig(); ?>
}
...
0
votes
0
answers
10
views
Magento2 - 502 Bad Gateway error - /admin
I'm using magento with docker and deploying to a kubernetes cluster.
When I install it it finishes successfully, but when I try to access the admin panel it returns the 502 Bad Gateway error.
I've ...
0
votes
0
answers
11
views
Magento 2 Bundle - Remove Slide Down
When I click on "customize" it moves me to the bottom of the page.
Is there a way to remove the slide down to # product-options-wrapper> fieldset?
Thanks.
0
votes
0
answers
10
views
Docker : How to configure grunt in docker file with using magento 2
i have use magento 2 with docker. it's working fine but my .less not compile with grunt. please any tutorial link share with me or any suggest me how to configure grunt in docker file with magento 2
...
0
votes
0
answers
13
views
Magento 2.4.4 Multi language goes to homepage
I have a newly installed Magento 2.4.4, i created 2 store views English & French.
When I'm in base language (English), and the current page / product is translated from backend, it goes to the ...
0
votes
1
answer
9
views
Error when use mixins in Magento2 on widget
I want to override function in Magento_Checkout/js/region-updater
So in template child:
'Magento_Checkout/js/region-updater': {
'js/Magento_Checkout/region-updater-mixin': true,
},
...
-1
votes
1
answer
26
views
Why not showing less file path in browser after running grunt in magento2?
While I am running grunt, I am not able to see less file paths into the browser inspect element in magento2click here
0
votes
0
answers
14
views
Quickpay not redirecting to payment page in magento 2 [closed]
Magento 2 not redirecting the user to payment page in quickpay. But the order get placed with pending status. When click on place order It directly redirect to thank you message.
0
votes
0
answers
10
views
Magento 2 translation for vendor module
So I have vednor module example (vendor/companyx/modulex/) and If I put my local translation file (sl_SI.csv) info vendor translation folder (vendor/companyx/modulex/i18n/) translations are working ...
0
votes
0
answers
14
views
Magento 2.4.3 SameSite Cookie None Issue
I am developing third party payment gateway plugin for Magento version 2.4.3 and using PHP version 7.4 with ngnix server. Now I am facing problem after redirecting back from the payment gateway to ...
0
votes
0
answers
13
views
Magento2: How to Split order based on product quantity
How to split order based on product quantity
I need to split and order on products quantity like if any product added to cart has two qty then two orders will be created and each thing like grand ...
0
votes
0
answers
14
views
Custom Sorting is not working in Magento 2.4.3-p1 - Product Graphql
I'm trying to create custom sorting for the product mutation.
Need a product sorting based on product ratings. Once i have override the \Magento\CatalogGraphql\SearchAdapter\Query\Builder\Sort. It ...
0
votes
0
answers
17
views
Magento 2 Rich Text Editor shows Page Builder
I am trying to add a WYSIWYG editor in Magento 2 while creating a custom module, but I keep getting a full-page editor instead.
Here is a snippet of my code
$fieldset->addField( 'content', 'editor',...
-1
votes
0
answers
20
views
Stripe Went Dark: "Invalid API Key Provided" and "Sorry This Payment Method is Not Available"
We have had Stripe Element module working on our Magento 2 (2.4.4) site pretty well up until about 3pm today (Friday, of course). We are using the most current Magento-Stripe Connector version.
At ...
0
votes
0
answers
17
views
Shipping costs aren't loading correctly
I would like please help.
I have on Magento 2 shipping costs on checkout and a cart price rule for free shipping on payment method Bank tranfer. I have followed the instructions from here https://...
0
votes
1
answer
25
views
Change address label from Zip/Postcode to Postcode/Zip in Magento 2
You would have thought this would have been a fairly straightforward task, however, I can't for the life of me, find where it is originally set. I'd like to make a few other changes once I know which ...
0
votes
0
answers
14
views
Install Magento2 on AKS
Can someone help me in building magento2 on AKS ?
I have tried many ways, but confused on the static contain path should I use configmap
0
votes
0
answers
18
views
Stripe payment vendor related issue
i have platform magento 2.my website is b2b. website used stripe payment. we are using multivendor for magento 2. i have found some issue.my platform in france we are saw that for sellers in Brazil ...
0
votes
0
answers
9
views
How to install and test magento functional testing framework
Can any one have idea or demo how we can perform test magento functional testing framework
0
votes
0
answers
15
views
How to fix composer install error on magento2.4.4
On Composer install command i got this error.anybody face this issue before?
0
votes
1
answer
36
views
Magento 2 - load Catalog collection without use of objectmanager in GraphQl
I am trying to load the Catalog collection without using object manager by injecting the class in the construct method and fetching the collection but I am facing the issue - "Error: Call to a ...
0
votes
0
answers
59
views
Update stock quantity and status programmatically on Magento 2.4.4 with MSI
I'm creating a product programmatically and trying to update its stock quantity (XXX) afterwards, but the products grid always shows Quantity: XXX, Default Stock: 0.
I'm using Magento 2.4.4 [which ...
0
votes
0
answers
11
views
Magento2 - Pagination controls not showing on Seller Product Page
On the seller profile page of my magento2 website, the number of products listed is limited to 12, and any additional products are hidden. How do I turn on pagination on this page so users can page ...
0
votes
0
answers
30
views
Admin Change Password Link Is Not Working - Magento 2.4.3-p1
Admin Change Password Link Is Not Working - Magento 2.4.3-p1 after upgrading the Magento version from 2.3.3
0
votes
1
answer
14
views
how to add category by UpgradeData in magento2
if I want add a new Category in magento2 by UpgradeData.php,how could i do.only need to add a new record in table catalog_category_entity?but I didn't found the Category name in this table.
0
votes
0
answers
30
views
404 NOT FOUND error Magento installation process
I'am trying to install magento 2.4 on ubuntu 20.04
I've installed magento with composer.
mysql and apach are running fine and php installed correctly as shown below
All magento commands are working ...
0
votes
1
answer
176
views
Magento 2.4.4 setup:install Error : "the default website isn't defined. Set the website and try again."
I have gotten only the configuration value in the Helper file but when I put first my extension and then run setup:install command it gives this error "the default website isn't defined. Set the ...
0
votes
1
answer
25
views
Magento 2 Enterprise Multistore - Speed Optimization
Recently I have completed migration from M1 to M2. Total of 5 stores reside under single Magento 2 installation in the Cloud now. Page speed is a pain point at this time. Lighthouse and web.dev scans ...
0
votes
0
answers
28
views
Magento 2 add to cart shows session expired message even after changing to 127.0.0.1 in base url after upgrade from 2.2 to 2.4
I am facing an issue on my magento 2 localhost setup. When I click on the add to cart button it shows message session expired. I google and tried one thing, changing the base URL to localhost IP ...
0
votes
0
answers
47
views
Unable to apply data patch Magento\GroupedProductSampleData\Setup\Patch\Data\InstallGroupedProductSampleData
while type the php bin/magento setup:upgrade the terminal when occur error at 'Magento_GroupedProductSampleData'
Error Image
-1
votes
0
answers
15
views
A merchant asks you to extend customer functionality to allow customer accounts to be associated with two or more billing addresses
A merchant asks you to extend customer functionality to allow customer accounts to be associated with two or more billing addresses. How is this implemented?
Below are the options:
A. By adding the ...
0
votes
0
answers
32
views
Search returns errors on certain products
After updating some modules that I needed to fix compatibility with Magento 2.4.4 I am getting some errors in the search result page but it only happens with certain products.
The error is ...
0
votes
0
answers
22
views
Magento2 add filter by name in category listing page
How can we add filter option in alphabetic order for the categories displayed in frontend.
By default all categories need to be listed,after clicking specific letter the preferred category need to be ...
0
votes
0
answers
8
views
How to integrate bulk API queue using db in env.php
I have integrated RabbitMQ with Magento to use async bulk APIs, now I have to check the same with MySql as a queue processor instead of RabbitMQ. does anyone has integrated it? the reference of env....
0
votes
0
answers
30
views
How do you set the Magnifier zoom level in Magento?
I've enabled magnifier on product images in Magento. However, the zoomed-in image is blurry.
The maximum size the product image is displayed in 595px x 595px so the size of file I've uploaded is ...
0
votes
1
answer
109
views
Could not find package magento/upgrade-compatibility-tool with stability stable
I am trying to install the Magento Upgrade Compatibility Tool on a Magento Enterprise 2.4.2 version. I am facing below error message while executing the command
composer create-project magento/...