Stack Exchange Network

Stack Exchange network consists of 175 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.

1
vote
0answers
37 views

How to call my custom countries dropdown list in magento2

I need to call my custom countries dropdown list in magento2 checkout page. how to replace the default to my custom dropdown. thanks in advance..
0
votes
0answers
15 views

Put user comment on bill

some customers write text in the "user comment"-box at the end of the purchase process. This is visible in the admin of course but not on the printed bills so you miss maybe some important customer ...
-2
votes
0answers
22 views

Magento 2 website redirect to another website [on hold]

Magento 2 website first redirect to another website then again enter url it is working fine.
0
votes
4answers
34 views

Magento 2: wrong permission generate in generated folder

when i execute setup:upgrade command then some file is generated in generated/ folder. after i have execute chmod -R 777 /generated command but when i check in some admin page like : Product grid ...
1
vote
3answers
32 views

Call to a member function getId() on null - module-catalog/Helper/Product.php

I added sample data to my magento2 website, but when I want to access to a product I always get this error : Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/...
2
votes
0answers
20 views

Web API: Product set use default status for store view

Our products are created and updated via the web API. When we update a product for all /rest/all/V1/products/123 and set status: 2 the product is disabled. But per store view it's still enabled ...
0
votes
0answers
35 views

Some 3rd level categories are not showing in filter in magento2

I have Category relationship like below. Test>Sample>Men (200 products here) Test>Sample>Women (8 products here) Test>Sample>Others (10 products here) When navigated to Sample category. In left ...
0
votes
1answer
53 views

Logout user from session by admin in admin panel

As a admin in admin panel I want to change status of user account to inactive and after that user should be logged-out from frontend area if he is logged-in. How can I programatically log-out other ...
1
vote
1answer
31 views

Using {{store}} directive to get url for different store view

Scenario: In a static block, I need to generate the url for a specific page but not in the current store view, but to a specific store view / website. Question: Is there a combination of parameters ...
0
votes
1answer
44 views

Magento 2: I need to remove .html from category url

I need to remove .html from category Url. e.g https://mysite/categoryname.html Required url: https://mysite/categoryname I am removing from admin. But it's not working. Does anyone have a ...
-1
votes
1answer
33 views

addFieldToFilter in magento2 returning same data everytime

addfieldtofilter in magento2 behaving weirdly I have code foreach($userIDs as $singleUserID) { $userid=$singleUserID['user_id']; var_dump($userid);//...
0
votes
1answer
21 views

How to add customer details for guest user using Magento rest API - create order

I am creating an order for a guest user using Magento rest API. Approach: Create a quote Add items to the cart Prepare checkout - Adding billing and shipping information for the order Create an ...
1
vote
1answer
25 views

How to patch a core controller, model, block or helper in Magento 2

How to create a custom patch file for Magento 2?
1
vote
1answer
24 views

Magento 2.3 Image upload field on CMS Page

I followed the steps from the following post (Magento 2 : Add Hero Image Upload Field on CMS page) to create an image upload field on the CMS page. I managed to create the field on the CMS page, as ...
1
vote
1answer
15 views

Magento 2.3 adds white stripes while resizing a product image for a frontend product list

I have installed clean Magento EE2.3 . after I have moved to production mode I got 2 big problems. 1) when I look on the product page I can see it being resized to a different size with white lines. ...
0
votes
0answers
18 views

Magento2 - Admin order shipment not save with tracking number

When I m using payment method with COD than shipment is working fine, but when i'm using with Authorize.net than getting below error. Fatal error: Uncaught exception 'Exception' with message 'User ...
2
votes
0answers
33 views

di.xml ExtensionPool create/read handlers Conflicts

I am creating extensionpool handlers to save data in multiple tables. There are total 3 tables : 1 : Sliders 2 : SliderItems 3 : SliderSelectedItems When I create/update Slider, list of selected ...
1
vote
1answer
20 views

Magento 2 validate the form input using plugin and save the modified data

