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.

3
votes
1answer
1k views

Magento 2: Paypal Express Checkout: We can't place the order

I'm using Magento 2 CE Version 2.1.2. Facing strange issue. My website is live. Using Paypal Express Checkout. We are using CDN & SSL. Out of 100 Customers 10 Customers will face above kind of ...
3
votes
1answer
2k views

Magento 2.2 - Breadcrumbs issue

Currently i've got products in a category sub of default for example: Root -> Sub cat -> product I've noticed that on the product page itself the breadcrumbs are working fine for some products and ...
0
votes
1answer
10 views

Display sale badge on PLP

I am trying to display a 'Sale' badge on product category pages if the products have a special price. Though the isn't rendering anything. <?php if (_$product->getPriceInfo()->getPrice('...
1
vote
1answer
2k views

Please specify product's required option(s) magento 2

I am adding product into my cart through productid and qty but when i load into cart it's displaying this message. Please specify product's required option(s). <?php namespace Racom\Chatbotapi\...
1
vote
4answers
76 views

Magento unable to add webp images to category thubmnail

I want to add webp images to category thumbnail, how can we do this, it gives below error on adding webp images "File validation failed."
0
votes
0answers
7 views

What is the purpose of “configSource” in layout

What is the purpose of using "configSource in file "https://github.com/magento/magento2/blob/0eb8677b0b4e35606032e856cc1ef7c80e68829f/app/code/Magento/Captcha/view/frontend/layout/default.xml
1
vote
1answer
2k views

Magento 2 : How affects Enable Single-Store Mode Yes/No?

I have 1 single website with single store. When I enable Single-Store Mode to Yes/No Not able to change Product Url. https://github.com/magento/magento2/issues/5929#issuecomment-238170690 What is ...
0
votes
0answers
8 views

How can I create a new STATIC Product attribute in Magento 2?

How can I create a new STATIC Product attribute in Magento 2? We use barcode as a unique identifier (same as SKU) and are considering adding this - same as sku - as a STATIC attribute directly to ...
0
votes
0answers
23 views

Prevent Ajax calls on Homepage

What is the purpose of these ajax calls and how to prevent these Ajax calls on magento 2 homepage, or atleast minimize their execution time because they are taking load time of around 3-4 secs on my ...
1
vote
0answers
21 views

Magento2: Getting Error processing request on frontend side

