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
1 answer
3k views

401 Authorization Required Magento 2 REST API

I'm trying to get the list of all magento2 products but I'm getting 401 authorization error. I tried the below methods and in all methods I'm getting the mentioned error! First Method: $userData = ...
Iftikhar uddin's user avatar
1 vote
1 answer
594 views

Controller's action with name "list" showing 404 for the custom module

I am using Magento 2 version 2.2.2 I have a simple custom module and right now for the testing it only has Index controller. The problem is all actions for this Index controller works fine but ...
Klaus Mikaelson's user avatar
1 vote
1 answer
310 views

Magento2 Plugin to remove Parent category

Referring the answer to this question - How to remove parent category from subcategory URL? I created the file in Module Plugin folder - RemoveParentCategoryPathPlugin.php with contents like: <?...
Joshi's user avatar
  • 347
1 vote
2 answers
2k views

Can't upgrade Magento 2.2.4 to 2.2.5

I am trying to upgrade Magento 2.2.4 to 2.2.5 with composer. php bin/magento maintenance:enable php composer.phar require magento/product-community-edition 2.2.5 --no-update php composer.phar update ...
Garry's user avatar
  • 267
0 votes
1 answer
936 views

Display all categories and all subcategories

I have following code to show all categories and all subcategories that is included in menu which works fine. namespace Categories\Display\Block\Adminhtml\Index; class Index extends \Magento\...
Tanvir's user avatar
  • 65
0 votes
1 answer
606 views

Are there any benefits of using Apache's mod_cache_disk with Magento 2?

I'm currently configuring a web hosting server (Ubuntu 16, Apache 2.4, 8GB RAM, 6 Core CPU) with about 20 Wordpress and Magento 1.9.X/2.2.X sites and would like to optimize it for speed with Apache's ...
Lez's user avatar
  • 2,917
2 votes
0 answers
726 views

Getting TypeError: require.exec is not a function error

I am facing this error. Following are the details when the error occurs on Magento 2.2.4 Created a custom module page. Removed every block from custom module page except content block. In other page ...
Indian's user avatar
  • 160
2 votes
0 answers
235 views

How to save custom form field value from payment form in magento 2

I am trying to save custom form filed value from payment form during place order. I have added custom field in payment form with id method_payment_profile_id <div id="selectstore" style="width: ...
Sarvesh Tiwari's user avatar
2 votes
0 answers
75 views

How to change the search box in Magento 2.2.4?

I tried to move the search box to right and all categories to left. But where can i find the code in Magento 2.2.4 . Please check the above image
nukala satish's user avatar
3 votes
0 answers
374 views

How to create API Endpoint in Magento2?

I want to create API route which can list/return products data in JSON or XML format. By creating this endpoint I will be able to fetch the all the products from Magento. Then I will access it on my ...
Iftikhar uddin's user avatar
2 votes
0 answers
242 views

Magento 2 how to create custom field in user registration page

How to create custom field (Text field and drop down ) in user registration page and it should effect in. User registration page Admin panel customer information Customer my account page
Chala Chalapathi's user avatar
3 votes
1 answer
642 views

Magento 2 - Add NEGATIVE discount in catalogue price rules

I'm trying to use the catalog price rule to add a NEGATIVE percentage to the recorded catalog price - but Magento won't allow that. What I'm trying to achieve is that if the catalogue price is £100, ...
David PHJ G.'s user avatar
1 vote
0 answers
188 views

How I set the customer based discount on Magento 2?

I want to set customer based discount in Magento 2. For example: Xyz 10 % discount ABC 5 % discount.
shail's user avatar
  • 441
1 vote
1 answer
2k views

Magento 2 sales_order_invoice_pay fired on order placed

I need sales_order_invoice_pay as observer for add some amount after first order invoiced. But this observer fired when order placed. Did we have any Magento bug or am going wrong? <event name="...
gh darvishani's user avatar
1 vote
0 answers
91 views

Magento 2 CDN cache

I have enabled CDN for my Magento 2 store static contents. But just would like to confirm, will there be any issue , if I run the below commands? Should I rebuild the CDN cache after running ...
Intellect Outsource's user avatar
0 votes
1 answer
774 views

Magento 2 - Is there a way to add a custom help box next to product customizable attributes?

On a product page, you can have customizable options, like: There are probably people out there who don't know what "Finish" means. In this case, I'd like to add a small help box, maybe ...
Mingle Li's user avatar
  • 265
