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
0answers
11 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 ...
0
votes
0answers
21 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 ...
3
votes
1answer
57 views

Delete, MassDelete, Save events for Product reviews

I am building an extension related to product reviews in magento 2 but I couldn't find any related article/question to product reviews observers. I went through different articles which states all/...
4
votes
3answers
2k views

Magento 2 : How can I use LESS variables in Modules' LESS files? (not theme)

I try to include specific LESS variables in my Modules' LESS stylesheet. Note: my module, not my theme. For example have a file called app/code/Vendor/Module/view/frontend/web/css/stylesheet.less. ...
0
votes
0answers
11 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
860 views

how to create guest order in Magento-2 using test.php file

I try to create an order programmatically in magento2 using this code snippet found on webkul.com Order I want to create for guest customer.while script executing customer creating ... I don't want ...
0
votes
1answer
813 views

Magento 2.1 override the view.xml file and see changes on site

I'm pretty new to Magento 2.1 and am trying to figure out how the themes work. I've read through a lot of the documentation, but what I'm having trouble with right now is the view.xml file in my own ...
0
votes
1answer
847 views

Magento 2: Set category image programmatically

How to set category image programmatically, which shows on list page? I found several solutions on the web but could not solve my problem. I am confused among these functions setThumbnail(), setImage()...
5
votes
1answer
843 views

Use of undefined constant MCRYPT_RIJNDAEL_256 - assumed 'MCRYPT_RIJ NDAEL_256

I got an error when i execute this command php bin/magento setup:upgrade && php bin/magento setup:di:compile && #php bin/magento setup:static-content:deploy && chown -R www-...
0
votes
2answers
803 views

Magento 2 Custom Top header Link is not Showing

I want to create a custom top link in magento 2 for my custom module, but when i load the home page, the custom top link doesn't show up, here's my view/frontend/layout/default.xml: <?xml version=...
0
votes
2answers
562 views

Magento 2 not able to login to admin pane;

I just installed a plugin via composer. Note the site and admin panel worked just fine prior and the customer facing sie of the site seems to work fine. After the plugin install I then re-compiled via ...
0
votes
2answers
883 views

Magento 2 : Image Upload Not Working in Admin

I have been trying to upload image in magento 2 for a product but its giving me error. If I try to upload image for existing product it gives same error. Notice: A non well formed numeric value ...
2
votes
0answers
569 views

Load customer Quote Error in magento 2.1 EE

Once the customer is logged in or creating account, Load Customer Quote Error is getting. Can you please help me solve this ? Thank you
5
votes
2answers
540 views

How to capture creditcard payment using sales order REST API magento 2?

How to create sales order with payflow pro payment using REST api magento 2. Order placed successfully with sales order api but payment doesn't not set using order api. I want to pass test credit ...
0
votes
2answers
1k views

Move logo to center of page

I want to move LOGO of site to center and want to add some text on the place of logo. I am able to add text from file but logo is not moving to center of container. I have extended LUMA theme. ...
0
votes
0answers
7 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
0answers
3 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 ...
2
votes
3answers
7k views

2.1 (ReflectionException): Class … does not exist

I wrote a custom shipping module for Magento 2.0 that adds an LTL/Fright option. It worked in Magento 2.0.7, and I was recently testing 2.1.7. It appears all of my other (self authored) modules work, ...
1
vote
1answer
810 views

Time To First Byte with varnish cache - 12 seconds

I installed varnish cache and verified using official guide. In official guide mention 5ms to load the url with varnish but mine it is 12s. Info: OS : ubuntu 14.0.4, webserver : apache2, php : 7, ...
1
vote
1answer
88 views

CRITICAL: Broken reference: No element found with ID 'content_schedule_block0'

I got this error on product details page. Added product using CSV import. 1 exception(s): Exception 0 (OutOfBoundsException): No element found with ID 'content_schedule_block0'. Exception ...
6
votes
1answer
888 views

how to load or add js before require js in magento 2

