Questions tagged [magento2.1.6]

Denotes questions related to Magento CE and EE 2.1.6

Filter by
Sorted by
Tagged with
8
votes
1answer
1k views

Magento 2 Core Bug found in all 2.1.x, 2.2

Steps to reproduce Go to Reports -> By Customers Enter customer name in search box Click on search It will show Fatal Error: Column not found: 1054 Unknown column 'customer_name' in 'where ...
7
votes
1answer
3k views

Magento 2 custom module override knockout template

How can we override a knockout template in a custom module? I know how we can do this in our own theme but I need this in a module. For example I like to override this file: vendor/magento/module-...
6
votes
3answers
2k views

Magento 2: When/Why to do customer:hash:upgrade?

When I run below command, it gives below output. $ php bin/magento customer:hash:upgrade . Finished What actually this command do? When I have to run this command? What changes it will do? Will ...
5
votes
3answers
4k views

Magento2 : How to install patch CE-MAGETWO-67805.patch

Today CE-MAGETWO-67805.patch patch has released by Magento for resolve Image Resize Issue with Magento version 2.1.6 Image Resize Issue with Magento version 2.1.6 How can I install the patch? I can'...
5
votes
2answers
4k views

Magento 2: Before Place Order Give Error Message

I need to put my custom validation before place order. magento\app\code\Custom\Module\etc\events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
5
votes
1answer
671 views

Change images as per Swatches using Custom Slider on Product Detail page

I have created Custom Slick slider to display product images on Product detail page. But I want to change images as per change on color Swatches. Note : I'm using getGalleryImagesJson() to retrieve ...
4
votes
2answers
4k views

Magento 2 : How to make “lastname ” optional in customer registration form?

I need to make lastname optional in customer registration form.
4
votes
2answers
11k views

Magento 2: Unable to write file into directory. Access forbidden

After upgrading from 2.1.5 to 2.1.6 CE. I'm getting below error on Windows WAMP while saving product on Admin side. Unable to write file into directory \D:/wamp/www/magento/pub/media/catalog/...
4
votes
2answers
1k views

Remove Compare from Product List in Magento 2.1.6 [duplicate]

I need to delete the compare button from product list but I don't know how to to do it in Magento 2.1.6. Under [vendor]/[theme]/Magento_Catalog/templates/product/ I deleted the following in list....
4
votes
0answers
370 views

Magento 2 : Can We Convert Price Into Ceil Price

I have setup multi store view with multiple currency. Everything is working as expected. Now, I got requirement to convert all prices into ceil. (e.g, SR20.02 = SR21). For this task, I have ...
3
votes
4answers
3k views

Quantity increment button

I have configured a product with the "Qty increments" (100) / and " Minimum Qty Allowed in Shopping Cart" (100). When I go to the product page, the quantity is 100 by default but when I click on "+", ...
3
votes
3answers
3k views

How get custom Table Data in phtml file without creating Model file. Magento 2

I created custom table in my database through phpmyadmin, now I want display top1 record from that table on home page, and top2,top3 records need to display in product details page.
3
votes
4answers
6k views

Magento 2: After Customer Login Get Cart Information?

Customer has already Items in Cart. He is logout. I'm using customer_login observer. It is correct? How to get customers all cart information after his successfull login? namespace Custom\Module\...
3
votes
2answers
1k views

Email notification for cancelled order

Hi is it also possible to get email notification for cancelled orders? Thanks
3
votes
2answers
4k views

Magento 2.1.6 Product Grid page count and record count issue when programmatically adding filter using different methods

I have tried several different methods to artificially add an extra filter to the product grid (Category page). There is an issue where after adding a filter to the product collection, the total ...
3
votes
3answers
3k views

Magento 2: Filter Field with Date Issue

