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

3
votes
1answer
96 views

Magento2 rest api add customer token in create customer api

i am using magento 2.1.1 php version 7.0 this is my payload and response. i want to add customer token in the response and i am using following magento 2 api : http://host/index.php/rest/default/V1/...
-1
votes
0answers
17 views

How to enable UPS shipping methods magento 2

I am trying to access Magento 2.1 shipping methods like UPS - Ground and Air but it is not showing on frontend. Please suggest me, what is the issue, Why its not showing in list.
0
votes
1answer
23 views

Products can not be added to cart by click “Add to cart” for second time

I have Related products block in my product description page. I have configured a particular product's Minimum Qty = 5. So users can only buy products in multiples of 5. Below is the screenshot of ...
0
votes
2answers
31 views

How to install extensions on Magento 2

I am trying to install an extension for my Magento store. My version of is Magento ver. 2.1.15. Now when i install the extension, it is not visible at Stores->Configuration->Advanced->Advanced This ...
0
votes
2answers
47 views

Two of Magento 2 indexers not running on a scheduled cron

Product categories and Catalog product rule indexes are not running on a scheduled cron. Is this normal?
0
votes
0answers
13 views

How to manage order status/state in observer?

I have a custom shipping method. I am doing some tasks in one event-observer when the order is placed. I need to change the order status (maybe also the order state) if my tasks have failed. It is, ...
0
votes
1answer
28 views

How to display categories and subcategories in layered navigation magento2?

These are Categories List in admin: If I click Shop then I want to display categories and sub-categories in layered navigation filter. How can I achieve this functionality?
0
votes
0answers
16 views

Magento 2: Add Buy now button (or any button) in the search autocomplete suggestions

I am using Mirasvit Spihnix search in Magento 2.1.8. I want to add a button to the search autocomplete suggestions. As in picture below:
0
votes
1answer
27 views

Show category description in top menu Magento 2.1

i'm trying to show the categories in the top menu with the corresponding category description but can't find any function for that. With the object manager i can get the id, name etc. but not the ...
0
votes
0answers
145 views

knockout-js-uncaught-typeerror-unable-to-process-binding-isloading-is-not-defined

I am working on one step checkout, i searched but unable to find its solution, shipping address is not loading properly and console shows this error Uncaught ReferenceError: Unable to process ...
1
vote
0answers
23 views

Cancellation of Magento Enterprise

Does anyone have experience with cancellation of Magento Enterprise? I notified them of our plan to cancel the service about 15 days prior to our renewal date instead of more than 30 days in advance. ...
0
votes
1answer
40 views

override Magento\Sales\Controller\Adminhtml\Order\Create\Save.php file

How to override Magento\Sales\Controller\Adminhtml\Order\Create\Save.php the file can you please help me out?
0
votes
1answer
48 views

magento 2 dynamic value not comes in custom email template

I am trying to send dynamic value in my custom email template. I can send email with my custom template, but dynamic value not able to pass in that email. Here is my code for send email $...
0
votes
1answer
47 views

What is BlueFoot in Magento2?

What is bluefoot in Magento2 enterprise edition and how to use this. Please suggest me how we can customize element.
1
vote
1answer
37 views

What is Extension Attribute in Magento2?

What is Extension Attribute in Magento2? Why use this.
0
votes
1answer
64 views

Error message display using js in backend

I want to display an error message on the form/listing in magento 2 back-end. I know how to show those message using a controller. But how can i achieve same with JavaScript.
0
votes
0answers
15 views

Magento 2: How to Add SAMPLE Order to Cart?

I want to allow customers to order for sample of any products, How to do this..? I have searched and found many paid extensions available But,How can it be customize with custom module or any free ...
0
votes
1answer
34 views

I want to change condition of zero subtotal checkout payment method in magento-2.1?

I have Grand total value is 0.5.If grandtotal price is less than 1,we placed order by free payment method.How it can achieve in Magento-2.1?
0
votes
1answer
27 views

