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
46 views

Magento 2 : How to change the quantity of items in the checkout?

How to change the quantity of cart items in the checkout? I have a select that should display the quantity of items in the cart. When changing the value, change the quantity of goods in the basket and ...
3
votes
1answer
51 views

How to skip some products to addtocart when reorder in magento 2?

I want to skip some products whenever reorder. file path in vendor folder (vendor/magento/module-sales/Controller/AbstractController/Reorder.php:57) and it is an abstract Class. I want simply add ...
-2
votes
0answers
31 views

display product name in admin grid from product id in magento2

hello everyone I want to display product name in admin grid through product id using foreign key
2
votes
1answer
23 views

I am facing an database rollback issues in Magento 2.3

Error Static analysis: 1 error was found during analysis. Unrecognized statement type. (near "LOCK" at position 58) SQL query: -- -- Dumping data for table mgw2_inventory_stock_1 -- LOCK ...
2
votes
1answer
26 views

Magento 2 - Sales Order Shipment Event/Observer

I search on the Internet for sales order shipment event. In many Stack Exchange question I found this event sales_order_shipment_save_after. In most of Question they are saying it is not working and ...
1
vote
0answers
16 views

Database rollback error in Magento 2.3

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pinnacle_mage476 .mgw2_store_website' doesn't exist, query was: SELECT mgw2_store_website. * FROM mgw2_store_website I am facing ...
0
votes
0answers
23 views

Magento 2 : How to get best seller product collection using object manager in home page custom slider?

How to add best seller products in home page custom slider. So, I need a best seller product collection in phtml file.
1
vote
1answer
19 views

Payment gateway with third party redirects in magento2