I have below code $updatedAtFrom = date("Y-m-d",strtotime($updatedAt['orig_from'])); $updatedAtTo = date("Y-m-d",strtotime($updatedAt['orig_to'])); $this->getCollection()->addFieldToFilter('...
3
votes
1answer
690 views

Product image not showing in Category Page In Magento 2.1.6

I have installed Magento 2.1.6 and import products using csv, After import Products. I have did below services, But Product image not showing on Product list Page. its goes to 404. upgrade the ...
3
votes
2answers
58 views

Is there any way to change locale along with currency for admin in Magento2

I want to update the currency and the rates for admin based on the user for which locale is set. For eg., if the locale is French, the currency should be French, but if the user is logged in from US ...
2
votes
3answers
5k views

How to display configurable product swatches when product is Out of stock

I have a configurable products with few sizes, let's say : 123, 160, M, S, L, XL When I put products M and S on qty 0, which means it is out of stock, then sizes disappear form the swatches option. ...
2
votes
2answers
2k views

"Unable to load theme by specified key: '6

Im getting errors after I done a fresh install to magento 2.1.6 and relinked to old DB. Now when I select certain items in the menu it will throw this error. I went to DB and changed the theme ID over ...
2
votes
1answer
3k views

Magento 2.1.6 Unable to write file into directory \D:/XAMPP/htdocs/magento/pub/media/catalog/product\cache

The error message appears every time I upload image on a product. The complete message is: Unable to write file into directory \D:/XAMPP/htdocs/magento/pub/media/catalog/product\cache\...
2
votes
3answers
4k views

How to use Magento 2 API?

Trying to integrate magento 2.0 with a desktop application (i.e the desktop application should be able to create products & download orders) using the REST API. I am trying to make a 'POST' call ...
2
votes
1answer
33 views

Add a block to programmatically generated widget

I need to generate a widget block with upgradeData.php and assign a block to this widget how can I do this? Folowing is my code for widget generation: Setup/UpgradeData.php public function ...
2
votes
1answer
839 views

Magento 2 : Add to cart qty validation

In default Magento 2 Why "e" is allowed to be entered and no any other letters in Qty textbox, It should allow only numbers.
2
votes
3answers
652 views

What's new into the Magento 2.1.6?

Today I'm using the Magento CE 2.1.5, what'll be improved with this update? and what are the errors that I could have with this update?
2
votes
1answer
3k views

Magento2: Add JS from Admin CMS page Design “layout update XML”

I did added JS file from design layout update from Admin CMS page- > Design layout update XML , but it showing jQuery is not defined error, When I view source , these files are being added before the ...
2
votes
1answer
481 views

Magento 2.1.6 EE Admin Date Component not working

I have a custom form, created via Ui Component form holiday_form.xml and after searching how to create a date component, it gives me a JS error that a can't get to work, if i change to input format, ...
2
votes
1answer
304 views

Magento 2: Bug or developer mode issue

I am facing the issue with Magento ver. 2.1.6. When I am login still showing me log in when I click on cart checkout button. Refresh the browser solved the problem. Did anyone face the smiler ...
2
votes
0answers
119 views

magento 2.1.6 email template after save 404 not found

I am trying to create new email template with loading existing one By navigating Marketing => Email Template => Add New Templates and load "new invoice" email and without changes anything.After ...
2
votes
1answer
971 views

Magento2 : Review Tab Not showing in Product view Page (2-column layout)

Review tab is not shown when I change Catalog_Product_View from layout="1column" to layout="2columns-left". Need help on how can I fix... UPDATE: This is my catalog_product_view.xml file <?xml ...
2
votes
1answer
3k views

Magento 2 Elasticsearch: Root mapping definition has unsupported

I am trying to setup elasticsearch 2.4.5 on a internal server and trying to use this for my EE 2.1.6 setup (magento installed in my local version). Following are the ES details. { "name" : "The ...
2
votes
1answer
480 views

Unable to fetch css in magento2 after magento2 upgrade [duplicate]

I update my Magento 2.0.1 to 2.1.6 and it updates successfully. The problem is from frontside CSS are not working correctly but in admin side, it is working good. What i do to update magento is ...
2
votes
1answer
95 views

JS error with saving admin side form data

In the custom module with grid i am getting error as following : TypeError: $.data(...) is undefined in magento 2 admin form in tab It was working perfectly without tab and saving form data in ...
2
votes
1answer
171 views

Custom file attribute Rest Api

I'm using the Magento 2 rest API to read out the orders in to our system. If an order line product have a custom file option we want to download this file. From the order items we get the following ...
1
vote
6answers
5k views

Magento 2.1.6 Conflicting components dependencies

with a fresh install of Magento 2.1.6, I'm trying to install any compatible extension, and I always get this message below: Check Component Dependency We found conflicting component dependencies. ...
1
vote
2answers
1k views

Magento 2 - Product get id by sku - non existent product causes error

I am writing a module that takes a users input of product SKU (via a form) and then adds to the cart. The issue I'm having is that when I am testing by using a non existent SKU the exception that is ...
1
vote
2answers
1k views

magento Plugin is not working on CollectRates method shipping method class

Target: Using plugin before method, want to changes some behavior of method collectRates(RateRequest $request) of Magento\OfflineShipping\Model\Carrier\Freeshipping Issue: Getting 500 Internal ...
1
vote
1answer
310 views

How to add a color picker in magento 2.1.7 system config?

I am trying to add a color picker in magento 2.1.7 using below link but it's not going to work anyone tell me that how to add color picker in magento 2.1.7 https://webkul.com/blog/add-color-picker-...
1
vote
2answers
1k views

Magento 2: Collection Query addFieldToFilter Loop Issue

I have below code $_objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $orderRepository = $objectManager->get('\Magento\Sales\Api\OrderRepositoryInterface'); $customModel = $...
1
vote
1answer
49 views

How to make my module available in github (via composer.json) in magento 2

I wish to make my module available in github repository and then i wish to install it to my local using composer.json. How is this possible? Please provide me a solution, to install my module using ...
1
vote
1answer
2k views

Magento 2 Swatches issue

I have created a configurable product with multiple options. When clicking on swatches only the first product swatch image was getting displayed but when we click on the other swatches then also the ...
1
vote
3answers
1k views

How can I create a new order state in my module on Magento 2?

I'd like to create a new order state like processing, complete and etc.. Using my custom module (without using the admin panel). How can I do that? Thanks
1
vote
1answer
989 views

Product images missing on category page

I have a problem with product images. Although they're displaying correctly in the admin panel and on product page, for some reason they fail to load on category page. It looks like Magento can't ...
1
vote
4answers
2k views

Save button on product page does not work in Magento 2.1.6

New products and even existing products that are opened to be modified could not be saved in Magento 2.1.6. There is not JS error thrown, the Save button just does nothing. No request goes out on the ...
1
vote
1answer
687 views

Query Magento2 database to find all SKUs without managed stock set to yes

Is there a database query that I can run against my Magento 2.1.6 database to find all SKUs that have Manage Stock set to No. I need to have ALL products set to Yes and Use Default checkbox ticked. ...
1
vote
3answers
1k views

Magento 2: Swatch image upload not working due to js error

I am working on magento 2 and when i try to upload a swatch attribute image but each time i get the below error. Please check the below screenshot. I debug code more and found that image path error. ...
1
vote
1answer
106 views

How do I connect a Magento database and a cloned repository on my local machine?

I am working with a magento 2 build via a repository clone. I have the dumped sql database from the repository build. I imported the sql into my localhost DB, how do I connect them so that a local ...
1
vote
1answer
201 views

Setting of custom filter for customer and order grid in Admin

we have more than 3000 customers on site and we need to to display particular records. I am setting the custom count under per page drop down but it will take 999 max, how can i make it custom filter ...
1
vote
1answer
891 views

custom shipping address date field validation

I've added a custom field to the shipping address in checkout: $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children'] ['shippingAddress']['children']...
1
vote
1answer
412 views

I need to apply a filter in Region loader in Magento 2.1

I wish to apply a filter on the states being loaded anywhere on the website. So far I have got to know that the toOptionArray() function of Magento\Directory\Model\ResourceModel\Region\Collection ...