Questions tagged [magento2.2.2]

It should be used for questions about Magento 2.2.2

Filter by
Sorted by
Tagged with
0
votes
1answer
13 views

Magento 2.2.5 Unable to get orderGrandTotal() in success.phtml

I'm trying to get access to the grand total of the order but for some reason am unable to access this variable. I have tried multiple solutions by creation modules but nothing seems to be working. ...
2
votes
0answers
25 views

How do I add a text box next to the product save button?

How do I add a text box next to the product save button? I am creating a module in Magento 2. In the edit product, I want to add a text box next to the Save button. Below is an example of what I ...
0
votes
0answers
30 views

Magento 2 System Config Plugin

I have created a custom tab in system config and added 1 field Module Enable Yes/No and 1 Dynamic fields which is depends on Module Enable. When Module Enable is set Yes I created various dynamic ...
0
votes
1answer
13 views

Magento 2 : How to validate confirm password

Password confirmation not working, code is given below <div id="password-div" style="display:none"> <div class="field password required"> ...
0
votes
0answers
15 views

Magento 2 Get Core Config Data columns

How do one get the column scope_id from core_config_data via given path E.G: $this->_config->getValue(self::MY_PATH, ScopeInterface::SCOPE_STORE); The above returns the column value I need ...
0
votes
0answers
17 views

Magento 2 check whether value retuned from SCOPE_STORE Config is default(0)

I have this: $data = $this->_config->getValue(self::MY_CONFIG_PATH, ScopeInterface::SCOPE_STORE); $data will contain the my data whether it's a string or [] for the simplicity lets say it ...
0
votes
0answers
21 views

Magento 2 system config Concatenate data to existing field with plugin beforeSave or aroundSave

I have a drop down field containing fruits where I would like to concatenate some data e.G: Using a Plugin save the data like so: Bananas are high in potassium Where are high in potassium is the ...
0
votes
0answers
32 views

Magento 2 Add extension attributes in Quote Item

I want to add custom attribute in quote items Magento\Quote\Api\Data\CartItemExtensionInterface <extension_attributes for="Magento\Quote\Api\Data\CartItemExtensionInterface"> <attribute ...
0
votes
1answer
18 views

Magento 2 Dynamically Add file uploader in system config

How to add a file uploader render in a dynamically added rows? something like: But in dynamically added Like: Let say before or after drop down and the input text field? Best!
0
votes
1answer
22 views

Creating a dynamic row file upload and drop down option in system config

I've checked the example here: https://devdocs.magento.com/guides/v2.3/ext-best-practices/tutorials/dynamic-row-system-config.html Which add text inputs, But how to add other types of input such as ...
0
votes
1answer
26 views

Magento 2 require blocking all links

All links in my Magento 2 store just suddenly stopped working. If I remove the top require, it works: var require = { "baseUrl": "https://2f44f.mojostratus.io/static/version1564697154/...
1
vote
2answers
44 views

Magento 2 setTemplate and add content to phtml template

How to add bare HTML to a block e.g: $block = $result->getLayout()->getBlock('category.description'); $block->setTemplate('Vendor_Module::myTemplate/blank.phtml') ->toHtml('<p>My ...
0
votes
2answers
42 views

Magento2: redirection problem from observer or Logging Out from two application at same time from observer

I am trying to logout from two applications I have a logout observer, where I am trying to logout from external application and also from Magento. Here Problem is when I am logged out from the ...
1
vote
0answers
32 views

Magento2.22 In sitemap.xml inside more than product url getting like this “catalog/product/view/id/51”

I am using Magento2.2.2 and I used third-party module for URL regenerate this Iazel_RegenProductUrl and I apply command line through change URL for example apply this /usr/local/php71/bin/php-cli ...
0
votes
0answers
21 views

Magento 2 custom module select query doesn't work

I have the following query: SELECT `main_table`.*, `secondTable`.* FROM `table_one` AS `main_table` LEFT JOIN `table_two` AS `secondTable` ON main_table.blog_id = secondTable.blog_id WHERE (...
0
votes
0answers
24 views

Speed for the category page

Is there any solution to optimize the speed for the category page which is having more than 2.5 Lac products in Magento 2.2.2? I have tried to debug the code, I have just put only one attribute ...
0
votes
0answers
21 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'...
3
votes
2answers
23 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
1answer
21 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
1answer
17 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
38 views

Full calendar integration in Magento 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 ...
0
votes
1answer
41 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
24 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
21 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 ...
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
0answers
27 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
0answers
24 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
20 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 `...
0
votes
1answer
12 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?
0
votes
1answer
31 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
2
votes
1answer
64 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
1answer
116 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
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
27 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 ...
1
vote
2answers
103 views

Add Expire Headers Magento 2

there is a way to add Expire Headers for external static components? Magento 2.2.2 CE
1
vote
1answer
63 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: ...
1
vote
0answers
16 views

cms pages and block is not loading in backend

CMS pages and blocks won't load in the backend. It keeps loading and loading without not showing any pages or blocks. I reindex, compile, clear cache... But nothing changed. Any help would be much ...
2
votes
1answer
62 views

Checkout via authorize.net AcceptJS it will include https://js.authorize.net/v1/Accept.min.js

When checkout via authorize.net AcceptJS it will include https://js.authorize.net/v1/Accept.min.js, which return 404. While it should include https://js.authorize.net/v1/Accept.js
0
votes
0answers
35 views

How update shipping method based on coupon code?

I have created just one coupon code once user apply that at that time i want to apply free shipping method . normally UPS and USPS method are avialable but once user apply coupon code at that time i ...
0
votes
0answers
27 views

cart no, city and buttons are showing incorrect in Magento 2.2.7

Some how the city is not displaying during the cart summary. Also, another address is not clickable anymore, it is just an empty box. I have checked with the repo, and it seems that all files are ...
0
votes
1answer
63 views

How to add iframe tag in CMS page in Magento 2.2

How to add iframe tag in CMS page in Magento 2.2 <iframe src="https://google.com" frameborder="0" width="500" height="900"></iframe>
0
votes
1answer
56 views

how to active/deactive a module for each store by admin in magento 2.2

I want to give ability to admin to active or deactive a module for each store. at previous magento version this option was exist under store -> configuration -> advanced -> advanced menue and we ...
0
votes
0answers
25 views

Magento 2 : Error when importing customers

When trying to import Customers from the backend, Data validation is OK but when I click on import button, the page gets stuck on please wait for loader and I get the error : See the logs below ...
1
vote
1answer
47 views

Magento 2 how to create Single Time Picker

I know magento provides functionality like Single Time Picker: How to do it? I found how to create date picker and date-time picker. But for my task, i should to create single time picker...
0
votes
0answers
23 views

How to get custom tab input value in the product edit page in Magento 2?

I have created custom tab input type but I don't have an idea how to get their value and save value with product. <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
0answers
21 views

How to get the order details of a customer using the access token of other customer?

In my project there the two types of users: manager and captain. The manager should be able to view the orders placed by captain so i need to use the access token of manager to get the order list of ...
0
votes
1answer
126 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 ...
0
votes
0answers
30 views

Magento 2.2.2- ACL Permissions not Working for Customer module

I have created a new admin user and set a new user role which have access to only customer section. When we logged in with that particular user , we are able to see the customer list but when clicked ...