Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
9 views

The order number's prefix not changing in Magento2

The order number i want from 100003001 I am running Below command in mysql SET FOREIGN_KEY_CHECKS=0; ALTER TABLE sequence_order_1 AUTO_INCREMENT = 100003001; SET FOREIGN_KEY_CHECKS=1; But Auto ...
0
votes
1answer
13 views

Magento 2 Change the email address of store when customer places order

how to change the email address where we get the email when an order is placed on our magento 2. I want to add the multiple email address where email should be sent.
2
votes
1answer
28 views

Magento 2: How to disable Quantity Box for specific product from checkout cart and minicart

How can we disable Quantity Box for specific product from checkout cart and minicart? I have already search for the solution but it will disable quantity for all products reference URL Your help ...
1
vote
2answers
24 views

Change Firstname, Lastname label in customer registration in Magento2.1.7?

How to change label Firstname, Lastname only in Customer registration in Magento2.1.7?
0
votes
0answers
14 views

Magento 1.9.0.1 to 2.2.6 data-migration issue

Magento data-migration process all done and all data showing but products add and edit feature not working. when we click on product edit action then we will face issue check below error: PHP ...
0
votes
0answers
7 views

Magento 2.3 Importing process is really slow

I am trying to import 20,000 products from CSV in Magento 2.3 it's really slow it took 1 hour to complete it but the same file when I tried to upload in Magento 2.2.3 it just finished in 10 minutes. ...
1
vote
1answer
16 views

Magento 2 - How to sell items separately or as a set?

We currently have a lot of items that we sell either as a full set or as individual items. For example say we have a product - Green Marbles. The individual sizes are small,med,large. Or a full set ...
0
votes
0answers
27 views

Magento 2 Fatal error: Uncaught Error: Call to undefined method Magento\Framework\Session\SaveHandler\Native::write()

I've been getting this error when I tried to access my project: Fatal error: Uncaught Error: Call to undefined method Magento\Framework\Session\SaveHandler\Native::write() in C:\xampp\htdocs\...
0
votes
2answers
38 views

Change order of configuration options in customer product view

I have configurable products with many attributes like size and color in v2.2.7. They are listed in the admin area and in Stores > Attributes > Attribute Set > Default. The order currently is "Size", ...
0
votes
1answer
16 views

How to update sales_order_grid table in M2 production mode?

We have a working, well filled sales_order_grid table. But those orders we add via custom integration do not show up there - or show up, but with a very long delay. We found in the cron_schedule ...
0
votes
1answer
21 views

Magento 2.3 Very High PHP-FPM CPU Usage

Using Magento 2.3 and after some extensive digging, it seems that either fotorama or another that loads the images on product list and product page runs several instances of PHP-FPM all at high usage, ...
1
vote
1answer
14 views

Call to Member function on null (plugin help)

I currently have this Plugin, which is just this at the moment: di.xm <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
0
votes
3answers
36 views

Magento 2.2 can't override default template

I am trying to override a default Magento html template, but no matter what I try, it won't work. Here are the two paths: Default Magento path: /project_folder/vendor/magento/module-ui/view/frontend/...
1
vote
1answer
12 views

How to use an accordion into another accordion ? (or tabs or collapse)

I'm trying to put an accordion into another, and the lonely way I found is to not use the same widget into another. Exemple, the parent is an accordion, the different children can be tabs. The ...
1
vote
1answer
22 views

Running php bin/magento commands returns nothing on 2.2.7 CLI php 7.0.22

I'm having some problems running the php bin/magento commands using PHP 7.0.22 on MAMP Pro, Mac, Magento 2.2.7 The commands was working about 2 hours ago when all of a sudden stopped working whereby ...
1
vote
0answers
21 views

Catalog Search not working in magento 2.2.4

No search result in catalog search. I have reindex data still getting no result. When i look in data base, i found that my catalogsearch_fulltext_scope1 table is empty. is there any issue with this?
0
votes
1answer
15 views