0 votes
1 answer
32 views

Migrate database from Magento 1.3 to latest

What's the best way to migrate mangento from 1.3 to latest? Do we need to register the products etc again? I want to keep everything (order history etc.)
Carpe Diem's user avatar
1 vote
0 answers
198 views

As low as on configurable products

I have several configurable products and a few of them have a higher price than some. For example, I have a shirt with 3 sizes S, M, L the Lis $3 extra dollars than the other two. I have the simple ...
user69037's user avatar
1 vote
0 answers
31 views

Found 2 major bugs in magento 2 when creating orders through the admin, temp solution anybody? [closed]

Issue 1. On a multistore with different prices when you hit the button update qty the wrong price is suddenly assigned to the products. https://github.com/magento/magento2/issues/15846 Issue 2. ...
Sander van Zuidam's user avatar
0 votes
2 answers
714 views

Convert mysql query in magento query

How to convert this query in magento style `SELECT MAX(s.num) FROM ( SELECT CONVERT(SUBSTRING_INDEX(sku,'-',-1),UNSIGNED INTEGER) AS num FROM catalog_product_entity WHERE (...
Eugene Kapelko's user avatar
0 votes
2 answers
515 views

How to find possible config settings for UI Components

For the UI components, I see nodes for data/config and data/js_config. It seems like a lot of components have this option. How do I find the possible values available to be set for each component? Is ...
jstrez77's user avatar
  • 772
2 votes
2 answers
2k views

Warning in installation process

Getting Error Warning: require(C:\xampp\htdocs\Magento\vendor\composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in C:\xampp\htdocs\Magento\vendor\...
RJ Aniket's user avatar
2 votes
2 answers
2k views

Magento2 Remove all password validation

I've tried removing data-validation Tag from password input but it didn't work for Reset Password, New Password, and Change Password.
Kaushal Suthar's user avatar
1 vote
0 answers
42 views

how to change the name of add to cart button as customise product in particular product page

I want to change the name of add to cart button as customise product on a particular page. Any reference please.
user69030's user avatar
1 vote
0 answers
61 views

Category Navigation suddenly disappeared

Sorry in advance I'm not very familiar with Magento. I am working on a Magento Web Shop and one day the top navigation, where you can open the categories, just disappeared. I tried searching in the ...
d.bardarov's user avatar
2 votes
1 answer
987 views

How to set different css files for each store in custom module

I created a module which is changing some of the behaviours on the bundle product. I also need to create some CSS and I did create a file and attach in a layout by doing this: <css src="...
user3544190's user avatar
4 votes
2 answers
2k views

Magento2: How to set product wise different layout

I have Two product. Both are Downloadable. I want different layout for both product. Except below concept: catalog_product_view_id_1.xml The second concept I am using is with help of observer, But ...
Ravi Soni's user avatar
  • 1,809
2 votes
0 answers
355 views

Filter the configurable products based on the child product's color in Magento 2

In Magento 2 How to filter the configurable products based on the child product's color. For example, if the parent has 4 children with Green, Red, Yellow and Black colors. If I select green in the ...
Umarfarooq Galibwale's user avatar
4 votes
1 answer
2k views

How can i remove Vat Number field in customer address form admin?

I want to remove Vat Number field in customer address form in admin.Anyone have any idea?
Sagar Dobariya's user avatar
1 vote
2 answers
1k views

Add field under billing-address

I'm trying to add a checkbox above the 'billing address same as shipping address checkbox'. I added this to my layoutProcessorPlugin: protected function addFieldsToSubscribeToNewsletter($...
Sanne's user avatar
  • 1,316
0 votes
0 answers
72 views

magento 2.2.4 : Create orders programmaticaly

I want to know how to create orders programmatically. I want to create an order in the same time, add cart product when I click on by "confirm my order". I want my customer to add product to his ...
Morgan Tartreau's user avatar
0 votes
1 answer
752 views

How I can translate the Magento2 admin theme in Arabic

I want translate a Magento 2 theme for a Magento 2 admin view. How do I translate Magento 2 admin in Arabic language in RTL?
Sharad's user avatar
  • 51
2 votes
2 answers
756 views

Facing error when importing downlodable product in magento2

I want to import downloadble product when i was importing catalog_product.csv it's giving me below error: Imported resource (image) could not be downloaded from external resource due to timeout ...
Rutvee Sojitra's user avatar
1 vote
3 answers
3k views

How to change theme programmatically for specific controller in magento 2?

In magento 1.X we can change theme programmatically in controller action by below code : Mage::getDesign()->setArea('frontend') //Area (frontend|adminhtml) ->setPackageName('packagename') //...
Amatya Trivedi's user avatar
0 votes
2 answers
272 views

Add to cart button freezes and nothing is put in basket

We currently run a Magento 2 Store with the Porto theme from Smartwave. We use the TIG PostNL extension for shipping. After the latest update of this extension the add to cart button doesn't work ...
Hans's user avatar
  • 1
0 votes
1 answer
744 views

How to pass custom quote id while placing order in Magento 2

I have created a functionality to replace default checkout cart quote values by my custom quote values, and it is working fine for me. But, when I am placing an order, order is taking checkout cart ...
Ronak Parmar's user avatar
1 vote
0 answers
290 views

What will be the background process execute when click on reindexing in Magento 2?

I want to know more about indexing. How in Magento2 re-indexing request processed in background.
shail's user avatar
  • 441
1 vote
1 answer
860 views

Magento 2 Developer Certification Exam? [duplicate]

Hope anyone can advise me on how I can prepare for the Magento 2 Developer Certification Exam?
Nebojsa's user avatar
  • 11
1 vote
3 answers
3k views

Magento 2 - How to add wysiwyg editor in frontend PHTML file?

I have one inquiry form on frontend custom module. I wanted to use wysiwyg editor in frontend PHTML file. I have read many thread on community which have tutorials for adding wysiwyg in backend form....
Dhaval Solanki's user avatar
2 votes
2 answers
285 views

What is the significance difference in magento1 and Magento 2 controller?

What is the difference between Magneto1 and Magento2 controller in term of the development ?
shail's user avatar
  • 441
0 votes
0 answers
68 views

Magento 2 : Best Seller are not updated for imported order

I have import orders and generate shipment and invoice, But our Statistics are not updated like best seller, Most Viewed, Order Collection, Dashboard Graph. I have already tried with cron and refresh ...
Ajay Patel's user avatar
  • 1,513
0 votes
1 answer
845 views

A technical problem with the server created an error + magento

We are using the Linux server and In Magento Panel we are facing below error, A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, ...
Yogesh T's user avatar
1 vote
1 answer
7k views

Magento 2 send order & invoice email manually

I tried to disable magento 2 send email order and invoice automatically (after place an order and invoice an order) by disable send email in configration Store > Configuration > Sales > Sales Emails....
Tiny Dancer's user avatar
0 votes
1 answer
25 views

Show product image before image in content

Could anyone help me to show product image before image in content with Magento v2? My website load is not so bad but the image of products are load after images in content. Thus, visitors think that ...
eatnmore.com's user avatar
0 votes
2 answers
316 views

How can I add an active selector to this piece of code

Can anyone help me with adding an active selector so that when a link is clicked that link will receive a different color background or maybe just bold it? Filename is section.html <link ...
DevAnd's user avatar
  • 516
1 vote
1 answer
350 views

Magento 2.2 soap api catalogInventoryStockRegistryV1UpdateStockItemBySku

I'm trying to use Magento soap catalogInventoryStockRegistryV1UpdateStockItemBySku, but I cannot understand how parameters should be passed. I know there is REST documentation but if I apply the REST ...
Lounik's user avatar
  • 121
0 votes
0 answers
324 views

Two categories are loading every available product in category

Most of my categories are working fine and only loading 12 products per page. Two of my categories are loading in every product assigned to those categories causing a very high page load time. The ...
Max's user avatar
  • 63
0 votes
0 answers
326 views

Magento 2 : Minicart customization - add 2 attribute in minicart

I followed this link for minicart customization but i did not work for me href "I want to customize my minicart in Magento 2. I need to add 3 attributes " I followed above link but my minicart not ...
Wahaj Moin's user avatar
1 vote
0 answers
541 views

Magento 2.2.4 Product sorting list by price on category page - How to fix Low to High Sorting Issue

Magento 2.2.4 It is expected that catalog category page show products sorted by price correctly, taking account that special price of the configurable product should not make difference to price ...
Rachna Thakur's user avatar
6 votes
2 answers
6k views

How to fix this "Running schema recurring.Unique constraint violation found"

How to fix this error "Running schema recurring.Unique constraint violation found". This statement occurs when I used upgrade command of Magento 2 model upgradation.
kaustubh borate's user avatar

1
553 554
555
556 557
957