Questions tagged [magento2]

General questions about Magento 2, not specific to a minor version. Use this tag to distinguish from Magento 1. If you have issues with a specific version, please use the appropriate 'Magento-2.x' tag instead. Functionalities between Magento 2 minor versions might differ.

Filter by
Sorted by
Tagged with
0 votes
1 answer
7 views

Render paypal express button in jslayout

The goal is to render Paypal express button under the customer's email address field in checkout page. Since the checkout page is render by jslayout, how can I insert the paypal express button block ...
Eric Libay's user avatar
0 votes
1 answer
10 views

Display Stock on product widget

I am using magento 2.4.6 with martfury theme. I want to display stock level on product that's displayed via widget. Also, I have MSI enabled for the store. I am using the below code to display the ...
Yukti Dogra's user avatar
0 votes
0 answers
4 views

Magento 2 Customizable Options - generate always unique SKU

we are selling individually printed products in our Magento 2 instance. Now I have set up an article in the way, that the print design name needs to be added by the client. See here: But in our ERP ...
Ben's user avatar
  • 141
0 votes
0 answers
6 views

The cron task indexer_update_all_views failed | SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'entity_id' in where clause is ambiguous

Sorry for my bad English. I am using Magento 2.4.6-p4 CE and I get the following error after every order. The job indexer_update_all_views scheduled at **date** **time** failed with the following ...
EK.'s user avatar
  • 81
0 votes
0 answers
9 views

Failed Order Payment Not Reverting MSI Inventory Quantity in Magento 2

I'm experiencing an issue with my Magento 2 website concerning inventory management using Multi Source Inventory (MSI). Whenever there is a failed transaction via a specific payment gateway, the ...
Alku's user avatar
  • 1
0 votes
0 answers
9 views

How often should I run the message consumers?

Magento 2.4.6 I am running this every minute via cronjob: php bin/magento cron:run; > /dev/null 2>&1 php bin/magento queue:consumers:start product_action_attribute.update & php bin/...
user4095519's user avatar
0 votes
0 answers
8 views

Magento admin redirecting to 404 not found media/admin

There is an issue arising with a app admin page is redirecting to media/admin and showing 404. Tried clearing cache as well as tried redeploying static content but the issue persists. Checked for the ...
Hamza Mohammad Khan's user avatar
0 votes
0 answers
7 views

Magento CE 2.3.1 Warning: PDOStatement::execute(): MySQL server has gone away in Zend/Db/Statement/Pdo.php on line 228

I am setting up existing magento project with PHP 7.1 and Mysql 8.0. when I run setup:upgrade its returning error: Module 'Ves_Megamenu': Installing schema... Upgrading schema... Warning: PDOStatement:...
Sagar Parikh's user avatar
0 votes
1 answer
22 views

graphql api for guest to create account on checkout success page graphql

