Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

1
vote
1answer
34 views

Admin Backend Exact Match

In the admin backend on the order/customer grids we used to be able to do an exact search like, "Firstname" in Magento 2.2.5 This seems to no longer work in Magento 2.2.7. Is there a different/new ...
0
votes
0answers
15 views

How to set bundle product out of stock if any associate product out of stock?

I want bundle product out of stock if that product's any child have 0 qty
0
votes
1answer
15 views

Magento 2.2.8 ignores my theme's dictionary

I'm hitting my head against a wall on this one. I've gone through not only the Magento documentation regarding custom translations in themes, but also many answered questions found via Google, and ...
0
votes
2answers
735 views

Get website name from website id

I would like to add the magento website name to the top header beside the language switcher. Magento_Store/templates/switch/languages.phtml I can get the id by using, echo $block->...
2
votes
2answers
836 views

Magento 2 : Add product to cart programmatically does not populate quote item id in validate method

How to add product to cart programmatically in Magento 2.2.0 ? I have tried below code but when I do not get Quote item id in Validate method of below file. \Magento\AdvancedSalesRule\Model\Rule\...
0
votes
1answer
852 views

How to create Admin form in Magento 2 without using Uicomponent?

I have a grid which is showing data and know I want to create action and Add new Button. But I don't want to use Uicomponent. Can someone tell me how to create a admin form step by step (Admin form ...
0
votes
0answers
15 views

Shipment issue in magento2

I have 2 products in an order. One is simple and another is a virtual product. When I try to create a shipment for this with the tracking number and marked the option to Send an email, it displays ...
0
votes
1answer
799 views

Magento 2.2.1 Product Import Not Updating Assigned Categories

When updating my products via the add/update import process, the assigned product categories are not being updated. If I update by selecting "replace", it works. Example Product-A currently has the ...
2
votes
1answer
78 views

Cant drag back product Attribute to unassigned attribute in Magento 2.2

Cant drag back product Attribute to unassigned attribute in Magento 2.2 I am not removing a default attribute, its created by me Manufacturer.
0
votes
0answers
6 views

Add bundle product in Wishlist with child product which selected

I am trying to add bundle product into wishlist but there are one issues we found. When i select the child product which associated with bundle product. When we clicked on Add to wishlist, only bundle ...
0
votes
1answer
810 views

Magento 2.2.2 issue mini cart not working

Centos 7 (se linux disabled) nginx php 7.0.27 Luma theme Magento 2.2.2 A very strange issue. Minicart not working I found a lot of posts but no one corrects my issue. try setup:di / deploy static ...
0
votes
1answer
21 views

How to add alert box in admin form

I want to add the confirm box while click save button in magento2 admin form. How to do that. Thanks.
1
vote
1answer
32 views

How to create a new price type?

I am now struggling to create a new price type on Magento 2.2.7. Below are what I have tried so far. I have created a module Foo_Bar. And then, first of all, inject the new type into the price pool: ...
0
votes
3answers
27 views

Overwrite magento_theme adminhtml ui_component xml file

I am trying to overwrite following file: vendor/magento/module-theme/view/adminhtml/ui_component/design_config_form.xml The changes work when editing the file directly in vendor dir, however, I am ...
0
votes
1answer
20 views

Updating product price from code not reflect in frontend category page until I save from admin

