Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Is there any way to preview and modify the form data before submission in Magento 2?

I want to preview and modify the form data before submission in Magento 2. For example the registration form. the users enter their information, then hit step one btn to create the account form gets ...
0
votes
0answers
11 views

Sidebar issue in Magento 2 ?How to fix it? [on hold]

Basically when i install an extension my side bar goes like this.How to set it 2 column left?
0
votes
0answers
16 views

Uncaught InvalidArgumentException: Constant name is expected [closed]

I am using Elavon_ConvergePayment payment module Downloaded From Here I am getting Uncaught InvalidArgumentException: Constant name is expected I have checked class has defined this constant. All ...
0
votes
1answer
25 views

Magneto 2.1.9 upgrade to 2.2.2 Getting Error

We are trying to upgrade a Magento 2.1.9 site to Magento 2.2.2 Getting Error .. " Can anyone help me " Upgrade Commands - composer require magento/product-community-edition 2.2.2 --no-update Then ...
0
votes
0answers
6 views

Configurable image resolution is not same as main image in magenta 2.3.1

I have created a configurable product on the basis of colour. In my theme, I can change the resolution of the image by setting it manually from the backend. I have set it to 1200x1800. When I try to ...
0
votes
1answer
22 views

How to get product collection form brand_id in Magento 2?

Basically i want to get product collection form brand_id.is there anyway to get collection.
0
votes
0answers
21 views

Magento2 Order Status Change in Admin

In magento2 i want to create a new order status called as "Cancel Request". When ever a customer wants to cancel an order its status needs to be changed to "Cancel Request". Admin have right to cancel ...
1
vote
1answer
31 views

Magento 2: Change the product title structure

I want to change product title like below: Brand attribute value + attribute set name + guarantee = product title How should i do it?
0
votes
0answers
18 views

EAV load collection issue (High Load Time)

We have an eCommerce platform. The issue is that when we increased the products to ~3000, the EAV:load_collection is taking a lot of time(~20 sec) and eventually slowing the site. If I remove the ...
0
votes
0answers
23 views

Magento 2: Blank static page on multiple web-server

I have set up a Magento 2 website using 2 webservers. When the request is served by the web server that holds the layout cache, the static page is fine. But when the varnish is invalidated and the ...
0
votes
0answers
21 views

Extract feature of custom tab form Porto theme: Magento 2

Basically I want to add a custom tab feature which already exists in Porto theme to my custom module in Magento 2.
5
votes
2answers
59 views

Magento 2 : How to get current IP Address?

I am fresher in magento2, How to get current IP Address? Thanks in advance.
0
votes
0answers
9 views

Tier Price Styling bug