I am using the default api to create customer for a guest user to create account mutation { createCustomer( input: { firstname: "Bob" lastname: "Loblaw" email: "bobloblaw@...
Somnath Tiwari's user avatar
0 votes
1 answer
11 views

how to update the SKU values

Magento Verrion: 2.4.3-p1 Problem: I tried to update the products weight value in the admin panel. I changed the weight value 1.2kgs(current) => 2.8kgs(preffereable) and press the save&exit ...
celina alwin's user avatar
0 votes
0 answers
10 views

File upload field not working magento 2.4

I've created a custom form in adminhtml, in form i have a file upload file, this form is used both when create a new row and when edit existing row, when i'm creating the upload field appears ...
David Alvir's user avatar
0 votes
1 answer
16 views

Related Products show Huge Pixelated images

magento is displaying my related products as super enlarged pixelated images, how do I fix this?
keith's user avatar
  • 1
0 votes
1 answer
11 views

How to Convert Media Gallery Slider to a Vertical Slider in Hyva Theme Magento 2?

I'm working on a Magento 2 Hyva Theme project and need to convert the default Media Gallery slider into a vertical slider. Currently, the slider displays images horizontally, but I want it to scroll ...
user115508's user avatar
0 votes
1 answer
32 views

How set limit of product's swatches on category listing page in magento246

How to set limit of product's swatches on category listing page. I have to show 5 swatches of the product on category listing page. I have tried below code but that's code working only 5 swatches of ...
Keval Chauhan's user avatar
0 votes
0 answers
12 views

magento 2 how to add custom report generator to get data from other database and filter that data based on dates

like this I need to display data in to below table based on selected date interval
Shraddha Patel's user avatar
0 votes
2 answers
18 views

Is there any event available for when customer side reorder button click?

I need to remove a product while reorder button clicked certain condition. For example if the product sku is 'ABCD' means, i need to remove it from adding cart and all other ordered product need to ...
ARUL.K's user avatar
  • 3
0 votes
1 answer
18 views

Adding custom product attribute to summary in checkout?

Magento 2.4.6 I added a custom product attribute next to the qty in the checkout summary following the tutorial on Add custom product attribute to checkout summary Magento 2. That works until the ...
user4095519's user avatar
0 votes
2 answers
29 views

How to get real-time price update based on quantity changes on product page in Hyva Theme Magento 2.4.5

How to achieve real-time updating of price based on quantity changes using on product page the Hyva theme in Magento 2.4.5
Admin SAB's user avatar
0 votes
0 answers
14 views

Show Quantity on product page (configurable product)

I currently try setting up configurable product for our store, for example we sell a laptop with 3 grading A / A- / B and each grading has its own quantity and price. When setting the correct price / ...
Omar Mohamed's user avatar
0 votes
1 answer
15 views

Get same product info while we use catalog_product_save_before and catalog_product_save_after

when i am using catalog_product_save_before and catalog_product_save_after this two event it will always return catalogue_product_save_before data. when I am trying to fetch the child id from the ...
RAJDIP JALONDHARA's user avatar
0 votes
0 answers
14 views

Magento 2. Show System Config Field Only In Certain Websites

To better understand what I mean by a 'System Config Field' check the picture bellow from here I already know that I can configure the visibility of a Field based on the scope (Default/Website/Store/...
vitoriodachef's user avatar
0 votes
0 answers
10 views

How to set custom menu items active in top menu depending on URL visited (menu caching issues)?

When I add custom menu items to the top menu (where product categories are placed) they are not set as active or are always active, depending on logic I implement for checking active state, no matter ...
player's user avatar
  • 33
0 votes
0 answers
59 views

Magento 2.4.6 Upgrade: Logged-in Users Facing Checkout API URL 404 Errors [closed]

After upgrading Magento from version 2.3.5p1 to 2.4.6p4, I'm encountering an issue with the checkout process specifically for logged-in users. The checkout_index_index page is not functioning ...
Mohudoom Naina's user avatar
0 votes
0 answers
14 views

Create multiple Configurable Products that redirect to the Parent Product

How do I create a parent product with multiple variants e.g. Colour: Oak, Black Oak. Then have both show as individual products on the category page but when clicked, they direct to the parent page ...
Grant Davies's user avatar
0 votes
1 answer
24 views

Reading product attribute value for "All Store Views"?

Magento 2.4.6 Is there a way to read the value of a custom text field attribute value stored in the "All Store Views" scope? Currently I am using $product->getMyAttribute(); which returns ...
user4095519's user avatar
0 votes
0 answers
16 views

Optimise Category Page Speed

The category page takes between 4 to 5 seconds to load, occasionally extending to 6 or 7 seconds. The page doesn't have a large number of product listings, with a maximum of around 50, but pagination ...
usman's user avatar
  • 440
0 votes
0 answers
14 views

Update REST API Payload using before Plugin

Can I use before plugin in Magento 2 to update Customer Creation Payload? Reason: In Magento, we have one custom customer attribute of dropdown type as you can see below. Now the API is working fine ...
Muhammad Saeed Khan's user avatar
0 votes
1 answer
26 views

How to get from_date and to_date of cart_rule and catelog_rule in magento 2?

I'm writing a before plugin and i need to get from_date and to_date of cart_rule and catelog_rule in my plugin code namespace Vendor\CouponBeforePlugin\Plugin; use Magento\Quote\Model\Quote\Item\...
Midhun M's user avatar
0 votes
0 answers
6 views

Magento 2 - Could not find package magento/project-enterprise-edition with version 2.4.4-p3

I had an issue as below Could not find package magento/project-enterprise-edition with version 2.4.4-p3 Which happen when I run below command to install the fresh project composer create-project --...
Mohd Farhan Bin Ramli's user avatar
0 votes
1 answer
28 views

Varnish not working with Magento 2.4.3: Website doesn't response

I have multiple website on the server and I am trying to configure Varnish cache for them. I have bypassed other sites as for now I am focusing only on the magento site i.e. magento.site. However, if ...
nix's user avatar
  • 127
0 votes
0 answers
16 views

Do I benefit from RabbitMQ when I have no integrations?

I have a shop that has big purchase peaks every now and then. Server can become unresponsive at those times with even the biggest server available. The shop does not have any ERP integrations and many ...
Webninja's user avatar
  • 1,593
0 votes
0 answers
13 views

Fatal error: Uncaught TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, bool given

In the following Code: <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\Framework\Filesystem; /** ...
Guru murthy's user avatar
0 votes
0 answers
5 views

Demo Content instalation, multisite

Is it possible to install demo content on a site-by-site basis on a Magento multisite? I want to configure one of my sites on a Magento multisite install to look like one of the demo content setups ...
t3chn0hippy's user avatar
0 votes
1 answer
8 views

Ok to truncate ADMINNOTIFICATION_INBOX?

I migrated from M1 a few months ago and I've checked the M2 DB today and noticed that the table: ADMINNOTIFICATION_INBOX is pretty big with messages from years and years ago, must have been migrated ...
loginid's user avatar
  • 394
0 votes
1 answer
31 views

magento2 how to get custom block value on shipping knockout template

How to get the value of a custom block in Knockout Shipping's template. My code is: Vendor/Extension/view/frontend/layout/checkout_index_index.xml <?xml version="1.0"?> <page xmlns:...
Keval Chauhan's user avatar
0 votes
0 answers
12 views

magento 2.4.6 snippet [$block, 'toHtml'] not working

Can anybody explain this magento 2.4.6 statement from core file ? $alertGrid = $this->_appState->emulateAreaCode( Area::AREA_FRONTEND, [$block, 'toHtml'] ); In the above ...
shankar boss's user avatar
  • 1,453
0 votes
0 answers
5 views

Reset selected swatches in configurable product

I need to create a "Reset" button, that will reset selected options on the front end in a configurable product, to the state, where no attribute was selected. So for example I have selected ...
Herecomes's user avatar
0 votes
0 answers
4 views

Magento 2 Layered Price Filter Conditional Query

I've been tasked with fixing the price filter on a Magento 2 site. It works fine with normal products, but a new "grouped_product_price" has been added to Grouped Products as part of a ...
Anthony Earles's user avatar
0 votes
0 answers
34 views

Send data from Magento to ERP using RabbitMQ

I need to integrate Magento 2 with Odoo ERP by sending new orders from the first platform to the last. Shortly, when an order is placed, I need to make it available to the ERP system that will ...
iupaem's user avatar
  • 51
0 votes
0 answers
7 views

how to customise sorter.phtml in magento2?

i need to customise the magento2 component sorter.phtml so that it displays all available options in a list (instead of a select element) and each element in the list has its own asc and desc arrows. ...
media.queeries's user avatar
0 votes
2 answers
33 views

Showing the product in category and search with Magento 2 Observer

I have defined an attribute in Magento 2. When I say Dont Show in Category in this attribute, I do not want the product to be shown in Category and Search. But I don't want to completely remove the ...
ramazan çağlayan's user avatar
-1 votes
0 answers
12 views

Magento 2 : How to implement oauth2 using Auth0 provider id

How Can I implement oauth2 using Auth0 provider id ? Any example or reference link help me more.
houcem ellouze's user avatar
0 votes
0 answers
21 views

Magento 2 : Display All Cart Price Discount in Minicart

How to display all cart price rules discounts in minicart for M2.4.6 for those which can be calculated... For example if the buyer buys more than 100 USD or similar. I am aware, that discount based on ...
Petka's user avatar
  • 1
0 votes
2 answers
33 views

How to show abbreviations of State/Province instead of Full names in Magento 2

In Magento 2 customer account create I want to show abbreviations of State/Province instead of Full names. So far I have changed this code but it is not working. /vendor/magento/module-directory/Model/...
ishaq's user avatar
  • 195
0 votes
0 answers
25 views

Override checkout shipping/billing detail section

I have encrypted customer ,shipping/billing address , now I want to show decrypted customer address on checkout shipping page section , I have tried with plugin on process no success. Please suggest ...
user1's user avatar
  • 1
0 votes
0 answers
16 views

Customers load section create in magento2 admin grid

I need to create a customer load section in Magento's custom admin grid. I've used the sales order grid as a template for this. While I am able to load the customer, the search functionality isn't ...
Sunil Sharma's user avatar
0 votes
1 answer
18 views

Modify MAP text

Can you please explain me how to modify this text "See price before order confirmation."?
Dan's user avatar
  • 13
0 votes
0 answers
16 views

magento 2 cookie issue customer can't log in multistore and multidomain setup

I have 2 domains in the same project first is https://site.domain.com/ and the other is https://site.example.co.uk/. Whenever I try to log in on https://site.example.co.uk/ it redirects me to the ...
witcher's user avatar
  • 21
0 votes
1 answer
18 views

when we remove the simple product from configurable product how we can compare the before save and after save child product ids

when we remove any simple product from configurable product that time how we can get remove product ids,i am try with "catalogue_product_save_after" "...
RAJDIP JALONDHARA's user avatar
0 votes
1 answer
22 views

how to change position to sorter.phtml block?

i'm trying to move this UI element vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar/sorter.phtml from its original position to the right side of the screen inside another ...
media.queeries's user avatar

1
2 3 4 5
957