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
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

0
votes
0answers
16 views

How to reset the ID of customers in magento2

In my magento 2 admin panel I have Customer ID as 1,2,3,4 and so on. I need to reset it start with 001,002,003,.... How can i do this? see attached screenshot: https://imghostr.com/t5MRKF2p if I ...
0
votes
0answers
11 views

How to overwrite meta robots?

I'm having an issue with changing the meta tag on category pages from: <meta name="robots" content="INDEX,FOLLOW"> To: <meta name="robots" content="NOINDEX,FOLLOW"> I tried adding the ...
0
votes
1answer
16 views

How to show the count of reviews

How to show the count of product review on the category page? Now i just can get the stars, but no counts
1
vote
1answer
9 views

magento2.1 dropdown attribute list.phtml

How to get a dropdown attribute value on the category page, i set the show in listing to yes and added this attribute to product. any suggestion?
0
votes
0answers
17 views

magento2.1 bottom pagination when there is no page

When i set pagination to 60 and i have 55 items, so shows 55 items and it is nice, but still shows a bar of pagination on the bottom of the page. how can i remove it when there is no pagination page ...
0
votes
0answers
7 views

Magento 2 : I need to add optgroup in custom Ui form with static options

public function toOptionArray() { $options = [ ['value' => " ", 'label'=> __('======== Product Page Sections ========')],` ['value' => self::PRODUCT_CONTENT_TOP, 'label'=&...
0
votes
0answers
27 views

Magento 2 - Hide specific attributes from layered navigation

how I can hide some attributes from layered navigation for a specific category page? I try to set "Is Anchor: No" but this will hide everything, I want to have in this category only category filter ...
0
votes
0answers
10 views

Implement Custom REST API end point returns list of best selling products

I have an assignment from clients to implement Custom REST API end point returns list of best selling products. Which I have done here Supports pagination, sort and filter can be filtered by date ...
0
votes
1answer
15 views

Magento 2, Change On click instead of 'hover' for menu

In Magento 2 for the main menu, they dropdown with hover. How to change the dropdown on click instead of 'hover'.
1
vote
2answers
20 views

How to get dropdown value Magento2.1

I want to get a dropdown attribute value on the category page, i set the show in listing to yes and added this attribute to product. then set below code to my list.phtml: ...
0
votes
0answers
14 views

Wishlist button color on Magento2.1 list page

How to set an active class to magento2.1 wish-list button on list page? I mean that, when i go to product page, if marked that product to my wish-list before, just shows already added to wish-list or ...
2
votes
0answers
16 views

Composer update dependencies Magento 2.3

Is it okay to update the dependencies of a magento store using command composer update? The store is functional and running on magento 2.3 at the moment.
0
votes
2answers
41 views

Magento2.1 different mobile view

I want to see search results in list mode by default in desktop, and see it on grid mode on mobile. What should I do? Right now I edited catalog search list.phtml to show list mode by default on ...
0
votes
0answers
8 views

Remove Auto-generated URL Rewrites

I've been having this issue with auto-generated URLs. The catalog/* URLs keep auto-generating the red box are the URLs that auto-generate, the green box are the URLs that I want. How do I stop the red ...
0
votes
1answer
9 views

select product details page options if dropdown has one value in Magento 2.1

I want to select the options in each dropdown in product details page if it has one option. for example dropdown : 1 (option) dropdown : 2 (option) dropdown : 1 (option) Then on the selection of ...
0
votes
0answers
7 views

How to merge multiple order and create new one order in magento 2?

try { $store=$this->_storeManager->getStore(); $websiteId = $this->_storeManager->getStore()->getWebsiteId(); $customer=$this->customerFactory->...
0
votes
0answers
12 views

Paypal payment method does not create customer record Magento 2.1

We allow guest checkouts in our multi-site/multi-store magento setup. When a guest customer checks out by credit card or invoice, when you visit the order in the adminhtml, the customer is identified ...
0
votes
0answers
7 views

install magento on virtualbox from bitbucket

After I clone magento files from bitbucket, i try to run composer install but it gives me this error, "[RuntimeException] Failed to execute git clone --no-checkout "ssh://git@stash.studio.com:7 999/...
0
votes
1answer
25 views

Cannot add custom topmenu link with plugin

I want to add custom links to the topmen / a submenu in the topmenu (I need the links for custom filters). To achieve this, I have created a plugin: app/code/Vendor/Module/etc/frontend/di.xml: <...
0
votes
1answer
26 views

magento 2 admin not working correctly

I used wamp to install Magento 2 but admin not working correctly, how can I fix it when I opened "inspect" I found this error
1
vote
1answer
15 views

Magento 2 : Currency Symbol missing when exporting Saler Order Grid

I am exporting Magento 2.1.9 Saler Order Grid to CSV and XML formats using the provided buttons. But when I open the file in Excel the currency symbol is missing in Grand Total (Base) and Grand Total (...
0
votes
0answers
11 views

Reward Points should not be applied to shipping in magento2

Rewards points are being used to cover shipping amount also In MAgento2. This should not be. Shipping amount MUST be paid. Reward points should not cover the shipping costs. Please help me to fix ...
0
votes
1answer
14 views

Fetch all the students on the basis of ascending marks

This query fetches all the student name and there ids on basis of topics but i want to get these result on basis of ascending marks ... i.e select student_name and ids where student_topic = topic but ...
0
votes
0answers
3 views

Why No Body Talk About Checkout Customization Of Magento 2? My Last Post On This Platform [migrated]

Why No Body Talk About Checkout Customization Of Magento 2? I Do So Much Search On Internet But I Can't Find Any Proper Solution For Customize Checkout Fieds. So I Decide I Ask Question On This ...
0
votes
0answers
6 views

magento2.1 customer account without refresh page

I want to add AJAX to my account tabs on magento2.1. now by default magento's buyer panel has lots of tabs like my orders my wish-list and more... they have their own URL's and after click on any of ...
0
votes
0answers
24 views

Run Local site using UniServer Zero

Does anyone have tried to setup Magento 2.1 at UniServer Zero as Local server?
0
votes
2answers
18 views

How to get all Invoices of logged in customers in magento 2.1

I want to display the list of invoices of logged in customer in the frontend.
2
votes
2answers
117 views

How to add multiple products to cart programatically in Magento 2

This is the code snippet that I am using $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $quote = $objectManager->get('\Magento\Checkout\Model\Cart'); $_product = $...
0
votes
1answer
16 views

Mageno 2 - Invalid template file in catalog_category_view.xml

I have a custom template for category page list.phtml in my theme. list.phtml was addressed in catalog_category_view.xml as <?xml version="1.0"?> <!-- /** * Copyright © 2013-...
0
votes
0answers
25 views

Geting Error In Checkout Page Magento 2.2.6 [duplicate]

I Getting This Error On My Checkout page in magento 2.2.6 Version. When I Open error_log File From public_html Directory Then Here Showing this message ` /home/khalis/public_html/vendor/magento/...
1
vote
1answer
24 views

Noindex no seo value URLs in Magento 2

I have no-indexed URLs matching below pattern. Is there any other pattern that could be added?
0
votes
0answers
13 views

How to create custom API for company and customer creation in Magento 2

I want to create a company/company admin-user in Magento 2 (as what it does from the front-end/back-end panel) via a single API call. Right now am doing with two API calls First is creating a ...
0
votes
1answer
40 views

Area code not set: Area code must be set before starting a session. While doing upgrade to 2.2

I am upgrading my Magento 2.1.9 to 2.2.7 using these following commands composer require magento/product-community-edition 2.2.7 --no-update composer update Then when i'm doing php bin/magento setup:...
1
vote
0answers
18 views

Magento 2.1.9 Community Edition Catalog Search page not displaying results

Magento 2.1.9 Version Community Edition. My Catalog search page is not displaying any results as show below. So far what has been done as testing.But still not working. Re indexed still not ...
0
votes
0answers
18 views

Magento 2.1 - Reindex failing on product eav and catalog search index

We moved magento code setup from one server to another. Initially all the indexes are in ready status. But if we run the reindex command: php bin/magento indexer:reindex the reindex fails for ...
1
vote
1answer
27 views

Magento 2 Wrong products count on Advanced Search & Catalog Product List

I am using Magento 2 and have noticed a wrong products count on Advanced Search & Catalog Product List. For example for Advanced search it may show 3 products and total count will say 10. Same ...
1
vote
3answers
50 views

Fatal error: Uncaught TypeError: Argument 1 passed to

I just cloned a project from git, everyting ok, when i enter to a module name kardex i found this error, the thing is that this error only appears to me in my project, not happen in another cloned ...
0
votes
0answers
6 views

Magento 2.2.4 - Discount Code doesn't work on checkout/#payment

We have a discount code and it works in the view cart page but doesn't work in the checkout/#payment. In fact no action is taken when we click on Apply discount. Does anybody know the solution for ...
0
votes
0answers
14 views

How to rename order shipments name in customer dashboard frontend?

I am using Magento 2.1 I want to rename order shipments name and switch order shipments first then invoice.
0
votes
0answers
21 views

Thanks for submitting message not show in Magento contact form

I have included contact us form in cms block using below code {{block class="Magento\Contact\Block\ContactForm" name="contactForm" template="Magento_Contact::form.phtml"}} After submit contact form ...
0
votes
0answers
12 views

How to show stock_status of product in response of /V1/products?serachCriteria in Magento-2.1.12?

I want to show extension_attributes[stock_items[is_in_stock]] in response of /V1/products?serachCriteria in magento-2.1.12. Please guide me.
0
votes
1answer
27 views

Is it mandatory to reindex all indexes everyday?

Is it mandatory to reindex all indexes everyday? What are the mandatory ones and what are the optional ones? Below is the crontab details I have and I see some indexers run and some don't. The ones ...
0
votes
1answer
28 views

how to display purchase order number in customer dashboard frontend?

I am using Magento 2.1 . I want to display purchase order number in customer dashboard.
0
votes
0answers
21 views

load data into dynamic rows from database on edit action

I want to load the data from database table to dynamic rows(multiple record) when edit action is called . I am using one to many relation on table Student and Courses i.e Student registering multiple ...
1
vote
1answer
20 views

Magento indexer doesn't index Product categories and Catalog product rule indexes

There is no error. Magento indexer doesn't index Product categories and Catalog product rule indexes. I have tried both update on schedule and update on save. Any clues please?
0
votes
0answers
45 views

Decode HTML Knockout JS - Minicart

I use HTML Code inside Custom Options. The Radio Option titles are for example <p class="style1">Option1</p> This way I can style my custom options in css, instead just plain text. ...
0
votes
0answers
42 views

Magento 2 store views hyphen/dash recommended solution

I'm not able to create store views with code/url like en-sa because of the backend validation: The store code may contain only letters (a-z), numbers (0-9) or underscore (_), and the first ...
0
votes
0answers
24 views

Magento2: custom script for category product sort order position

I need custom script run for specific category products position and use this spreadsheet to change the sort order of the specific category "position" If anyone idea reply me as soon as.
1
vote
0answers
27 views

Fotorama zoom magento2.1

How to change the size of Fotorama zoom on magento2.1 to 700px? I tried it on gallery.phtml but nothing changed.
1
vote
0answers
15 views

how to whether item refunded or not through invoice level in magento 2

I want to know whether a specific item is refunded or not from invoice level.