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
0answers
5 views

Magento 2 Product Super Attributes

can someone give me a good documentation or resource on where can i understand how product super attributes works? its the catalog_product_super_attribute table. Thanks
0
votes
0answers
6 views

Serialization failure: 1213 Deadlock found when trying to get lock

We are using https://github.com/firegento/FireGento_FastSimpleImport2 to import product using CSV and we end up in getting this exception. ["SQLSTATE[40001]: Serialization failure: 1213 Deadlock ...
0
votes
1answer
19 views

How to get custom field values from quote table in observer?

I have added a custom field in checkout form and saved that values in quote table. And also displayed in the backend in order details. Now I want to send that custom field value in email. I have used ...
0
votes
2answers
14 views

Magento 242 bin/magento deploy:mode:set production deploy all languages

Whenever i run command bin/magento deploy:mode:set production, it always auto deploy all languages, takes a long time, makes high CPU and RAM usages. I would like it to generate files for en_US ...
0
votes
0answers
6 views

Magento2.4.2 form key not working

I am using ajax based add to cart sample product on the cart page when code reaches on save function URL redirected to 302 and the response never returned back to Ajax. $this->cart->addProduct($...
0
votes
1answer
22 views

Magento 2.4.2: cannot override crontab.xml

With the code below, I am looking to change the cron frequency, but it doesn't take any effect. <group id="yotpo_yotpo"> <job name="yotpo_yotpo_orders_sync" ...
0
votes
0answers
6 views

Magento 2 update final price when radio option change with bundle product

Bundle product display proper price , I wants to display and update price as final price when radio option change. Is It possible ?, if yes than how? If select test simple option Expected Result : &...
0
votes
1answer
14 views

Magento Data Migration Tool For Third Party Extension or Custom Modules

I have done default migration using Data Migration Tool. Now I want to migrate data of my custom module for that I am following below link: https://devdocs.magento.com/guides/v2.4/migration/extend-the-...
0
votes
4answers
36 views

how to display category with image in magento 2 without using object manager?

i want to get categories with image at home page, for this i use below code, but i get only category name, its not display category image. <?php $categoryHelper = $this->helper('Magento\...
0
votes
0answers
12 views

Magento 2: Remove change email checkbox and display all fields on customer account edit page

i want to display change email checkbox field out side the checkbox and remove the change email checkbox.
0
votes
0answers
11 views

How to add custom checkout form in checkout step in magento 2?

I want to need to add three form field in my custom checkout step and also they save in data base here below mention my code ho can i add that form mention in screenshoot to this custom checkout step ...
0
votes
0answers
17 views

How to add a script in a phtml file

I currently have a email pop up modal in my magento CMS but I need to hide the api so my script I will keep server side in PHP. My question is how can I have a phtml that is just a script be imported ...
0
votes
0answers
4 views

Quantity Increment button is not working with Ajax pagination on Listing page

I am working on Magento 2.4 , Quantity increment/decrement button. and not any error shown in console or Log file. Please Give me any idea about this issue. Thanks
0
votes
1answer
28 views

Sucess and Error Message is not shown on Contact Form

I am using Magento version 2.4, When i submit the contact Form it not shown Error or success message.Mail For contact form is working properly. Please Let me know the solution. Thanks in Advance.
0
votes
0answers
10 views

php.ini on magento cloud readonly

I need increase some values in my php.ini from magento-cloud environment, but with my user with admin roles opens the file in onlyread mode. Searching I found this, wasn't succesfully Disable/Readonly ...
0
votes
0answers
10 views

MariaDB crashing every few days

I'm using Magento2 with MariaDB 10.3.27 on Debian 10.8 and i'm experiencing MariaDB crash every few days. I have no idea what can cause those unexpected crashes. I'm sending my config and crash logs. ...
0
votes
1answer
15 views

Can't get module to show in static block

Using Magento 2 I created a cms static block that points to {{block class="Inchoo\ModalOverlay\Block\etc" template="modal_overlay.phtml"}} I followed this guide on how to create ...
0
votes
0answers
7 views

Magento2 Need to redirect to cart page & not paypal review page

Magento2 I need to redirect to the cart page & not PayPal review page whenever there is an error in Paypal express checkout payment. In short, let's say if there is an error of 'Shipping method ...
0
votes
1answer
14 views

Change Product Stock Source

We have a lot of products that aren't real products on their own, they are move customised versions of another product. So in terms of stock values for these SKUs we really want to link them to the ...
0
votes
0answers
12 views

Billing address in checkout same look as shipping

I have a question with billing address part from checkout. What i'm trying to do is to modify billing address to look like shipping address. Right now i have a select and a div wich contain ...
0
votes
1answer
15 views

Magento 2.3.5: Remove category page bottom toolbar title and filters and keep only pagination

I want to remove the title, filter and sort from the bottom toolbar on the category page and leave only the pager (pagination). My toolbar phtml is located at vendor/vendor_child/Magento_Catalog/...
0
votes
0answers
13 views

Magento 2: How to create popup alert in magento 2

I added a button in block which hits custom controller (I am not using any template) This is controller code: <?php namespace Vtn\UnexportedOrder\Controller\Adminhtml\Order; use Magento\Framework\...
0
votes
0answers
7 views

Image url converted into webp format by which image not coming on my magento 2 store

Image url converted into webp format by which image not displaying on my magento 2 store, suddenly my live website get hampered . please anyone help me how this possible my image Url changed by itself....
1
vote
0answers
12 views

Magento 2 - How to override knockoutjs template which is already overriden from a third party module?

I try to override the knockoutjs template vendor\amasty\module-single-step-checkout\view\frontend\web\template\checkout\summary\item\details.html from my own Theme. The module amasty\module-single-...
0
votes
0answers
13 views

M2: 'Add to Cart' still extremely slow

Thanks to Varnish cache, my Magento 2 installation loads within a second. The checkout process however, is an absolute UX killer. In particular the the cart process is really slow. Using Chrome's ...
0
votes
0answers
8 views

Magento 2 : The consumer isn't authorized to access %resources

In postman while i check to http://local.vendor.com/rest/us/V1/carts/mine/payment-information It shows { "message": "The consumer isn't authorized to access %resources.", &...
0
votes
1answer
17 views

var/importexport cannot be used with directory pub/media/

I have a problem with import/export products. When i select entity type = "Product", select my .scv file and click "Start Import". System show me error like in the picutre below. ...
0
votes
1answer
20 views

how can I update all product base images, to be the same as small images in Magento 2

I have a set of products, which are using different image for base, small and thumbnail. I would like to programmatically update them so that the base/thumbnail image is the same as the image now used ...
0
votes
0answers
13 views

Magento 2.3: Search is not working for specific search terms/queries

When I'm searching with some specific keywords like TV, AC, It's showing as below though we are having the products related to that keywords. Your search returned no results I thought its because of ...
0
votes
0answers
17 views

upgrade Magneto 2.3.3 to 2.4.2 problem

I'm trying to upgrade Magento 2.3.3 to 2.4.2 community edition. When I run composer update I got : Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/...
0
votes
0answers
12 views

Magento2 strange issue missing billing address

I am facing a strange issue, where orders are missing billing address, I have noticed it is due to user lands on paypal review page After visiting the paypal review page then order is placed but no ...
0
votes
0answers
10 views

How to add alert or message on checkout page when specific shipping method is clicked?

I Have Created a custom Shipping Method. Now on Checkout Page, when customer click on that custom shipping method .. notice or some message should be appear. How to do that?
0
votes
0answers
19 views

How can i add three form field in my custom checkout step in magento 2

I want to need to add three form field in my custom checkout step and also they save in data base here below mention my code Vendor/module/view/frontend/web/template/checkout/mystep.html <!--The '...
0
votes
2answers
29 views

How to add a title to sidebar in Magento 2?

I have moved my navigation menu to the sidebar by using <move element="catalog.topnav" destination="sidebar.main" before="catalog.leftnav"/> I wonder if I can add ...
0
votes
0answers
17 views

Configure php-fpm in magento2.4 correctly

php-fpm is consuming a large amount of memory, forcing the instance to restart. The server would like to know the configuration or the procedure for an ideal configuration. server: 4vcore memory: ...
0
votes
1answer
32 views

When I select categoy menu or any page I get following error message “Exception printing is disabled by default for security reasons” Magento 2.4

When I select category or when I click on menu I get the foollowing error. Need Help to understand and fix the following error please... {"0":"Type Error occurred when creating object: ...
0
votes
1answer
9 views

Magento 2 The information or error messages always remain displayed even after a change of page

The information or error messages always remain displayed even after a change of page, so once I get to the cart I have 5 or 6 messages that are still present, how to put a lifetime to the messages in ...
0
votes
1answer
16 views

What is the best way to determine if a script is being run by cron in Magento2?

I need a piece of code to execute differently if it's being run by cron, what is the best way to check programmatically that cron is the execution source? I know that it can be done by checking for ...
0
votes
0answers
13 views

Two store views ALOThemes footer and top bar

I'm using the ALOThemes expert theme. I don't know how to change some blocks depend on the store view. block: block_footer_bottom block: information
0
votes
2answers
35 views

Magento 2 - need super simple way of assessing whether cart is empty or not in list.phtml file

Client wants to display a conditional message on the category list.phtml page depending on whether or not the cart has ANYTHING in it I've found a lot of posts about creating a custom module to be ...
0
votes
0answers
17 views

what is the best way to make Controller execution code run in background?

i have built a new Magento 2 module that get Data from external API and save these data to database. my problem is that some Requests take too much time.. also may there will be many users requesting ...
0
votes
1answer
14 views

Magento2 / Add check for disable submit button on custom payment method

I have developed a payment method for Magento 2. I would like the "send order" button ("invia ordine") to be disabled in checkout (or send an error message) if the customer does ...
0
votes
0answers
16 views

Magento 2 send data from html template to Controller without Ajax

So I have created a component which has 2 templates, but the property data is the same for both. I wanted to know if there is a way to send data without using ajax. Why? Because I don't need to use ...
0
votes
1answer
11 views

Magento 2 - Product gallery magnifier not working after overriding Gallery class

My magnifier is not showing anymore IF THE PRODUCT HAS MULTIPLE IMAGES, after I have overriden the gallery class! I have enabled the magnifier in THEME\etc\view.xml: <?xml version="1.0"?&...
0
votes
0answers
8 views

Bug in translation add to cart: translation resets to default value after adding product to cart (only in production mode)

I experience a problem on a Magento 2.4.1 store. The problem: the Add to cart button on the product page is translated correctly on initial load. This is in Dutch in my case: "In Winkelwagen"...
0
votes
1answer
8 views

Magento 2 - How to change fotorama nav shaft thumbnail image size - for grouped products?

I need to change the size of the small images below the gallery, but only for products of type grouped Normaly you can change the size in the file THEME/etc/view.xml: <?xml version="1.0"?...
0
votes
0answers
10 views

Setup Advance bundling with Basic merging in magento2

I have setup the advance bundling correctly but I also want to setup basic merging with advance bundling. I tried to setup it on default Magento setup but I'm getting lot's of JS error after enable ...
0
votes
1answer
20 views

Validate zip code before placing the order in Magento 2

Without entering real zip code checkout won't allow placing the order. We need this for the UK site. In detail: If the shipping country United Kingdom is selected then the customer need to insert a ...
0
votes
0answers
14 views

Magento 2 - Custom page layout destroys view

I added a new page layout which inherits from the page layout 1column: THEME\Magento_Theme\layouts.xml <?xml version="1.0"?> <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
0answers
14 views

How to integrate third party php library css, js and other static files in Magento 2?

There is a library that has some CSS, js assets. I want to include this library and use its assets in Magento 2. I am prepared to write a module for this, but I don't know where to start. I first went ...

1
2 3 4 5
866