Questions tagged [magento2.1.6]

Denotes questions related to Magento CE and EE 2.1.6

Filter by
Sorted by
Tagged with
0
votes
1answer
173 views

Magento 2 not able to override Magento\Sales\Block\Order\Email\Items\DefaultItems.php file

I am trying to override this file :- Vendor/Module/Block/Order/Email/Items i call this file in my di.xml Here is xml code Vendor/Module/etc/di.xml <?xml version="1.0"?> <config ...
1
vote
1answer
37 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 ...
0
votes
0answers
33 views

Magento 2.1.6 - 'Unable to Get Content' Error During Static Resource Deployment

I am running into an issue with deploying static resources. When doing so, I see an unable to get content for and a path to a .less file. This happens multiple times in the course of the deployment ...
0
votes
0answers
245 views

Magento 2: Get Payment Information in checkout_submit_all_after event observer

I have need to get Payment information in checkout_submit_all_after event observer. File path: magento/app/code/Vendor/Module/etc/events/xml <event name="checkout_submit_all_after"> <...
0
votes
0answers
22 views

Magento Can't generate cache folder for catalog product

there is issue with catalog product images on server. I have uploaded image for newly created product but it doesn't show up on frontend. I checked path at pub/media/catalog/product/cache but there ...
0
votes
1answer
516 views

“No alive nodes found in your cluster” error in magento 2.1.6 after elasticsearch

Every time I save a new product I get that error "No alive nodes found in your cluster" My version of magento is 2.1.6 and the problem appeared after installing the elasticsearch module What ...
0
votes
0answers
56 views

Magento 2: Some of the Products image disappear in list page

I am working in Magento ver. 2.1.6 facing the issue in thumbnail images disappears in list page for some of the products. And showing placeholder image instead of the product image. But that disappear ...
1
vote
0answers
80 views

Can you rename product image filename via Rest Api?

I'm trying to rename product image via rest API. So far I got the error Cannot save product on PUT /V1/products/{sku}/media/{entryId} Here is roughly the last thing i tried { "entry": { "...
3
votes
2answers
647 views

Email notification for cancelled order

Hi is it also possible to get email notification for cancelled orders? Thanks
1
vote
1answer
23 views

Emails not being sent when new orders are placed

This is what I've done so far - I've already configured the store's sales email to the correct email addresses - Test smtp (send test email) My mailgun configuration works properly. Email were ...
1
vote
1answer
235 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. ...
0
votes
1answer
50 views

I have to make new module in magento 2 but pub/static are changed

I have to make new module, I took backup from server to local and after executing commend "php bin/magento setup:upgrade" layout and function not working properly, It seem like someone worked in pub/...
0
votes
1answer
167 views

Magento 2 - How to display the quantity of each product in cart under the add to cart button in the product tile

I want to display the quantity of each product in cart under the add to cart button in the product tile. How can we achieve that. I want to display the quantity of product in cart like the above ...
3
votes
2answers
47 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 ...
0
votes
1answer
509 views

Magento 2 : How to Load Image Collection in Category Listing Page

Need to Image gallery collection load to following path in magento 2.1.6 category listing page , \vendor\magento\module-catalog\view\frontend\templates\product\image_with_borders.phtml ( Or ) app\...
0
votes
1answer
221 views

Magento 2.1.6 to 2.1.7 Upgrade Issues Or Latest version

I am using following commands Magento upgrade 2.1.6 to 2.1.7 and also 2.1.9 I am getting error below command run via putty, composer require magento/product-community-edition 2.1.7 composer ...
0
votes
0answers
354 views

Redirect to correct store view by customer browser language

I've added this code to the index.php: $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); switch ($lang) { case "it": session_start(); $_SESSION['first'] = "si"; $...
0
votes
2answers
2k views

Magento 2 change store view

I'm trying this script to detect browser language and redirect to Italian store view if the language is Italian or English store view if the language is not Italian. The country code is correctly ...
0
votes
2answers
601 views

Magento 2 has stopped showing related products on front end product page

Our related products are not showing on the front end no longer. They did and looked good however it does not work no more. Can anyone help?
0
votes
2answers
217 views

Why is the collect-phrases cli command not working at all?

According to the Magento documentation, I should be able to create a translation csv file by calling bin/magento i18n:collect-phrases command. I have tried all variations of the following bin/magento ...
1
vote
2answers
3k 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
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 ...
1
vote
1answer
190 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
0answers
46 views