Difference between updating Magento 2.1.x to latest 2.1.15 & 2.2.6

I see that Magento 2 updates are simultaneously released in both a 2.1.x format and a 2.2.x format. I currently have a Magento 2.1.x running, but I wonder wether I should aim to update to the newest ...
0
votes
0answers
72 views

Disable inline edit in ui listing

I have created a custom module where i add data. This data is displayed on the grid. On the grid i have enable inline editing. Now i want to disable this inline editing only when certain condition is ...
1
vote
2answers
60 views

Add event after user add the product to cart to update quantity

I am beginner in magento 2 and I am trying to create an event and observer that will update the qty of item to 2 from default which is 1 when user add the item to cart. For this I successfully created ...
0
votes
0answers
10 views

While creating an invoice throwing “Sorry, but something went wrong” error in Magento 2.1

I am unable to find solution that while creating an invoice from admin after a hit "Submit Invoice" the below error is throwing "Sorry, but something went wrong". How to figure it? Can anyone please ...
-1
votes
0answers
37 views

How to Show Category Filter In Layered Navigation?

I am using Magento 2.1 I want to show Category Filter in Left Sidebar. please see attached image: After Size I want to display category filter.
1
vote
1answer
54 views

Magento 2 Route.xml File not working

Hello I created a simple module Wow_Page to create a Hello world page using route.xml with the help of magento 2 devdocs. But when i type the route in the url it is showing 404 error page not found. ...
2
votes
4answers
216 views

Magento 2 : How to get postcode from selected shipping addresses in checkout page?

How we can get the value of postcode from selected shipping addresses on checkout page if a customer has multiple addresses?
0
votes
1answer
135 views

How do I configure a Cart Rule for Free Shipping in Magento 2?

I'm using Magento 2.1.7. Trying to figure out a simple Cart Rule for Free Shipping using a Specific coupon code: Specific Code No conditions Actions: Apply - Fixed amount discount for whole cart ...
-1
votes
0answers
41 views

Magento 2 jQuery Works in Internet Explorer but not on Firefox and Chrome

Basically title says it all, running jQuery and it works just fine on Internet Explorer but on Chrome and Firefox I'm having no luck. Running Magento 2.1.7 Script: <script> require([ '...
1
vote
1answer
44 views

Disable/Remove Sunday and it related date from calendar

I want to disable/remove Sunday from js calendar and its related dates also. Can somebody tell me how can I achieve this? I search from google but all says to hide weekend, I just want to hide only ...
0
votes
0answers
43 views

How can I send invoice PDF attached to the shipment email in Magento 2?

I need to attach the invoice pdf in the shipment email. How can I implement this?
0
votes
0answers
8 views

How can I get the bundle price for a specific store view during a BeforeSave event

I am having trouble retrieving the correct price for a bundle product, in an observer on catalog_product_save_before when I have changed the price via admin for a specific store view. Bundle setup: ...
0
votes
2answers
21 views

Magento 2: Cron configuration error?