I am using custom plugin to validate the user input for customer profile. I have created Module Company_Module and create di.xml file in etc to verify the input given by the user: <type name="...
0
votes
2answers
36 views

For Magento 2 not show some category on frontend for not logged in customer, once customer logged in it will able to see that category on front end

For Magento 2 not logged in customer not able to access selected category any way in store Ex. url, menu, search etc , once customer logged in it will able to see category and its products. can ...
-1
votes
0answers
11 views

How to restrict use of store credit as per total order amount in magento 2?

for example if user going to order of total $500 then user can only use 5% of order amount from store credit.
1
vote
0answers
11 views

Identify if my project css is complied using grunt or glup

I have installed client magento2 on my local. I need help to identify if magento2 setup is compiling css using grunt or glup? How can i check this? Thanks in advance
1
vote
2answers
33 views

Magento 2 How to Update current cart subtotal and grand Total?

Hello please help me to sorted out the issue I need to update Grand Total and Subtotal of the current cart using observer in magento 2 please let me know how to do this!!! I need cart item price ...
1
vote
0answers
36 views

Magento 2 : Custom attribute create with “Use default value” checkbox and that functionality

I created custom attribute under custom eav_entity_type. Attribute was created successfully and display also in admin. But, it's not display "Use default value" checkbox when, I switch to other store....
1
vote
0answers
16 views

After Social login,product is not adding to wishlist niether not redirecting to wishlist page

I am facing issue adding product in wishlist (magento version 2.2.3). Here is scenario, Step 1 :- Make sure customer not logged in. Step 2 :- Go to product list page and click "Add to wishlist" ...
1
vote
2answers
27 views

Magento 2 - How to disable cronjob temporarily

I have a crojob in my custom module and want to disable it temporarily The xml files for the cronjob are: app/code/Vendor/Module/etc/cron_groups.xml app/code/Vendor/Module/etc/crontab.xml I have ...
5
votes
4answers
168 views

How to override model in magento2?