We are updating the product prices every 10min using cron. The prices are pulled from a external API. We are using the following way to update the price, $this->updateProductAttribute('price', $...
3
votes
0answers
940 views

'No such entity' error when saving category as anchor

I have a weird issue in that when I try to save a category as an acher is fails with a 'No such entity' error. Underneath the error there is a futher error of Warning: ltrim() expects parameter 1 ...
1
vote
0answers
94 views

Magento 2 in admin panel side attributes drop down values not be save and delete?

Attributes dropdown values not be save and delete in admin panel side I have change the php.ini files max_input_vars=100000 but its not working? Please give me any solutions..?
0
votes
0answers
78 views

Magento Theme Error vendor/composer/autoload_real.php on line 70

I am newbie and trying to install a theme with demo/sample data on server and getting error: vendor/composer/autoload_real.php on line 70. /home3/isureb0y/public_html/Magento/vendor/composer/....
0
votes
0answers
12 views

Get Filters selected in admin sales order grid

How can I retrieve the selected filters when a sales order admin grid loads programmatically in Magento 2? For e.g., if the filter is selected as Status = Cancelled, I want to be able to access it ...
1
vote
2answers
28 views

Can I access changed parameters in an after/around plugin?

I want to access a parameter of a method in an after plugin. The value of the parameter has been changed inside the original method, and I want to access the modified value. Example: class ...
0
votes
0answers
47 views

Magento2 : Import/Export is not visible in Admin section

I am having an issue in Magento Admin. The import/export menu is not visible. When I open the URL directly, It shows a blank page. Please help, it's urgent.
8
votes
2answers
3k views

Magento 2 form field toggled type

I want to create a toggle input option in magento 2 like this: but i don't know what type of field is that, right now i'm using select dropdown like this: $fieldset->addField( '...
0
votes
0answers
7 views

Magento 2.2 option products of bundle are considered as simple product in pagination My Order

With reference to the question Magento 2 option products of bundle are not showing in my orders magento core I have removed the following line to get Bundle products option list my order grid. ...
1
vote
5answers
763 views

Magento 2 : Development is extremely slow?

I spent a lot of time learning core concepts, and now I have a decent understanding of Magento 2. However I am spending days, not hours, trying to make even tiny changes, like changing layout, I need ...
7
votes
4answers
7k views

Magento 2.3.0 “A technical problem with the server created an error.” When uploading the logo image

I'm using Magento 2.3.0, with php 7.2 version, on a ubuntu os. Everything looks working fine, but when I try to go into Magento backend, Content - Design/Configuration - Header, and I try to upload ...
3
votes
2answers
164 views

Magento 2: Dependency Injection: Optional class as parameter

We are developing a Magento 2 extension and we need to inject a class from a third party extension that the user may or may not have installed. We thought about injecting the class via the di.xml ...
4
votes
2answers
2k views

Magento 2 how create CMS page programmatically [duplicate]

I need any query or code to create CMS page programmatically, Please help me or suggest me if any module available for the same. Thanks :)
1
vote
1answer
449 views

Magento2 Override 2 classes in single plugin di.xml

I am making a custom module for displaying attributes in Minicart and cart page and I have changed two core classes vendor/magento/module-checkout/CustomerData/DefaultItem.php vendor/magento/module-...
1
vote
1answer
2k views

Magento 2: How to create a configurable product programmatically

I am new to magento and i have created a simple product programmatically from frontend and my question is how can i create a configurable product and link attributes and price and all, what to do, and ...
2
votes
3answers
2k views

“Telephone” is a required value in customer edit form

I have overrided customer edit form. But while saving record I'm getting error message "Telephone" is a required value. I don't want telephone field. So in my form telephone field is not there ...
1
vote
3answers
50 views

Programatically created user - wrong password when logging in?

I have to make a cron job that once a day creates users from a file on the server. The script works fine, but, the users it generates can't log in (only local for now, not live). Here is the code: $...
0
votes
1answer
63 views

enable middlename in registration form in magento 2.2.4

How to enable middlename in registration form in magento 2.2.4? Also when can i find customer attributes in Magento2.2.4 Admin. How to make customer attributes visible?
0
votes
1answer
43 views

How to dispaly data in table for form field in Admin edit form?

In my custom module I am saving data from front and it will display in the admin something like inquiry. In admin side edit form I have to display some products data in table. For example customer ...
2
votes
2answers
635 views

Magento 2.2 Add Masonry JS

I've a problem to include Masonry JS to my Magento 2.2 I've a custom theme in app/design/frontend/CustomVendor/CustomTheme In this folder I've a web/ folder and inside I've requirejs-config.js var ...
0
votes
1answer
100 views

Not able to add Custom phtml file on Product Page - Magento 2.2.4

I can't able to add/include my custom phtml file on product detailed page. Here is my entire flow : Added the following code in app/design/frontend/Themename/themedirectory/Magento_Catalog/layout/...
10
votes
3answers
3k views

Magento2.1 ui grid, remove or clear filter issue (after removing filter, result row apply to whole collection)

I created ui grid in magento 2.1.0 and facing issue while removing filters or clear all filters from ui grid. My filtered result occupies whole grid means same row repeated in the whole grid after ...
0
votes
1answer
45 views

Magento Open Source 2.3 / 2.2 - How many orders / inventary and SKU it can handle?

I'm about to start a project, But my concerned is on the data, the magento 2.2/2.3 can handle. The traffic figures are in 1 Million to 5 million and we are not interested in Enterprise model as of ...
2
votes
3answers
139 views

How to customize a product details page in magento2?

In magento 2 how to customize a product detail page in custom theme. app/design/frontend/companyname/themename/Magento_Catalog/layout/catalog_product_view.xml <?xml version="1.0" encoding="...
0
votes
1answer
59 views

Make changes in \vendor\magento\module-cookie\Block\Html\Notices.php

I want do do changes in the following file: \vendor\magento\module-cookie\Block\Html\Notices.php How can I stop that file from being overwritten when doing upgrades in the future? Can I override it ...
3
votes
6answers
245 views

Setting Meta Title with Redirect

I've been trying to set the meta title of a product listing page when an action is executed. I found this post on Magento2 StackExchange and tried to replicate in my Controller: <?php ...
2
votes
2answers
479 views

How to resize Image in Magento 2?

I want to resized image of subcategory. for that, I added this code in .phtml file.I'm getting wrong path for image <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); ...
1
vote
1answer
143 views

Check bundle product magento 2

How to check if product is a bundle in the checkout_cart_add_product_complete event? I want to redirect the page after adding to the cart when the product is bundled.
0
votes
2answers
353 views

ReferenceError: jQuery is not defined Magento 2

I created a countdown using JS. For that i need jQuery so I created requireJs file. var config = { paths: { 'countDown': "ABC_CoundDown/js/countDown" }, shim: { 'countDown': { deps: ['...
1
vote
1answer
37 views

Adding custom discount adds 2 times in EE 2.2.6

I am adding custom discount to my cart but it seems it is adding 2 times in the cart. Here is my model file code. $discount = 10; $baseDiscount = 10; $total->addTotalAmount('plandiscount', -$...
7
votes
6answers
5k views

How to change listing per page option?

I am trying to change per page option in magento 2 on product listing page Currently its 9, 15, 30 by default in toolbar I want to change it to 12, 24, 48, 96 etc Any help will be appreciated
1
vote
1answer
899 views

Magento-2 Mobile menu setup

Yesterday, I was having an issue with horizontal top menu as I wanted to make them invisible on frontend. I made it invisible by using css as: body.cms-my-homepage div.main-menu.menu-style-2{display:...
2
votes
2answers
347 views

Magento 2 : User Agent Conditional In Layout

Is there any way by which I can include block or .phtml in my theme layout? For e.g. I've a .phtml that I only want to include when site is visited in Mobile devices. How to achieve this? Any ...
1
vote
1answer
223 views

Magento1 to Magento2 data migration

I am new to Magento2, I need some guidance from magento geeks for migrating data from magento1 to magento2. Quick Overview I received a system that was built in magento2 from scratch. So I think ...
7
votes
2answers
361 views

Magento 2 Show timepicker using UiComponent

I want to show Timepicker in Ui Component Form. I could able to add the time field by using below code but not able to save value. Can anybody help on it. <field name="start_time"> &...
2
votes
1answer
281 views

How to create a new product type in magento2

I have created new product type in magento2 using https://www.classyllama.com/blog/custom-product-types-magento-2. After the i can't see any product info in view page.. It only display the Images tab ...