Every time the cron runs it logs this error: [Magento\Framework\Exception\LocalizedException] Invalid Document Element 'group': Missing child element(s). Expected is ( job ). Line: 24 cron:run [-...
0
votes
0answers
23 views

Magento2 Filter configurable product and sort by qty

In magento 2 I want to short configurable product by qty and use filter on parent product attribute. Eg. Parent name product1. It's child product name is child product1 Now product1 (configurable ...
1
vote
1answer
38 views

Get all websites, stores and store views in admin multi-select dropdown

I want to retrieve all stores and store views for a given website id. The data is to be shown as a hierarchy in multi select dropdown in the admin form. I tried using \Magento\Store\Model\...
0
votes
0answers
14 views

Tax issue with my site

I am having an issue where when I try to select that the tax calculation should be based on "shipping address", The tax is not being shown. If I select "Shipping Origin" the tax shows. I need the tax ...
1
vote
2answers
92 views

Magento 2, addAttributeToSelect not working with product collection?

I am applying these fillers: $collection->addAttributeToSelect('name'); $collection->addAttributeToSelect('sku'); but every time getting full record as comes form: $collection->...
0
votes
2answers
52 views

Magento2, How to pass product data as query string in Url using JSON template? Custom Module

I am trying to get product name, product SKU, Quantity in Url such that when I write 1 in Url 1-50 products should display, when writing 2 as page number 51-100 products should display. And data goes ...
1
vote
1answer
164 views

Magento 2: Uncaught TypeError: Cannot read property 'autocomplete' of undefined

I got this error Uncaught TypeError: Cannot read property 'autocomplete' of undefined. So I checked the file in /pub/static/frontend/Sm/himarket/nl_NL/Magento_Customer/js/view/authentication-popup.js ...
0
votes
0answers
17 views

Some help to publish my custom shipping method in Magento MarketPlace

I have created a custom shipping method and tested locally. I want to share it in the Magento MarketPlace (is no easy to publish there). In one of the large and multiple steps I need to create an "...
0
votes
0answers
37 views

snowdog front tool for Magento 2

I am using magento 2.1.15 and I am trying to use the snowdog front tool for creating the theme for my project. Along side I am using snowdog blank theme as my parent theme. Basically the blank theme ...
1
vote
0answers
86 views

Magento 2 TnC checkbox value not getting passed in custom payment method which redirects [closed]

I have created a custom payment gateway extension for CC and redirect both, the code for which can be found here. Enabled TnC checkbox from the backend but unable to pass it's value to the set-...
0
votes
1answer
72 views

How to publish my module in magento Marketplace?

I have developed a module for magento 2. In particular is a custom shipping method, I would like anybody could be able to use my shipping method. How can I do to put my module downloable. I tried on ...
0
votes
1answer
55 views

Missing js & css after install extension in magento2

Everything was fine before install a marketplace extension. I installed with the following code: composer require mailchimp/mc-magento2 and then I check the frontpage, some of the JS and CSS file ...
0
votes
0answers
14 views

How to add custom property to a custom shipping method?

I added a custom shipping method. Now I would like to have a custom property to be able to recognize, in the obersver, if the selected shipping method is mine. I want a property not modifiable by ...
0
votes
2answers
161 views

Change value of text field in admin form based on option selected in dropdown

I have made a custom admin form which has a drop-down. Based on the option selected in the dropdown, I want to change the value of the text field below using AJAX. In the above pic, I want to change ...
0
votes
1answer
30 views

AED-SAR and SAR-AED currency Switching magento 2.1.7

I have 4 currency (AED, USD, GBP, SAR) in my store AED is my base and i have 2 store (English and Arabic). All the currencies working properly but when i change AED to SAR or SAR to AED it's not ...
0
votes
1answer
46 views

How to get Order information from event checkout_onepage_controller_success_action?

I am trying to get order information to do some tasks, after the order is placed. I tried with the events "checkout_submit_all_after" and also with "sales_order_place_after" but the only event I am ...
0
votes
1answer
23 views

Events when the order is placed is not firing

I am trying to observe an event when the order is placed but is not working for me. I tried with "sales_order_place_after" and "checkout_submit_all_after" events but nothing happens. The "test.log" ...
1
vote
2answers
24 views

How to know if the observer function have executed after an event?

I am trying to observe an event. How can I debug or know if the observer function has been called? I am using the event "checkout_cart_add_product_complete" and trying to do something simple when a ...
1
vote
1answer
43 views

How to create page with left sidebar In magento 2.1.15?

I want to create page or block with sidebar. if I click customer service then I want to see customer service info etc. 2nd Image : 3rd Image:
0
votes
0answers
82 views

Magento2 - Adminhtml - UI Component switcherConfig

Looking at this example from this question to find a way to change a UI Component form field to do something from another form field (in the example, show or hide the field), and noticed this <item ...