Hide COD and Check/Money order for specific shipping methods

Please advise how to use the current solution in order to hide the COD and also the Check/Money Order for some shipping methods? Magento 2.1.6 CE Previous question relative to this one
1
vote
3answers
863 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
0answers
19 views

How to print the TAX or GST of products seperately with tax rates

I need to print the tax rates of different products separately.Currently i could get the total tax when i'm placing order.I had already changed Tax Calculation Method Based On unit prize in ...
0
votes
1answer
56 views

How to print different tax rates in magento 2.1.6

I need to print different tax rates of Product Tax Class in Order Summary,order confirmation mail ,invoice..etc For example there are two type of tax rates in India Igst,Sgst .I need to print both ...
0
votes
1answer
29 views

Cron.php file script not woking in Magento 2.1.6

I had created cron.php file in my project and added the script.This is the code inside the file and setup cron job once per 5 minutes successfully even I got mail notifications too. /usr/local/bin/...
2
votes
1answer
467 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, ...
0
votes
1answer
58 views

Rewrite Model and Interface not working for newly added methods

I want to add country name in the address list of customers/me rest api. I have tried adding my changes in core files and I got the desired result. But when I try to rewrite, it doesn't work. Can ...
0
votes
1answer
528 views

How to setup a Cron to send newsletter?

Please help me to setup a cron job to send newsletter in magento 2.1.6. Currently i'm not able to send newsletters to the subscribers. So i need to setup Cron job and check it out. Thanks
1
vote
0answers
35 views

Newsletter mail is not been sending to subscribers in Magento 2.1.6

I'm using magento 2.1.6 .The Newsletter mail is not been sending to subscribers. Have successfully added template to the queue.But the mail is not been sent to the subscribers even after the Queue ...
1
vote
1answer
66 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 ...
0
votes
1answer
325 views

Magento 2.1.6 minicart not updating and Checkout page always empty

Please I need some help with my magento 2.1.6 store. My AJAX minicart does not update when I add a product to the cart but the product actually reflects when I go directly to the cart page. When I ...
0
votes
1answer
219 views

Can't modify style in custom theme using Grunt

I have custom theme Hiddentechies/bentriz theme.js bentriz: { area: 'frontend', name: 'Hiddentechies/bentriz', locale: 'ja_JP', files: [ 'css/source/custom', 'css/source/...
0
votes
1answer
261 views

Get custom attribute in final price method

I would like to add a custom attribute (bum) in the final_price.phtml file. I put this code: It doesn't work, nothing appears. Can you help me please? When I tried, <?php echo $_product->...
1
vote
1answer
1k 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 ...
8
votes
1answer
909 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 ...
2
votes
0answers
93 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 ...
1
vote
1answer
496 views

Web Setup Wizard Error

In the admin panel, the normal Web Setup Wizard page is not showing. But there is no error in the front end. What might be the cause of this?
0
votes
1answer
369 views

Write custom attribute on final_price.phtml

I would like to get a custom attribute "bum" (base unit of measure) on the page "final_price.phtml". Do you know if it's possible to add a custom attribute after the price to something like this: ...
0
votes
1answer
75 views

Magento 2: How to get specific product attribute on the product page?

I need to display a specific product attribute value.
1
vote
0answers
321 views

How to add Price / Base Unit of Measure

Could you help me to add the "Base Unit of Measure" after the price, like this "$2.35 / YDS".
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....
0
votes
1answer
144 views

Incorrect dependency in class & \Magento\Framework\View\Asset\Repository already exists error in context object How to solve it?

<?php namespace Identixweb\Requestquote\Block\Requestquote; use Identixweb\Requestquote\Block\BaseBlock; class Quote extends \Magento\Framework\View\Element\Template { protected $...
0
votes
1answer
901 views

get Qty Increments

Do you know how I can get the "Qty Increments" on the product page? Product page back end: Code 'addtocart.phtml': With this code, I have a blank field. Thanks in advance.
0
votes
1answer
70 views

Order of attributes on the product page

I found how add my custom attribute "dispname" on the product page but I would like to put it above the attribute "name". Can you help me? catalog_product_view.xml : Product page :
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 "+", ...
1
vote
2answers
899 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 ...
0
votes
1answer
96 views

Custom attribute - Product page

I created a custom attribute dispname and I would like to add it under the name on the product page. I tried to change the xml file catalog_product_view.xml but it doesn't work. I can add it in the ...