Questions tagged [magento2.2.2]

It should be used for questions about Magento 2.2.2

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

Magento update version 2.2.2 to 2.3.2 and cloudfare cache

I have upgraded Magento 2.2.2 to 2.3.2 successfully it works fine on a local server but when do the same thing on server, it creates an issue. the server has complete some different settings. On ...
0
votes
0answers
18 views

Magento Router getParams() duplication reach 100 iteration

Not sure why I am having this issue any help appreciated. When I check: $request->getModuleName(), it is already set and $request->getControllerName() is also already set, the only one that isn'...
1
vote
1answer
633 views

Could not find package 2.2.3

When updating from 2.2.2 to 2.2.3 with composer require magento/product-community-edition 2.2.3 --no-update I get this error: [InvalidArgumentException] Could not find package magento/product-...
1
vote
2answers
928 views

Static files version folders not found hence design collapsed and getting 404 for all css and js

I was trying to rectify some ACL issues in my application I removed the static folder inside pub and I run di:compile and static-content:deploy and I gave 777 permission to var and generated folders, ...
3
votes
1answer
1k views

Magento 2 Too many password reset requests even when password reset protection is disabled

I logged in as administrator to Magento backend and trying to reset password for some customers. I have disabled password protection from Configuration -> Customers -> customer configuration. so it ...
3
votes
2answers
22 views

Magento 2 Set $_POST to an empty Array()

I can't seem to find a way to set $_POST to an empty array. I have a form in phtml action to self I can get $_POST values the following ways: $this->getRequest()->getPostValue('form_key'); $...
0
votes
2answers
259 views

Manipulate package weight before shipping rates calculation

I need to add some logic to weight package calculation before shipping rates are calculated. So I created a custom module with an observer on sales_quote_address_collect_totals_after event. The ...
2
votes
3answers
2k views

Magento2 unit tests doesn't run using vendor/bin/phpunit or vendor/phpunit/phpunit/phpunit

Env: PHP 7.0.27-1+ubuntu16.04.1+Clear Magento 2.2.2 with sample data (downloaded in archive) I have created new test module that very simple with unit test for one class. When I run php bin/magento ...
0
votes
1answer
19 views

Magento 2 system xml config get groups name programtically

I have a custom phtml file in system config and been added to 3 groups: group_1, group_2, group_3 in phtml I have: <input id="my_value" type="number" name="groups[group_1][groups][my_settings]...
0
votes
0answers
47 views

Customer name shouldn't display after rebooting the system

Steps to reproduce. login as a user close the tab without logged out restart the system open browser and open magento local see the welcome message ACTUAL RESULTS - Welcome!User name! - Sign in - ...
0
votes
1answer
15 views

magento 2 system configuration with a custom .phtml template?

in system.xml: <field id="custom_field" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1"> <label>Custom Field</label> <...
2
votes
0answers
26 views

Full calendar integration in magneto 2.2.2

I am trying to integrate the full calendar in Magento 2.2.2 with event management extension(custom). I have follows all steps as suggested But still, it is not working. Please help me to execute ...
1
vote
1answer
667 views

Magento2 : Disable Pagination on certain condition from Category Page

I want to disable pagination and per page product which display on category page on some condition i.e. if I set cookies than on category page I want to disable pagination from category page otherwise ...
0
votes
1answer
40 views

Magento 2 set page title as html

How to set page title to have html on it E.G $this->pageConfig->getTitle()->set(__('Your'.html_entity_decode(' <span>Page</span>'). 'Title')); That's ain't working! Anyone know ...
1
vote
1answer
23 views

Multiple Images Select from Media storage from admin Panel

By Default magento when we select images from media storage it's select images One by One. Is their any way in which we can select multiple images at a time and assign images to product. Please see ...
1
vote
0answers
20 views

Magento 2 Model getData for field at specific store_id

In my Model I have a method getSummary() E.G: public function getSummary() { return $this->getData(BlogInterface::SUMMARY); } I have 3 stores: en_1,fr_2,de_3 I've only set summary in ...
1
vote
2answers
898 views

Add template file in admin edit form