Payment gateway with third party redirects in magento2 not working public function placeRequest(TransferInterface $transferObject) { $response = $this->generateResponseForCode( ...
0
votes
1answer
19 views

HOW TO ADD COLUMN TO 'Order Total Report' GRID and display custom customer data to new column in magento 2?

There are so many post discussing how to add column to sales order grid, but no one discussed about HOW TO ADD COLUMN TO Order Total Report GRID (REPORTS > Customers > Order Total) and display ...
4
votes
0answers
57 views

Megamenu issue - Clicking menu opens category page for that menu in mobile in Magento2

I need to resolve issue of responsive megamenu for mobile. The issue is when I click on the subcategory to opens its child sub-categories the link gets clicked and gets redirected because of which ...
1
vote
2answers
31 views

Magento2: How to Modify DropDown Country options on the fly?

I need to create a restriction for the Billing [Country_Id] options Based on a new Config. Setting that Pairs a Customer-Segment with specific Billing Country options. I found: vendor/magento/...
1
vote
0answers
14 views

Changing store view (language) to the default store view, it goes back to homepage

I have "Add to store code to url" enabled, I have two store views with different name and url of the category for each store view, now I'm in category page: example.com/en/category, when I switch ...
3
votes
0answers
40 views

Magento2 : Admin order creation should auto select specific shipping method?

In magento version 2.2, when admin is creating an order, I want to automatically select shipping method (Flatrate) without manual selection. I tried adding the following commands (order....
0
votes
1answer
29 views

Programmatically Changing Order's Weight

Our products have custom fields corresponding to weight. How could I add (and update) this weight for the order, so that shipping is calculated with this new weight*? *Product weight value + custom ...
2
votes
1answer
16 views

Change checkout tooltip to string

I am working with a custom plugin in Magento 2 that adds two radio fields after all the other inputs. Here is a photo of what it looks like: When you click on the question mark, a tooltip shows up ...
1
vote
1answer
37 views

remove amazon pay icon from shipping step

How do I remove the "amazon pay" icon from the shipping step? If i set "Configuration"->"Payment Method"=>"Amazon Pay"=>"Advanced"->"Display Amazon Pay Method" to "No", then it'll be removed, but it ...
0
votes
1answer
20 views

magento php memory limit issue

Iam facing an issue while installing extension through magento web setup wizard I have created phpinfo file and tried/checked memory limit is 1024M and i have added php.ini or tried .htaccess for ...
3
votes
0answers
29 views

Custom Model Relationship (CMS Page + Product)

I am trying to assign a Product Object to a CMS Page Object, so when you have the CMS Page Object, you can do something like this: $product = $page->getProduct(); I have modified the CMS Page ...
1
vote
1answer
17 views

Magento 2 tier price override

By default, Magento will choose the price assigned to "ALL GROUPS" over the price assigned to a customer group if customer group's price is higher than ALL GROUPS price. I want to override this logic ...
0
votes
1answer
33 views

Add custom button on add/edit product page

How to add a custom button, in add/edit product page (magento2). I need to open popup on clicking of the button.
1
vote
0answers
28 views

Magento Server is at 100% CPU after installing Extension

I just installed a new Extension via Composer: $ composer require mageworx/module-advancedproductoptions This is the output: Using version ^2.16 for mageworx/module-advancedproductoptions ./...
1
vote
0answers
35 views

2.3.0 Watermarks not showing on product images

Watermarks are not showing up on product images in v2.3.0. Steps to reproduce Create categories Create products Modify buggy image uploader to work around bug so you actually can upload an image. ...
1
vote
0answers
22 views

Foreign key constraint fails

I update schema newsletter_subscriber, certain I added firstname column which is a foreign key to customer_entity firstname, and when I post data the object with value is sent and in Magento insert ...
0
votes
1answer
21 views

InstallData is not running while testing in server

Why does it work on local but does not work on server ? <?php namespace AcountS\AcountStatus\Setup; use Magento\Customer\Model\Customer; use Magento\Customer\Setup\CustomerSetupFactory; use ...
2
votes
0answers
30 views

Can’t set watermark in Magento 2.3.0

Magento 2.3.0 has bug - can’t upload watermark pictures in admin panel. I do next: vendor/magento/module-catalog/view/adminhtml/ui_component/design_config_form.xml On approx lines 21, 81 and 140 ...
1
vote
0answers
14 views

Magento 2: Want to add versioning in style.css

I want to add style.css?v=1.1 but when i add these version it call at the end of all other css files which distort website design. so what should i do?
1
vote
0answers
18 views

JSON.parse: unexpected keyword at line 1 column 1 of the JSON data

I am getting this error in checkout. Below the Shipping Address form, Shipping Methods is stucked on loading. In console it says: JSON.parse: unexpected keyword at line 1 column 1 of the JSON data ...
1
vote
2answers
24 views

Deleting Products Order history?

How can I Delete test order history from my Magento 2 Admin Panel?
0
votes
1answer
23 views

Creating non-admin account

How to create non-admin accounts in Magento 2 which user can only add and edit products and categories.
0
votes
0answers
10 views

How to add custom shipping field to the shipping method list on checkout page in magento 2

I added a collapsible text field to the shipping method list with the help of this link. I also created a new custom field for each shipping method. Now i want to show that custom field data to the ...
0
votes
1answer
33 views

Magento2 Place Order Without billing address and payment Method

i don't want billing address on my checkout page and i achieved this but when product price is 0 billing address not showing and payment method also not showing i want to place order without both ...
1
vote
2answers
54 views

Remove block from layout depends on condition

I want to remove block product.info.addtocart from layout depends on some conditions
1
vote
0answers
7 views

Gallery Thumbnail (left/right) Scroll Performance Android Chrome Sluggish and Unresponsive

Preconditions (*) Magento 2.2.7 and Magento 2.3 Product Gallery Product page gallery with sample data is installed on the luma theme with additional images (minimum 5+). Steps to reproduce (*) ...
0
votes
1answer
26 views

Add a custom fields account information section magento2 dashboard

We would like to a custom text field in my account dashboard account infomation section using custom module in magento2 Please find the screenshot below: Thanks
0
votes
2answers
18 views

Is it possible to change output function call parameters using a plugin

Like I have this function public function letsTry(){ $this->callFuncion($name1, $name2, true); } private function callFunction($arg1, $arg2, $arg3 = false){ // do stuff } How i can change the ...
0
votes
1answer
23 views

Magento 2 : Access the DOM from custom module?

I want to have some jQuery within my custom module to detect whenever a navbar item is clicked on the website. Is there any way of detecting jQuery events? Any help appreciated.
0
votes
0answers
31 views

How to change the qty of cart items in the checkout [on hold]

How to change the qty of cart items in the checkout? I have a select that should display the quantity of items in the cart. When changing the value, change the quantity of goods in the basket and ...
0
votes
2answers
33 views

Contact Page URL Change: Magento 2

I have tried to changed the default URL of contact page in magento2 to my custom URL but it is not working at all. I have tried as follows: Put the following code in my custom module.xml <config ...
3
votes
0answers
24 views

Magento 2: How to add quantity field in category page [duplicate]

I need to add quantity box in category page. your help will be greatly appreciated
0
votes
0answers
19 views

how can i update custom attribute value from customer [duplicate]

i need to update custom customer attribute value programmatically, i tried this: public function userapprove($id){ $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); ...
2
votes
2answers
47 views

display uploaded image in admin grid in magento2

I want to display an uploaded image in admin grid which is uploaded through a form <column name="image"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="...
1
vote
1answer
27 views

Magento 2 Product Insertion area custom multiselect field how to save?

I am add a Multiselect into the custom section product insertion area.Please show below screenshot: I add this multiselect into the F:\xampp-7.2.14\htdocs\magento230\app\Code\Vendor\module\view\...
0
votes
1answer
24 views

Magento 2 - Use standard product page

I am using a Theme for the magento shop. Is it possible to change only the product page to standard and use the Product page top area of the standard magento theme? I am using a theme baught on ...
1
vote
0answers
17 views

Magento 2 : Which event will trigger when a Navbar Item is clicked?

I've done some searching around and i'm trying to find the observed event for when a particular navbar item is clicked. The goal is to run some code for whenever that navbar item is selected but I do ...
0
votes
2answers
64 views

How to automatically run custom module CRON only?

I've to insert/update/delete some data in my custom tables in each 6HR. so i'm using a custom module with CRON and in that module i've written script to insert/update/delete the things. So for ...
0
votes
2answers
33 views

ReferenceError: jQuery is not defined Magento 2

I created a countdown using JS. For that i need jQuery so I created requireJs file. var config = { paths: { 'countDown': "ABC_CoundDown/js/countDown" }, shim: { 'countDown': { deps: ['...
0
votes
0answers
26 views

Module doesn't work on online

On localhost it works well, but on online it gives page is not found ex: {domain}/accountstatus/index/suspend/key/..... vendor/module/Controller/Adminhtml/Index/Active.php vendor/module/...
1
vote
1answer
26 views

how to create city state country dropdown UIComponent in magento 2 admin form

how to create city state country dropdown UIComponent in Magento 2 admin form, like when we select one country then state of that country is shown. Thanks,
1
vote
1answer
31 views

Magento 2 Backend fails when using CLI “setup:upgrade”

When I try to use the following command in CLI: php bin/magento setup:upgrade The entire Admin part of my Magento 2 site stops working and only shows a white page with the following error: 1 ...
1
vote
0answers
14 views

Overriding the dev/tests/integration/framework/Magento/TestFramework/Config.php class

I want to override the dev/tests/integration/framework/Magento/TestFramework/Config.php class. Can anyone have an idea about how to override classes inside dev folder? Thanks in advance.