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
46 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
17 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 ...
1
vote
1answer
852 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
1answer
21 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
40 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
18 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
14 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
30 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
24 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
46 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
70 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
14 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
37 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
34 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
39 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
33 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
43 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
68 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-...
4
votes
3answers
572 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
21 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
19 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
108 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
12 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
28 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
18 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
23 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
46 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 ...
0
votes
1answer
35 views

Lazy loading in Cart page

How to implement lazy loading in checkout cart page ?
1
vote
2answers
41 views

For what there is the sales.xml file?

For what there is the sales.xml file? In the documentation, I can not find anything about this file.
0
votes
0answers
11 views

Hide Column using php Class

I am having column created using UI component. Now i want this column to be hidden when certain condition is matched. <column name="qty" class="Vendor\Model\Ui\Component\Listing\Column\Temp"> ...
0
votes
0answers
15 views

Set inline edit disable for certain row

I have created Inline editing in list using ui component. The Inline editing works fine. Now i want to disable certain row base on some condition. How can i do it?
0
votes
0answers
12 views

Magento2 sales_shipment_grid problem

I just truncated sales_shipment_grid, but want to know that how can regenerate it. Means that have all data on sales_shipment yet but there is nothing on sales_shipment_grid and this table is empty. ...
0
votes
0answers
15 views

Inline edited catch response in javascript

When making any changes in inline edit and save. The controller which is called on the save button is passing some content to the ajax call. I want need to get that data in javascript how can i do ...
-1
votes
0answers
13 views

Magento 2 Related Products Rule error during reindex

I'm trying to create a Related Products Rule in Magento Commerce 2.1.7 with the following settings: Using the settings above, I had no problem saving the rule, however, when I started to Reindex, I ...
-1
votes
0answers
13 views

Products missing from categories after reindexing/deploying static content

I am currently running Magento open source 2.1.10 and have been having problems getting products showing in their respective categories. I was initially in Production mode but while I have been ...
0
votes
0answers
35 views

How to display custom attributes on customer dashboard magento2

I am using Magento 2.1 and I have created one custom attributes named Landlord using below code in installdata.php file $customerSetup->addAttribute(\Magento\Customer\Model\Customer::ENTITY, '...
0
votes
0answers
67 views

How to change sort order of image gallery in Magento 2?

i'm using magento 2 defualt image gallery. I'm trying to change to sort order of image. I need this active image to come first in the left image sidebar. public function getGalleryImagesJson() {...
0
votes
0answers
34 views

How to increase/decrease space in thumbnail images on Product Page (catalog-product-view) Magento

I am trying to increase/decrease spacing of thumbnail images on (Product Detail Page) but didn't get any proper solution. Please let me know if there is any option available in magento 2.
0
votes
0answers
21 views

Magento 2.1 option value always select as No in admin panel

I am using amitshree account approval module in magento 2.1. See below link: https://github.com/amitshree/magento2-account-approval Module working properly but in admin panel even after approve ...
0
votes
0answers
27 views

How to display my custom price instead of product price for product detail page in magento2

I have created functionality for saved my custom price for every product from back-end, I have created duplicate of tier price that is (my tier price)functionality. both are working that means i ...
0
votes
2answers
21 views

Order saving error: Class Namespace\Module\Observer\OrderCancelled does not exist

I have an extension installed on my store which sends a notification when new orders are placed, canceled, hold, unhold etc. When I am saving the order, I get an error saying Order saving error: ...
0
votes
0answers
22 views

How to show Currency symbol as a prefix on Amount in order email template in Magento-2.1?

In Order Email Template we used var order.getTotal,var order.getSubTotal,When we used this variable currency symbol is not showing.How to show it Plz guide me. This is screenshot where i want ...
0
votes
1answer
54 views

Magento 2 - How to create a shipping carrier?

I am trying to create a new shipping carrier in just like DHL, FEDX, UPS. I am taking a reference of Magento_DHL module. Can any one tell the required code needed to create a shipping carrier. Thank ...
0
votes
0answers
26 views

Magento 2: How to meddle, customize the JSON.parse item.options from cart item on checkout cart

So basically each item inside JSON.parse($parent.options) should have value and label, [{'label':'foo','value':'bar'}] I need to add in this json_encoded a field key something like [{'label':'foo','...
0
votes
0answers
16 views

What are TYPE_ORDER and TYPE_PAYMENT transactions?

\Magento\Sales\Api\Data\TransactionInterface has several transaction types. While I do understand the association between authorization, capture, void and refund with the payment methods' commands, it'...
0
votes
2answers
50 views

how to check if product has a shopping cart rule or not in magento 2

I have tried these $currentDate = $this->_stdTimezone->date()->format('Y-m-d'); $rules = $this->collection->create() ->addFieldToFilter('is_active', ...
0
votes
2answers
46 views

One step checkout state field required issue

i am using mageplaza one step checkout and state field is not showing as required field nor the javascript validation working on that field. I am newbie in Magento 2 i don't know too much about the ...
0
votes
1answer
28 views

How to integrate couriers service in Magento 2? [closed]

I want to integrate a courier service like Fedex/Bluedart in Magento 2.