Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

It should be used for questions about issues related to Magento 2.1

Release notes

5665 questions
11
votes
2 answers

Magento 2 Use Symlink In Default or Production Mode for Pub Static Files

Situation: I am running some free trials of Magento 2 and have limited HD space on the VPS. For this reason to cut down on HD space I want to have Magento symlink the files in default or production mode. I have noticed that a default Magento 2…
Kevin Chavez
  • 890
  • 2
  • 13
  • 33
10
votes
2 answers

Magento2.1 Category custom attribute dropdown

Steps to reproduce 1. Module UpgradeData.php script contains: $categorySetup->addAttribute(Category::ENTITY, 'roflcopter', [ 'type' => 'int', 'label' => 'CMS Block', 'input' => 'select', …
9
votes
2 answers

Magento 2 add tab to sales order

I need add a tab tabs of sales order. I think the tabs are defined in sales_order_view but I create a module in Vendor/ModuleName/view/adminhtml/layout/sales_order_view.xml and I put this:
AndresF
  • 431
  • 1
  • 5
  • 15
8
votes
6 answers
8
votes
3 answers

How to disable all extensions by a vendor

I am stuck with a crappy vendor whose extensions have lot of bugs. I want to disable all the extensions from that vendor for sometime, without deleting the inside settings, to check if some other problems are caused by this extension or not. How can…
kashish
  • 389
  • 1
  • 2
  • 18
7
votes
5 answers

Magento 2 display out of stock products at the end of the catalog

I want to display out of stock products at the end of the listing page. I have followed the link here, getting error: Exception #0 (Zend_Db_Select_Exception): You cannot define a correlation name '_inventory_table' more than once How can I do?
Vinod Kumar
  • 2,045
  • 1
  • 23
  • 67
7
votes
1 answer

Why is Magento 2 local developer mode site with nginx and xdebug enabled is super slow?

I am getting a 50 second server response time for a category page. When processing, the following is shown in top: 4312 www-data 20 0 488280 146704 41816 R 99.7 1.8 1:11.54 php-fpm7.0 I have x-debug enabled with php7.0-fpm and…
tread
  • 1,083
  • 2
  • 13
  • 36
7
votes
3 answers

magento 2.1 why static content deploy after every setup:upgrade

I have installed Magento 2.1.0 successfully and also created many modules. Suddenly after every php bin/magento setup:upgrade command , its not generating static contents. The problem is after every setup:upgrade needs to have static content deploy…
SPK
  • 173
  • 3
  • 11
6
votes
5 answers

Cannot change locale language : Magento 2

When I open my .co.uk website, it says a lot of stuff in Dutch from the pack I installed. I want my German website to be German, Dutch to be Dutch and English to be English. Why it is not working? How can I fix this? I don't know from where to…
Axel Dekker
  • 403
  • 1
  • 5
  • 18
6
votes
1 answer

data-mage-init not loading js component

In a ko template (abc.html) I have the following
. I made sure that requirejs-config.js loaded the correct config 'a_script' : 'namespace/js/a_script' and that "a_script.js" file exists. At runtime,…
magento68
  • 167
  • 2
  • 10
6
votes
3 answers

How can I get SQL query from repository?

Lets asume that I have code like this: $searchCriteria = $this->searchCriteriaBuilder ->addFilter('increment_id', $incrementId, 'eq') ->create(); $orderList = $this->orderRepository ->getList($searchCriteria); Is it possible to see SQL…
Marceli Po
  • 285
  • 5
  • 15
6
votes
3 answers

Magento 2 REST API Update Single Customer Address

Does the Magento 2 REST API support updating a single customer address? This endpoint is incomplete: customerAddressRepositoryV1 GET /V1/customers/addresses/{addressId} DELETE /V1/addresses/{addressId} This endpoint allows adding/updating of…
Matthew
  • 960
  • 1
  • 9
  • 14
6
votes
1 answer

How to get customer email from javascript?

I need to get the customer email in homepage in a script. Googling around I find mentions of window.customerData variable, but is always undefined (perhaps removed in latest versions?) So at first I tried this: require([ …
Mir
  • 466
  • 6
  • 20
6
votes
2 answers

How to upload image file on product edit page in backend

I have added custom field-set to product edit page and trying to upload multiple (more than 8) images. To add custom field-set I have added layout file in my custom module - /view/adminhtml/layout/catalog_product_new.xml
HungryDB
  • 896
  • 2
  • 12
  • 37
6
votes
2 answers

Get product collection by category id on phtml file magento2

I want to get product collection by category id on phtml file. For that I used below code but it's not working. $collection = $this->productFactory->create() ->getCollection() ->addAttributeToSelect('*') ->addCategoriesFilter(['eq' => 2]); I also…
Dhaval
  • 1,685
  • 9
  • 26
  • 46
1
2 3
28 29