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 [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

0
votes
1answer
14 views

Magento 2: get all values of an EAV

I have defined a custom attribute for my products, and now would like to get a list of all values I have entered for this attribute, not for a specific product, but in general. It is a text field, it ...
0
votes
0answers
15 views

My custom module working fine in Magento 2 all version (2.1 to 2.3) expected 2.0 anyone has any idea?

PHP version 5.6 Error: "There has been an error processing your request"; I have checked the error log but it not show me any error. I have also cleared cache using below command: php bin/magento ...
0
votes
0answers
19 views

How to Add quantity box in Magento 2.1 product page

I want Add To Cart with one sku with multiple size and Quantity. if I select Size M then I can add qty 1 or more
0
votes
0answers
10 views

Magento 2.1.16 theme fallback not working on NGINX server

Thank you for the help. I already did it and it worked a bit. But there were other sections of the theme which were broken. Finally, after spending some more issue, I found that after upgrade to ...
0
votes
0answers
13 views

Magento 2 API authorisation error

I am trying to get API for product attributes. http://mysite/elec/rest/V1/products/attributes?&searchCriteria[filterGroups][0][filters][0][field]=attribute_code&searchCriteria[filterGroups][...
0
votes
0answers
14 views

Access Magento Admin on Subdomain

I have a running store on Magento 2 which has multiple websites that I can access in the front end without any problems, for example: https://siteone.mymagestore.com https://sitetwo.mymagestore.com ...
0
votes
1answer
44 views

Magento 2 less compilation error while setup:static-content:deploy

After updating to Magento 2.1.16 on my staging server with nginx server and php7.0 I am facing issue in compiling less and css files. The files styles-l.css and styles-m.css are missing - not ...
0
votes
1answer
23 views

Update quantity showing error in magento 2.1

I update my shopping cart but it showing me fatal error: Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Framework\Exception\InputException::__construct() must be an instance of ...
0
votes
0answers
16 views

M2 display grouped products thumbnails in gallery images

Magento 2.1.10. I would like to display associated products thumbnails in my grouped product page. In my product page layout, I'm using the gallery.phtml with fotorama to get product images, and I ...
0
votes
1answer
26 views

Magento 2 products bulk import is should come to child categories is same or not?

magento 2 in using producs bulk import if child categories same or not? I have below attached my excel files IRW4205 SW Flat Bits simple Default Category/Tools,Default Category/Tools/Drill ...
0
votes
0answers
12 views

How can we make purchase order optional in magento 2.1?

Is there a way to make the purchase order number in the checkout page optional? without filling purchase order number text field, I want to place an order.
0
votes
0answers
12 views

how to upload pdf file for product and show download product link on product details page in magento 2

I want add upload file attribute for product and upload file from backend and show link on frontend for download pdf or uploaded file
0
votes
0answers
25 views

Magento 2 - How to use Datetime format for special price from / to fields?

Magento 2 - How can we use Datetime format instead of Date format in Products -> Advanced Pricing -> Special Price From & To fields ? I have managed to display Datetime picker instead of Date ...
0
votes
2answers
16 views

How to override fotorama.js Magento ver. 2.2.5

Is there a way to remove the product name below the product image on the product detail page? How to override fotorama.js? Thanks, JM
0
votes
0answers
6 views

Issue with Cart detail page order total with Magento 2.1.7 core

The order total adds shipment in cart detail page if I return back from checkout payment. On adding a product to cart and viewing for the first time without going to checkout payment the shipment ...
0
votes
1answer
11 views

Magento 2.1.1 import products only

suddenly all products disappeared from the magento catalog. I have a backup of the database on a daily basis. How can I import only catalog/category data from the dump or just import everything ...
0
votes
1answer
30 views

Magento 2.1 redirects in Observer after payment

I'm creating a payment method gateway, that requires after place order in the frontend, redirects to the custom controller that I've created. I created an observer sales_order_payment_place_end to ...
1
vote
2answers
18 views

Magento 2.1.12 - all products not showing up categories and search results frontend

Since this weekend one of our Magento stores stopped displaying products on all category pages and the search results page. We have tried everything from reindexing all products, deleting the var ...
0
votes
0answers
26 views

magento2 swatch attributes

How to show swatch images on the info tab in the product page? by default, magento2 shows the value of swatches in the info tab on the product page and shows swatch images on top of product for ...
0
votes
1answer
13 views

Magento 2.1 adjusting memory_limit on shared hosting

I have Magento 2.1.3 setup on Godaddy shared hosting and after much struggling around with php.ini files, the web host has decided that Magento is showing the global memory limit (512MB) on the server ...
0
votes
1answer
80 views

Magento 2.2.7 admin panel blank page

After successful installation when i run the admin url it's giving me this. I'm not sure what's happening. So if anyone have any solution for this it will be great help.
0
votes
0answers
23 views

How to increase the speed my site magento 2.1.9

Please suggest.how to increase the speed my site magento 2.1.9.My site is very slow and reloading some times.
0
votes
1answer
18 views

How to get configurable product's custom attribute's values or value by attribute id in Magento 2?

I tried to get it but i just getting label and options but not get selected value.
0
votes
1answer
36 views

How to display product attributes on products page magento 2.1

Please see attached screenshot: [![enter image description here][1]][1] I created one custom product attributes ETA_DATE and I want to display same as attached image. How to display this attribute on ...
0
votes
0answers
13 views

Installed magento 2.1 on windows but it is is giving many require js errors

I have installed Magento 2.1 from web wizard installation but after installation It is giving require js errors and admin page is showing blank screen. I tried deleting pub/static and var and then ...
0
votes
0answers
10 views

Magento 2: Set Additional options for grouped products

I am trying to add additional information on grouped products, but I am not getting results. I use following code which is working properly for other products but not working on grouped products. ...
0
votes
0answers
24 views

Add custom product attributes as prefill mask for meta fields

I want to add custom product attributes to the prefill for the SEO Meta attributes. In Stores - Configuration - Catalog - Catalog - Product Fields Auto-Generation, you can set masks for the Meta ...
0
votes
0answers
21 views

How to show quote_id in response of /carts/mine/totals API in magento-2.1?

I want to show quote_id in response of /carts/mine/totals API in magento-2.1. Anybody guide me.
1
vote
0answers
22 views

Class “String” does not exist swagger magento 2

I am working with swagger api but when hit this url :- http://localhost/magentosetup/swagger I get the error when I am trying to use api please help. :- 500 : {"message":"Class \"String\" does ...
2
votes
2answers
35 views

Magento 2 swagger-ui error

I trying this url http://192.168.1.67/isac/swagger but I got this error below 500 : {"message":"Internal Error. Details are available in Magento log file. Report ID: webapi-5bfe5e3ac4100"} http:...
0
votes
0answers
13 views

Magento 2 : Cart Price Rules buy minimum 6 different color out of 8 color then get discount?

I try to set cart price rules to fit my requirement. my requirement are: "buy minimum 6 different color out of 8 color and quantity equal or greater than 12 then get 20% discount " Example: I ...
2
votes
1answer
27 views

where to find Magento 2 API docs?

Finally I found out the magento 2 api endpoint for all products as below rest/V1/products?searchCriteria[pageSize]=20 but I need more detailed docs about api endpoints which I coudn't find out yet. ...
0
votes
0answers
27 views

Magento 2 add row total column in simple grid

I have created Simple custom grid without use of UI Component. now, i need to display total end of the columns. anyone know how we can add total in custom grid??
1
vote
1answer
26 views

Magento 2: How to stop event/observer if another already ran

I have 2 events running if subscribe to newsletter is checked on the checkout page. sales_model_service_quote_submit_success newsletter_subscriber_save_after Can i prevent event #2 from happening if ...
0
votes
1answer
27 views

M2| How to put button on sales order information page

I want to add a button with email address. I can add buttons on places like this. Can any body help me to figure out how to do this on the specific point. Any help should be highly appreciated.
0
votes
0answers
24 views

How to solve this Fatal error: Interface 'Magento\Framework\Event\ObserverInterface' not found in magento 2.1?

When I go to Magento admin,it shows fatal error. This is the screenshot of my error Please guide me how to get rid of this.
0
votes
2answers
56 views

Magento 2 - How does the remove wishlist button work?

I am wondering how does the remove wishlist button work? i have checked the code, and there is no form tag around it. How can it post to the remove item controller in vendor/magento/module-...
3
votes
3answers
562 views

What type of redirect is this?

While i'm studying a line of code in magento vendor file I found this code $resultRedirect->setPath('*/*/'); What does this '*/*/' means and where does this redirects. I hope will get ...
0
votes
0answers
15 views

How to create widget programmatically in magento 2.x.x?

I have some widget in custom theme and that theme should be imported automatically. -> after click on import button all the required widget, blocks and pages will be installed in back end. I had ...
0
votes
0answers
29 views

custom attribute save is not working during regsitration

I have created custom attribute, and i'm displaying those attribute in registration page. When user clicks on create an account i get values for custom attribute from post value. But when i tried to ...
0
votes
0answers
16 views

How to show my custom price for product detail in magento2

I have created functionality for saved mycustom price for each product same as price. Now I want show mycustom price for product detail page and also want mycustom not empty then I want show mycustom ...
0
votes
0answers
15 views

Magento 2: How to change the custom filter price in navigation filter?

I have trying to change this code but I can’t do this ?? please tell me how to change custom price in this types??
1
vote
2answers
100 views

Passing magento username and email variables into js script (Magento ver. 2.1.8)

<!-- Head --> <script src="https://wchat.freshchat.com/js/widget.js"></script> <!-- Head --> <script> window.fcWidget.init({ token: "WEB_CHAT_TOKEN", host: "...
0
votes
0answers
8 views

How to change filter values in magento 2 layered navigation?

I am trying to change the values of magento2 layered navigation. this below image is now current values. But I need the values to be like i. R0-R99 ii. R100-R499 iii. R500-R999 iv. ...
0
votes
1answer
25 views

Magento 2 - Add additional text before attribute

I use this code to display brand attribute value in the product view page: <referenceContainer name="product.info.main"> <block class="Magento\Catalog\Block\Product\View\Description" ...
0
votes
0answers
17 views

How to Change Price of bundle product option in cart in magento-2.1?

I want to set bundle option price in the cart by getting through options custom attribute. Suppose one option is the fabric of bundle product, this fabric has some custom attribute like twopiece,...
0
votes
0answers
24 views

Magento 2: Bank transfer's Instruction isn't showing up in email template

For the specific need in my site that use Magento 2.1.10, I disabled new order email (order_new.html), and use order comment email (order_update.html) to inform the order to customer. So, I replaced ...
0
votes
0answers
20 views

Transactional Emails: Plugins giving issue for any var {{ }}

I may be looking for a plugin override to accomplish what I am looking for. For example, in the order_new.html email template there is this variable: {{var order.getShippingDescription()}} The ...
0
votes
0answers
13 views

Display only selected brand in fronted for new customer registration page magento 2.1

I created custom attributes Brand with multi select option and I display Brand on registration page but I want If customer select only one brand then they can see only that brand in fronted instead of ...
0
votes
2answers
38 views

why this error is showing “We can't add this item to your shopping cart right now.” during add bundle product in cart in Magento 2.1?

I will change price of simple product in cart through observer,it will change successfully.This product is also part of bundle product.When we add this product in cart it display error We can't add ...