Code: class MinimalTierPriceCalculator extends \Magento\Catalog\Pricing\Price\MinimalTierPriceCalculator { private $calculator; public function __construct(CalculatorInterface $calculator) { $...
0
votes
0answers
15 views

Magento 2: How to add less file that will have effect on installed Extension?

Basically I have developed extension. Now I am finding by which user of extension can add styling using less that have effects on extension? Is there any way to do this ?
0
votes
1answer
24 views

Magento 2.X: Remove an attribute from product page tabs

I have an attribute named warranty. I want to show it on top of the page (it is ok and done), but don't need to show it on the description table on product page with other attributes. what should I do?...
0
votes
0answers
21 views

Magento 2.1: Want to change the product URL structure

Want to change the URL structure in Magento 2.1 like below: www.example.com/sku/title I made it and it works on admin panel. when I create product on the search engine optimization tab get exactly ...
0
votes
0answers
12 views
0
votes
0answers
18 views

Magento 2 No such entity with id = XX while saving product and generating new url

I commented a code in vendor/magento/module-catalog/Model/CategoryRepository.php file line no. 141 if (!$category->getId()) { throw NoSuchEntityException::singleField('id', $categoryId); } ...
0
votes
2answers
30 views

Enable extension for one store and disable for other store view in Magento 2

Basically the scenarios are I have two store view one is for Pakistan and the other is for America. I want to enable the extension for one store and disable for other store? Is there any way to do ...
0
votes
1answer
29 views

Shall i learn zend if i want to become magento 2 extension developer

I am a front end developer and worked on many wordpress,magento and shopify stores . But now i want to become real developer . I mean i want to prepare myself so i can develop magento 2 extensions ...
0
votes
2answers
28 views

Help with Magento data-migration-tool 1.9.4.0 to 2.2.25

I need to migrate data from a installation that uses version 1.9.4.0 to 2.2.5. I installed data-migration-tool:2.2.5 via composer. On opensource-to-opensource directory I could not find 1.9.4.0 ...
0
votes
0answers
6 views

Magento 2.X: Add Product custom attribute with Categories as value

I would like to create a custom product attribute in the Product list but I want the attribute to be a dropdown of all the available categories as it's content/list. So it will be displaying the ...
0
votes
0answers
13 views

How to call Viewmodel via layout handler in Magneto 2?

This is my layout file where i need to call Viewmodel so that it can be used by block . <referenceBlock name="product.info.review"> <arguments> <argument name="...
0
votes
1answer
10 views

Magento2.1 image importer

I want to import images into magento2.1 with default importer. My problem is that I added image folder into pub like this: pub/media/catelectronicpic/mobile/1.jpg pub/media/catelectronicpic/...
0
votes
1answer
19 views

Magento 2.3 Modify pagination limit in admin for all (Custom options)

I want to modify Customizable options pagination. Currently on 1 page by default we can see 20 options and the 21st will be on next page i.e. page 2. I need to see 100 options on page 1 & 101 on ...
0
votes
0answers
26 views

Class does not exist ReflectionException keeps coming back

We have a Magento 2.1.5 project. We are getting strange errors. At some moment the website works properly and the next day we get an error when we login to the admin. We get the following error: ...
0
votes
0answers
12 views

How to get actual decimal price of tax without round in Magento 2?

How to remove the round function from tax price calculation and get decimal point tax price in cart in Magento 2. Thanks
0
votes
0answers
15 views

Magento 2: It is not recommended to specify supported PHP versions in dependencies

It is not recommended to specify supported PHP versions in dependencies. If specified, it must at least match the PHP requirements of the supported Magento versions.
0
votes
1answer
32 views

The use of helpers in templates is discouraged. Use ViewModel instead warning in magento 2

$extensionStatus=$this->helper('Esparksinc\Extension\Helper\Data')->getConfig('Extension/general/enableDisable'); how to use viewmodel instead helper method to acces the system.xml values in ...
0
votes
1answer
21 views

How to access system.xml values in phtml file

$extensionStatus=$this->helper('Esparksinc\Extension\Helper\Data')->getConfig('Extension/general/enableDisable'); i am accesing this way but it gaves me a warning "The use of helpers in ...
0
votes
2answers
12 views

Use ::class notation instead warning while checking code in Magento 2 coding standard

I am accessing block function in phtml like $blockObj= $block->getLayout()->createBlock('Esparksinc\Extension\Block\Product\View'); but this gave Waring of class notation instead while cheqing ...
0
votes
0answers
9 views

Magento2.1 search

After import attributes with magmi in magento2, search function is not working. It always shows no search result found in search result page. Reindex didn't help me
0
votes
1answer
14 views

Magento2.1 order comes notification

When order comes, there is no notification to see in default magento. Need to get notification when orders come in magento2.1
0
votes
0answers
16 views

Magento 2: Hide tab in product detailed page when there is no data

How to hide tab in product detailed page when there is no data For Example i have two products as ProductA and ProductB ProductA has warranty so warranty tab has to display ProductB has No warranty ...
0
votes
0answers
18 views

Magento 2: After logout, customer still display in header

I try to logout from an external application and I am able to logout from magento2 application but in the header, it still showing.
0
votes
0answers
16 views

Magento2.1 category URL structure

Want to set my category pages URL like this: https://domain.com/categories/{category name} Also is it possible to set https://domain.com/category/{category name} for main categories and https://...
0
votes
2answers
49 views

How to clean or flush cache programmatically in Magento 2.3?

I have tried DI and Object Manager way to clean or flush cache but its not working for me using DI public function __construct( Context $context, \Magento\Framework\App\Cache\...
0
votes
1answer
44 views

How to change or redirect home page to customer login?

Need to see customer account at the first before home page. used redirect from the admin panel but not working. Still, when I load my site it goes to the home page. Mean that see customer account ...
0
votes
0answers
17 views

Add customer to multiple customer group magento2.1

I set group with eav_attribute group_id to multi-select and set it to varchar. But it doesn't show multi select. I want to set my customer to multiple customer groups in magento2.1
0
votes
1answer
25 views

Magento 2: How to remove category sidebar from the pages?

Yesterday I had applied porto theme after that category sidebar is coming for every category page and product page. In Category page it is coming in left side and product page coming in right side. ...
0
votes
0answers
24 views

Magento2 css js minify

A stylesheet doesn't load good after the merge and minifies CSS and js. Every CSS are explored! Used static-content deploy but not works.
0
votes
1answer
12 views

Magento2.1 CSS/JS minify and merge

I just put merge and minify html css and js to yes in admin panel of magento2.1. I'm in production mode and clean and flush cache and indexer are reindex but still I see all css and js files in page ...
0
votes
1answer
15 views

404 Not Found error was encountered while trying to use an ErrorDocument to handle the request

I moved my store from one server to another server and now the home page is opening but when I click on any link I am getting the below error Not Found The requested URL /dental-chairs.html was not ...
0
votes
0answers
21 views

Refused to display in a frame because an ancestor violates the following Content Security Policy “frame-ancestors”

I added an iframe into checkout page to make in site payments but magento blocks iframe and shows blank content... I tried to put Header set Content-Security-Policy "frame-ancestors https://redsys....
0
votes
2answers
45 views

Magento 2: Layout doesnt update

After clearing the cache default_head_blocks.xml doesn't update. How I clear the cache 1. php bin/magento setup:static-content:deploy 2. Flush Magento Cache in the admin What is the best way to ...
0
votes
1answer
26 views

How to add custom registration plugin in my CUSTOM FOrm

Hello I have one Custom registration filed plugin i want to add field in my custom form how can i do that? i share the code they use customer attribute to add field how can i add field in my custom ...
0
votes
1answer
24 views

Magento2 eav queries issue

I have below queries on my pages for each attribute, It become more than 11000 request in my magento2 pages. any body can help me? SELECT eav_attribute.* FROM eav_attribute WHERE (eav_attribute....
0
votes
1answer
32 views

Tax showing twice in cart and invoice etc but calculating correctly

Tax is calculated correctly but it is showing twice in shopping cart and invoices. See an example in the below image GST and Tax is shown which is the same (10% GST). How can I show just one, ...
-2
votes
1answer
26 views

How to create approve and disapprove functionality for customer in magento

I have 3 customer wholesaler, distributor, retailor , i want to create one functionality if admin approve all of these customer then it can be log in otherwise it can not log in, how can do it? Please ...
0
votes
3answers
36 views

How to get Customer Group collection in frontend customer form in magento2?

i have created custom customer registration form , how to display customer group in dropdown menu please help me..