I want to remove the below lines in Magento\Quote\Model\PaymentMethodManagement model file if (!$this->zeroTotalValidator->isApplicable($payment->getMethodInstance(), $quote)) { ...
2
votes
1answer
20 views

Braintree charging twice when order is shipped

We are facing an issue that the transaction is being created twice on Braintree and our clients have been charged twice. What we found is that the TransactionTime on Braintree is the same for when ...
2
votes
1answer
28 views

Getting Custom Image Attribute in Frontend

I've followed a tutorial found here: https://webkul.com/blog/add-custom-image-attribute-category-magento-2/ With a slight modification which can be found in the InstallData, where I specified '...
1
vote
0answers
23 views

Can I remove the clickable link on the sign in text?

Please help me with this, I want to remove the sign in text clickable from the header section. I just want that the arrow shows the sign in, contact us and create account.
2
votes
1answer
13 views

Why isn't Magento 2 recognizing my library in requirejs-config.js?

This is Library location app\design\frontend\user\theme\web\js\owl.carousel.min.js this is my config js file app\design\frontend\user\theme\requirejs-config.js var config = { deps: [ "js/...
2
votes
1answer
18 views

Magento 2 - How get extension attributes from product collection

I need to get the product collection with all extension attributes, specifically I need then to get the stockItem object with $product->getExtensionAttributes()->getStockItem(). So I have ...
1
vote
0answers
12 views

Magento 2: How to pass an existing module in the vendor, to the application folder?

I want to pass a module from the vendor folder called "module-checkout" to the application folder. But every time I try to register this module to the application, I get an error that says that the ...
1
vote
1answer
14 views

Magento2.3 w/ php7.2 - Emails not being sent

I am running Magento 2.3 on php7.2 everything works perfectly, except emails are not being sent to the customers or myself. I have checked: Sales Order Emails set to YES Cron tabs configured ...
1
vote
0answers
13 views

Magento2.2.5 admin panel not able to get to cms page or static blocks

when I go into the admin panel and then try to get to any CMS page or static block (in the admin panel) I get a 500 error which is the below error. Also in the admin panel if I try to go to any cart ...
1
vote
0answers
19 views

Magento 2 amazon pay not working as expected only on product page

Magento 2.3.0 I already set the configuration for Amazon seller and all working well except product page. Minicart button and product page button not working on the product page. But on another page ...
1
vote
0answers
19 views

Magento 2.3 Client Side less compilation static files not found

if I enable the Client side less compilation and flush the static file cache I will get 404 Errors for all files in the media and pub/static direction. I'm using nginx. If I compile the files manual ...
4
votes
2answers
29 views

Understanding the Magento 2 index

Generally Magento's index can be updated in 3 ways (depending on usage and configuration): "On Save" "By Schedule" Using indexer:reindex command This is what I can gather from the description in the ...
1
vote
0answers
14 views

Need only product and category data in data migration

I am doing Magento data migration from 1.9.2.4 to 2.3.1. I need only and only product, category and attribute data. I am using new and different theme in 2.3.1, Ultimo. I don't want any cutomer, ...
1
vote
0answers
21 views

Dropdown does not appear

I have a problem with my theme. When I am using a registered account, the dropdown does not appear, the white space remains. I am attaching the photo: I tried the original LUMA theme, and it appears. ...
1
vote
1answer
17 views

External image details getting added in order email template in Magento 2

I am trying to add product image in the sales order email template with overriding in the path /app/design/frontend/vendor/Mytheme/Magento_Sales/templates/email/items/order/default.phtml. Code ...
1
vote
1answer
15 views

Magento 2 Wishlist product add not working when user should in before login

I am facing issue adding product in wishlist (magento version 2.2.3). Here is scenario, Step 1 :- Make sure customer not logged in. Step 2 :- Go to product list page and click "Add to wishlist" ...
1
vote
1answer
28 views

Magento2 Backend Not Add Product So give me Solution

Magento2 Backend Not Add Product So give me Solution Here is my EXCEPTION.LOG [2019-04-16 13:09:11] main.CRITICAL: Cannot gather stats! Warning!stat(): stat failed for /home/ywndev/domains/dev....
2
votes
1answer
31 views

Save Button Redirecting to Same Admin Form in Magento 2

I am working on a custom module in magneto 2. i am creating an admin form using UI Component, when i click on save button Page redirects to its self Vendor\Module\Block\Adminhtml\ProductSliders\...
1
vote
3answers
31 views

Magento 2: The directory generated/metadata doesn't exist - skipping cleanup

Magento 2.3.1: The directory generated/metadata doesn't exist - skipping cleanup When running bin/magento setup:upgrade we see the warning in screen The directory generated/metadata doesn't exist - ...
1
vote
0answers
22 views

Migrate only products from Magento 1 to Magento2

I am using Magento data-migration tool and am able to do migrate all data successfully. My requirement was to: migrate only customers migrate only Orders migrate only Products Followed below link ...
0
votes
0answers
15 views

Get custom customer address attribute on email

I have a module with which I create my attribute. I can get it and show it in the admin panel, but not when the data is recibed on checkout process. This is my installer code: public function ...
0
votes
0answers
21 views

Magento2.1.9 Error on shipment generation save

I'm debuging code got error in exception error : exception 'PDOException' with message 'There is no active transaction' in /public_html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/...
1
vote
0answers
14 views

Magneto 2.1.9 Shipment not save in admin side

I have place order and using authorize.net payment method.I have facing this issue in admin side when save shipment getting this error Cannot save shipment.exception 'PDOException' with message '...
0
votes
1answer
37 views

'Class' not found error in Magento 2 frontend

This is a screenshot of the error. My code is app/code/Prayag/Module/view/frontend/layout/cms_index_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
39 views

Magento 2 Stores -> Configuration redirects to dashboard

Getting issue after enabling form_key from backend. When I am trying to open store > configuration from Order section it took me redirect to admin dashboard