I am trying to override default_head_blocks.xml like below vendor\magento\module-theme\view\frontend\layout\default_head_blocks.xml <?xml version="1.0"?> <!-- /** * Copyright © 2016 Magento....
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->...
4
votes
1answer
957 views

Magento admin logo change!

I am trying to change Magento2.2.2 admin logo. But no success. This is what I have done: This file app/design/adminhtml/XXX/yyy/theme.xml contains: <theme xmlns:xsi="http://www.w3.org/2001/...
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 ...
1
vote
1answer
13 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
1answer
19 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
0answers
6 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/...
3
votes
2answers
2k views

How do I programmatically load a specified sales rule in Magento 2?

In Magento 1 EE, I was able to get sales rule information from product list page with the following: $rule = Mage::getModel('salesrule/rule')->load($ruleId); $isActive = $rule->getIsActive(); $...
2
votes
1answer
599 views

Magento 2: How to get secure category URL programmatically?

I have a custom category indexer which grabs Magento categories and index them to a search service. Within each category I need to index it's URL which I do by code $url = $category->getUrl(); ...
4
votes
3answers
4k views

Magento 2 - get special price of product by product id or sku

I need to get the special price of a product by product Id or Sku. Let's say I have an existing product with Id '21' and Sku 'test-21'. This information is provided in my custom block class, how can ...
4
votes
4answers
7k views

How can I assign an existing simple product to a configurable product using the admin interface?

I have existing simple products I need to assign to configurable products, however I can't find any interface to do this. This was possible in Magento 1, but I can't see where it is possible in ...
1
vote
0answers
43 views

How can a role user see only own products not other users in Magento 2?

I am troubling with user roles in Magento 2. When I am trying to assign product permission to a user who can see only own products but all products displaying to him. How can I set a role in which ...
1
vote
1answer
847 views

Magento 2 Layered Navigation on Advanced Search Result Page

I am able to enable 'Layered Navigation' on Catalog Search Result-Page "http://127.0.0.1/catalogsearch/result/index/" (see image below) by just enabling the storefront properties 'Use in Search ...
0
votes
1answer
25 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
2answers
1k views

Magento2 Add custom field to review form

I am trying to add a custom field in review form in the product page. Below is my code: InstallData.php namespace Namespace\Mymodule\Setup; use Magento\Framework\Setup\InstallDataInterface; use ...
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
847 views

Getting “url key for specified store already exists” error in magento2

I have installed magento2.1 and it was working properly with multi-store. When I have disabled some categories from a "sub" store, and try to add any product (already assigned to "sub" store) to that ...
3
votes
3answers
7k views

Magento 2.1 Create a filter in the product grid by new attribute

I used Magento 2.1 and want to add new filter in the product grid. But when I added my module the website loading forever. Please help me to solve the problem. I have searched on the internet, but I ...
1
vote
1answer
928 views

Knockout JS removes jQuery change event

I don't know if it is specific to Magento 2 but an already set up HTML node with jQuery change event attached to it will lose its change event when run inside a knockout component with attached VM (...
1
vote
1answer
510 views

Namespace for Exception class is not specified Magento 2

I show this error in marketplace review Namespace for Exception class is not specified. Here is my code: public function uploadFile($scope) { try { $uploader = $this->...
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
4answers
3k views

Magento 2 Attempt to load value of nonexistent EAV attribute

I see in my log the nexe warning: [2017-05-05 12:23:53] main.WARNING: Attempt to load value of nonexistent EAV attribute '339' for entity type 'Magento\Catalog\Api\Data\...
2
votes
1answer
844 views

How do I change date picker format for admin date field

How can I change the date format to display as dd/mm/yyyy for admin date field? Currently it is displaying as mm/dd/yyyy format. Can you please help me out?
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
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
1answer
32 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:...
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 ...
2
votes
0answers
105 views

Magento2.1 Configurable attributes in cart

I want to add configurable products attributes to cart page too. Example: T-Shirt color:red size:m already added to cart by price 100$, Now I want to change attributes on cart and use color:green ...
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?
1
vote
1answer
850 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.