I want to add phtml file in Grid\Edit which is contain image or other html part Following Form.php file <?php namespace Vandor\Namespace\Block\Adminhtml\Grid\Edit; use Magento\Backend\Block\...
3
votes
4answers
5k views

Get database connection in magento 2

I wish to have code equivalent in Magento 2. The below one is Magento 1 $resource = Mage::getSingleton('core/resource'); $connection = $resource->getConnection('core_read'); I need the above ...
0
votes
0answers
10 views

Magento 2 uicomponent form.xml set data

How do one populate data if form field is in Add New product E.G: I don't seem to find a way manipulate the fields from DataProvider If is New then: $this->_loadedData return Array() I've tried ...
0
votes
2answers
1k views

Magento 2 Blank Screen Product Detail page

I added one product from Magento admin panel (Magento 2.2.2) Cleared cache and indexing, Product appears in search and listing page and you can even add to cart from Listing page. But when you click ...
0
votes
0answers
18 views

Magento 2 ui component admin field disabled/enable checkbox on userChanges event

Similar to native Magento URL Key Create Permanent Redirect for old URL: I have a custom module and wants to achieve same result: I have created a group exactly how category_form.xml in my_form.xml ....
0
votes
3answers
259 views

magento2 creating a lot of catalogrule_product_temp tables

Magento2.2.5 based multisite (multi store view)seems to be creating a lot of temporary tables such as catalogrule_product__temp9a310576 catalogrule_product__temp998786f4 etc... However I am not sure ...
0
votes
0answers
17 views

ios Safari - Magento 2.2.2 Responsive Menu Subcategories not Expanding

ios Safari - Magento 2.2.3 Responsive Menu Subcategories not Expanding. Hello, We're finding an issue that occurs with iphone and tablets using Safari. It as a high occurrence rate: Steps> 1. Visit ...
0
votes
0answers
17 views

Magento 2 product collection getSelect Order by Case unException Unknown column 'name' in 'order clause'