I get an error on my frontend after migrating my database. When I check the logs, I get the following error {"0":"Notice: Undefined offset: -1 in \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\...
0
votes
0answers
10 views

Product detail blank page

I updated my website to Magento 2.3.1, and thought everything was working. However the product detail pages all show a blank page, no errors are shown. I have enabled error reporting in both ...
3
votes
1answer
22 views

Magento : REST API integration with paypal payment method

We are using REST API for mobile app from magento 2. We are try to place order using paypal express checkout method. But we get error. Check detail bellow. API call. Call Type : PUT API URL : https:...
1
vote
2answers
2k views

how to remove phtml file from home page in magento 2 theme

How can I remove a phtml template file from my theme, but only from the home page? My template file is "custome_home.phtml" at app/design/frontend/kalpak/ktheme/Magento_Theme/templates/html
2
votes
0answers
21 views

Magneto 2.1.9 checkout page getting error in console network

I am using wegbshop Matrix shipping method after login customer group I am facing this issue in checkout page when place order {message: "Please specify a shipping method.",…} message: "Please ...
0
votes
1answer
19 views

Drop Down Multi-select category Ui Component

I am using this code to create a multi-select category option in a form. It saves the data in the table correctly but when I try to edit it, it shows the selected category name in the field but doesn'...
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 '...
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 ...
2
votes
0answers
34 views

How to run external script outside of magento 2 root directory?

I have made a few external php scripts to update quantity and tracking numbers,etc Right now, i'm putting them in magento root and set the permission to 640. However, it's still accessible by the ...
1
vote
1answer
12 views

Magento 2 create admin form selected option depend on another selected option

I have created an module for admin which have admin form and this form have some fields.I have two select option drop down fields.If I choose first dropdown option value then second drop-down display ...
0
votes
1answer
23 views

how to update data in database table

I am sending data to the database by checking duplicate data. But I can't be inserting/updating data in the database. protected function saveEntityFinish(array $entityData, $table) { $...
2
votes
2answers
744 views

Magento 2 - Set global variable

I want to know if it's possible to add a global variable all through the site (so that if I need to change it, I would only need to do it once). It's for an URL.
1
vote
0answers
17 views

Set quote item product custom weight no holding through shipping

I am trying to set a custom product weight based on a set product custom option. I've tried multiple things like a plugin, before/after events, actual events like sales_quote_add_item etc. I am able ...
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 ...
1
vote
0answers
43 views

How to Hide Empty related Product in Magento

I hope someone can help me. I have a website in Magento 2, and I want to hide the related products when they do not have articles. I have added my list of products and some have related products and ...
0
votes
0answers
11 views

Not able to post custom customer attribute data using soap api

I need to post custom customer attribute data using soap api. I am passing the array in api My array $customerdata = ['customer'=> [ '...
3
votes
1answer
43 views

Magento2 installation stuck on user configuration (49%) on Ubuntu vagrant

I try to install Magento2 on my Ubuntu using vagrant, the installation stuck on " Installing user configuration... " without any error.
3
votes
2answers
51 views

How to add group product into the cart individually?

I have two simple products associated with a group product at the product description page and have a separate add to cart button with each product I want to add these products to the cart ...
1
vote
1answer
16 views

Sort products in ascending order by name on specific category page not working

I want to sort product for a specific category by name in ascending order but it is still sorting in descending order in the front-end. For a category under Display Setting, I have set Default ...
0
votes
2answers
21 views

Magento 2: Problem when enable developer mode

I have a problem when i enable developer mode: This is my default.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/...
0
votes
0answers
11 views

Add dynamic custom attribute like price to bundle form product M

I want to know how to add a dynamic attribute like dynamic price in form of bundle product because i want to have in the dropbox the value of this attribute -and the value of price now when creating a ...
2
votes
1answer
2k views

You did not sign in correctly or Your account is temporarily disabled Magento 2

I have try this Solution but its not working.... Please give me suggestion to how to resolve this When trying to login to the admin account in my local test setup it says: Account is temporarily ...
0
votes
0answers
10 views

How to get the attributes set using the all attributes in phtml page? in magento 2

How to get the attributes set using all attributes in phtml page? In need, the products view page in all attributes in particular attributes set related attributes?
0
votes
1answer
32 views

Change Email Template On Specific Order Status:Magento2

I am trying to use different e-mail template for one of my custom order status when the status is changed from the admin. I have used the event sales_order_save_after <observer name="...
1
vote
3answers
65 views

How to make a Field only accept Numbers in Magento 2

I am new to Magento 2. I am trying to make a field that can only accept numbers for Sort Order field on UI Component Form I need help
0
votes
0answers
24 views

what is best way to move database from magento 2 to magento 1

I wanna move product category order from Magento 2 to Magento 1. what is the best way for this? I create export from product and import to Magento 1 by default tools on manage but I get some error ...
-5
votes
0answers
20 views

Magento2 Custom enable disable [on hold]

I want an option like yes or no in stores->configuration. I am integration one custom theme. If i click yes in configuration settings , my custom theme will display if i click no in configuration ...
0
votes
2answers
1k views

Magento 2 installation fails for Sample Data

I'm trying to fresh install Magento 2 on my server with Sample Data and installation keeps failing at around 67%. Here's what I've done so far - I downloaded Magento 2.1 with Sample Data from the ...
1
vote
3answers
92 views

Frontend styling has disappeared, and I can't get it back

Disclaimer: I'm new to Magento 2 development as of Nov 2018, and new to development generally as of mid-2017. So I'm new to asking development-help questions too. Most of the time I can figure it ...
3
votes
2answers
46 views

Magento 2 - Customer/Token Rest API issue

Customer is signup through rest api in magento 2.3 successfully. after signup, I am unable to get customer's token through customer/token rest api. Api returns following error: Any help, experience ...
0
votes
0answers
14 views

Need to fetch custom customer attribute load via SOAP API 'customerCustomerRepositoryV1'

I used SOAP API '{$baseUrl}soap/default?wsdl&services=customerCustomerRepositoryV1' to get customer attributes values. I am successfully getting these attributes values like name, email etc all ...
0
votes
1answer
87 views
+50

Magento 2 - I need to create simple custom report with date range and other column filter (filter should be outside of grid)

I need to create custom report which is just like magento default reports. I go through the Internet I found this https://github.com/degdigital/magento2-customreports but In this report data is ...
0
votes
1answer
26 views

When to set production mode in Magento 2

why should I set production mode and when it's the correct time to do it?
0
votes
0answers
30 views

Magento 2 Product Base , Thumbnails not saving

In Magento, I am building a bulk image upload feature. Here user can upload images as "sku_1.jpg, sku_2.jpg, sku_3.jpg ". Now I need to set "sku_1.jpg" as the main image, thumbnail. I used the ...
1
vote
0answers
14 views

how to sorting product in listing page by group product in magento 2

How do I show all group product first in the product listing page first and then the rest of the product shown
0
votes
1answer
18 views

Magento 2: How to stop expanding advanced layered navigation tab on a page load?

I am getting expanded tabs for all attributes in layered navigation when category page loads. I want navigation like this on page load Does anyone have any idea about it?
1
vote
0answers
13 views

ArgumentCountError when executing indexer_clean_all_changelogs cron job

In Magento 2.2.6, I've encountered an issue and here is log: main.CRITICAL: Error when running a cron job {"exception":"[object] (RuntimeException(code: 0): Error when running a cron job at /usr/...
5
votes
2answers
493 views

Add Phone Number column in sales order grid

I am trying to add phone number column in my order grid. I have added new column through sales_order_grid.xml in my ui_component directory. Code is below: <?xml version="1.0" encoding="UTF-8"?>...
0
votes
2answers
1k views

Magento 2 : Admin Grid Pagination Issue

In magento admin, custom grid pagination is not working. I have 3 records in database, When I enter 2 records/page then next page button remains disabled and it will not show remaining 1 record. This ...
1
vote
3answers
2k views

How To Add Additional Options In Magento 2 Cart

I used this to Add Additional Options In Magento 2 Cart https://livesubwpcache.cloudways.com/blog/add-additional-options-in-magento-2/ But this is working only with Simple product. For ...
0
votes
0answers
723 views

Magento 2 - Get simple product attributes on Grouped product detailpage

I'm trying to get the attributes values of the simple products in a grouped product to display on the detailpage (of the grouped product), but it is not working. At the moment i have the following ...