Download failed, retrying… Downloading https://repo.magento.com/archives/magento/magento2-base/magento-magento2-base-2.3.0.0.zip

I need to say, its really hard and sadly magento typically that nothing works out of the box as it should if you follow offical step-by-step tutorials. Since a few hours or better days I try to ...
1
vote
2answers
20 views

Check on logged in customer, only working on cart page; why?

The check is as follows: The Following code is supposed to check if a customer is logged in anywhere $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $customerSession = $...
0
votes
0answers
19 views

server is out of memory

I'm running magento project on c5dxlarge with 8GB RAM. storefront was working fine but suddenly server get out of memory and memory usage became 80 percent. Also I had about 300 running processes even ...
2
votes
0answers
42 views

PHP Fatal error: Cannot declare class Zend_Mail_Message after composer update Magento 2.2.7

Does anybody know how to fix this? When running the index PHP Fatal error: Cannot declare class Zend_Mail_Message I already tried Deletion of cache, redis, generated folder etc Setup upgrade and ...
1
vote
0answers
26 views

How to get custom address attributes in Magento 2

I am trying to display all custom address (Added programmatically) attributes on address add/edit page in My Account section. I have looked into below interface module-customer/Model/Address/...
0
votes
1answer
23 views

RAM memory needed?

For Magento 2.3 and Elasticsearch 5.2, my system is an Ubuntu 18/04 with 2GB of RAM, is this RAM enough? (I have 6000 products more or less)
1
vote
0answers
15 views

Magento 2 - Invoice without collecting shipping cost

Is there a way to create a partial invoice without collecting the shipping cost? For example, if I have an order with a virtual product and a shipped product, I want to be able to invoice the virtual ...
1
vote
2answers
30 views

Magento 2 - The right way to get a product attribute value

I'm wondering if there's a right way to get the value of a product attribute, in a generic way. EDIT: Or whatever I can use to get the info from a dropdown or text field using the same mechanism I ...
1
vote
0answers
14 views

Something went wrong with processing the default view and we have restored the filter to its original state

I got this error when I go to Catalog > Products and select a filter. I'm on Magento 2.2.6. Magento says this bug is supposed to be fixed on 2.2.6 but clearly it's not.And unfortunately I do not ...
0
votes
0answers
10 views

How to Hide/Show Product's particular Customizable Options on button click?

I have made a custom button that would be shown on the Product details page instead of the "Add to Cart" button. Now on clicking that button, I want to show some customizable options that are going to ...
1
vote
1answer
22 views

Magento 2 : How to put custom text in form validation?