I need to use ORDER BY CASE name which is product name Query: SELECT `e`.*, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`stock_status` AS `is_salable` FROM `...
1
vote
1answer
517 views

Magento 2: Image not uploading in grid "Attention: File was not uploaded”

Created a custom module using Ui_Component,facing problem during image upload. Error (On alert) : Attention: File was not uploaded Ui_Component Form Code for Upload: <field name="icon"&...
1
vote
0answers
107 views

ReferenceError: initializeFieldsetDataByDefault is not defined Upgrade issue Magento 2.2.2

I have upgraded website from 2.0.7 to Magento 2.2.2 but when i try to open product or category in admin than console showing me below error. ReferenceError: initializeFieldsetDataByDefault is not ...
3
votes
1answer
1k views

Magento 2.2.2 Advanced Reporting Not working

I went through this process https://docs.magento.com/m2/ce/user_guide/reports/advanced-reporting.html but yet I still get 404. Anyone have any idea what else could be? Thank you.
0
votes
1answer
11 views

magento 2 Get Top Search Terms

Is there a way to get the 5 tops search terms like in the Dashboard as array without having to query database->table directly sorting them popularity limit 5?
2
votes
1answer
68 views

Magento 2 - Add a new field in checkout address form js error

Magento version: 2.2.2 I need to add a custom field in address form on checkout page. So i did what is described on magento documentation: http://devdocs.magento.com/guides/v2.2/howdoi/checkout/...
0
votes
1answer
28 views

301 Redirect the Out of Stock Product Pages

Want to redirect for the products who are out of stock to custom url Had tried below url but it did not helped https://stackoverflow.com/questions/4824072/magento-out-of-stock-product-seo-problem
0
votes
1answer
2k views

How to get the child product ids from a product id in magento 2

How to get the child products id from a product id in magento 2. I am saving the products with its custom attributes. And it saved successfully. But I wish to check what type of product i have using ...
0
votes
2answers
1k views

Magento 2 JS Translation Not Working

Is this a magento bug or is something I am doing it working I had created my translation file in my module i18n. For testing purpose I just modified few text. app/code/Vendor/Namespace/i18n/en_US....
1
vote
1answer
155 views

Magento 2.2.5 How to display item prices out of stock

Even if Magento 2.2.5 Configrable Product is out of stock, I want to display the item price. How can I see the price?
1
vote
1answer
54 views

why my routes.xml is not working in admin or on front end view both

I donot understand why my routes.xml is not working , see this and tell me if you get something wrong in it . thats the code snippet . <?xml version="1.0" ?> <config xmlns:xsi="http://...
2
votes
1answer
230 views

Not able to translate OK and cancel buttons in confirmation popup minicart

After adding an item into cart if we goto mini cart and click on remove item a confirmation popup with Ok and Cancel option will appear. I am not able to translate the Ok and Cancel buttons. Please ...
0
votes
1answer
975 views

Magento 2.2.2: problem with php bin/magento setup:di:compile

when I try to compile after setup:upgrade It displays for me blank page with error in log file: main.INFO: Broken reference: the 'logger' element cannot be added as child to 'after.body.start', ...
2
votes
2answers
58 views

I cannot change from Products only to Static block and products in Display Settings of an existing category

Working with Magento ver. 2.2.2 I wish to change the design of category pages. Now certain categories are displaying only products, But I want to display a static block and products. I create the ...
0
votes
1answer
1k views

Magento 2 knockout Select options not returning the value

I have Created custom component with select drop down when I select an option and alert the select option it spits out : function observable() { if (arguments.length > 0) { ...
2
votes
1answer
47 views

Magento 2 extend $.mage.quickSearch Widget

I don't seem to be able to extend quick search module widget form-mini.js found in module/path: ../vendor/magento/module-search/view/frontend/web/form-mini.js How can I extend in my custom module $....
0
votes
0answers
68 views

Magento 2.2 - Uncaught TypeError: this.modal.zIndex is not a function

Am using Venus need theme, on mini cart's delete click and Checkout's Already have an account? Click here to login throws this issue. Uncaught TypeError: this.modal.zIndex is not a function modal....
0
votes
1answer
2k views

How to export all the attribute and its options in magento 2

I wish to export all the attribute and its options in magento 2 via script. Please provide me a solution, How to export attributes and its options
0
votes
1answer
1k views

How can i add custom category description block?

i want to add another category description section after the product listing on category view page. Is it possible without coding in Magento 2.2? If not how can i put it?
6
votes
4answers
10k views

Magento 2.2.2 .htaccess Internal Server Error

I have uploaded 2.2.2 file on my server and wanted to install it but it gives Internal Server Error. I have checked the cPanel error.log and found following error log [Thu Dec 28 22:35:40.272102 ...
0
votes
0answers
4 views

Magento 2 Create Url Rewrite from configuration system.xml

How to create url rewrite from system.xml configuration for particular store view when saved. Best!
0
votes
0answers
20 views

Magento 2 ui form component switcherConfig value expression

Doe anyone know at all if possible to have expression to evaluate a value in rules E.G : <switcherConfig> <rules> <rule name="0"> <value>EXPRESSION HERE</...
1
vote
0answers
9 views

Different Product Pages Displayed when I Change URL Key From admin panel

I am using Magento 2.2.2 and facing an issue and trying to resolve it,While creating a new product or editing already added product when i change URL key of the Product from SEO block i get two ...
0
votes
1answer
1k views

Magento 2 : Payment Method is Hidden in Admin When Creating Manual Order

Recently I upgraded to Magento 2.2.2 and tried to create a test order on my site via admin. All goes fine until selecting the payment method. I've enabled Purchase Order as a payment method, and ...
1
vote
2answers
56 views

Add Expire Headers Magento 2

there is a way to add Expire Headers for external static components? Magento 2.2.2 CE
0
votes
1answer
95 views

Magento 2.2.2 - Warning: SessionHandler::read() No space left on device

My application is showing error: Magento 2.2.2 - Warning: SessionHandler::read() No space left on device (28) in /var/www/html/vendor/magento/framework/Session/SaveHandler/Native.php on line 22 I ...
1
vote
1answer
53 views

Uncaught Error: Call to a member function dispatch() on null View\Element\AbstractBlock.php on line 652

help needed i am creating a factory in block and get data from model it give result in block but when i return this factory and use this block function in phtml file it give error " Fatal error: ...