I have this message when i validate post code How to change it? I tried overriding postcode-validator.js define([ 'jquery', 'mageUtils', 'Magento_Ui/js/model/messageList'], function ($, utils, ...
1
vote
0answers
12 views

Cannot make transaction paypal magento

I am trying to check out through paypal, I have put all the details in the paypal configuration in magento like username password etc. The issue is when i login through paypal and then click continue ...
1
vote
2answers
17 views

How to get ordered product image from getAllVisibleItems()

I have to display an image of the ordered product. I am using getAllVisibleItems() to get all the details of my order. From where I can get my ordered product image.
0
votes
1answer
22 views

Change text in Product Attachement Grid Magento 2

How to change text in Product grid if any product not found. I have attached this in custom module and now want to change text according to my need.
0
votes
1answer
20 views

Magento 2 : Custom template file is loading after refreshing the page only?

Here is my code for overriding vendor module template. when the page corresponding to this layout loads, it is fetching template file from vendor.after the refresh it is fetching from my custom module....
1
vote
1answer
15 views

No Unsubscribe message after unsubscribe newsletter Magento 2

I have set up newsletters in my magento website. There is Unsubscribe link in newsletter email which works perfectly i.e. customer is unsubscribed from newsletter. But when customer click on ...
1
vote
0answers
15 views

Magento 2.3 Composer stuck while downloading https://repo.magento.com/packages.json

I have a problem since about 24 hours I guess. When I try to download Magento 2 with composer I stuck after logging with my user-credentials. The credentials are ok, it pass and go through the next ...
1
vote
1answer
21 views

Change from “1 Day USPS Priority Mail” to "USPS Priority Mail” - Magento 2

Modify on the shipping name from “1 Day USPS Priority Mail” and just have it say “USPS Priority Mail” Ensure this is updated on all transactional areas (email/invoice details/etc) how to do this ...
0
votes
1answer
34 views

Get all order details from getItems() / getAllItems() / getAllVisibleItems()

I am trying to get all the order data. So I came across these three different types of methods to get items from an order getItems() getAllItems() getAllVisibleItems() I tried the first two getItems(...
1
vote
1answer
23 views

Magento 2 .htaccess file missing in pub folder

I was recently trying to upgrade my Magento 2.2.7 to Magento 2.3.0 and the following message came up in component dependencies Found non-writable path(s): /var/www/vhosts/powermyself.com/httpdocs/pub/...
1
vote
0answers
21 views

Consumption tax calculation

I would need to manage on the Magento 2.3 e-commerce (Community Edition) a tax calculation according to consumption (separate from the VAT calculation that is managed with the Magento Tax Rate Percent ...
1
vote
0answers
19 views

How to remove watermark from image from the product grid in magento2?

I have uploaded one product using csv with base,small and thumbnail images. I am not getting watermark images for base and small but for thumbnail image which are used in product grid. So how to ...
0
votes
0answers
12 views

Magento2: how can I change size popup the image used in gallery in the product page

On product page i need to change size of 'fotorama__stage' popup. is there a way how i can do it? In result i want to have smaller popup with gallery.
1
vote
0answers
26 views

Magento 2.3 upgrade compilation error

After I upgraded my magento store from 2.2.5 to 2.3.0 the CSS of the website is not displayed and I get an error when I run this: php bin/magento setup:static-content:deploy -f The error is: ...
1
vote
0answers
39 views

Magento 2 admin panel throw error

Order saving error: Public hash should be defined I am go to magento 2 admin panel and sales and go throw places order this error is coming how to slove it?
1
vote
4answers
43 views

Error on checkout page while adding product to cart

I am using a custom module, where I want to redirect to checkout page once a product is adding to cart. For this I have created an event on frontend "checkout_cart_add_product_complete". For simple ...
2
votes
1answer
25 views

Magento 2 : How to get the best seller product collection?

I'm trying to get Best Seller Product collection using below code, but it will not display any data $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $productCollection = $...
1
vote
2answers
25 views

How to close a purchase for specific customers in Magento 2?

Is it possible to close a purchase for a specific customer when the value of his user attribute is suspended, but he can login the site. I need to close only the purchase for this customer.
1
vote
2answers
34 views

Send newsletter

I have freshly installed Magento 2, And I could not find a way to send the newsletter email, There are options to queue template, but it is never sent, and the start date is always different from ...
1
vote
2answers
19 views

Export files to google drive using Magento 2 Programmatically

I want to export/transfer files to Google drive using Magento 2. Please help me out.
1
vote
1answer
35 views

How to get list of third party modules programatically?

By using this link i am able to get all extensions list in Magento 2. But i want to get only Third Party extensions which are installed in app/code directory. For example, there are 3 modules in app/...
0
votes
0answers
34 views

Magento 2.3 Admin page error

The error I'm getting. Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in C:\xampp\htdocs\onlinestore\lib\internal\Magento\...
0
votes
1answer
36 views

Error after creating boolean attribute magento2

I have created a boolean attribute using below code. $setup = $this->_objectManager->get('Magento\Framework\Setup \ModuleDataSetupInterface'); $eav_setup_factory = $this->...
0
votes
0answers
26 views

Notice: Undefined index: move_title for Porto Theme Magento 2 [on hold]

I have migrated my data from Magento 1 to Magento2. On M2 I am getting the below error. I am using porto theme on Magento 2. Please help me to solve the issue ASAP. TIA. 1 exception(s): Exception ...