Questions tagged [magento2.2.2]

It should be used for questions about Magento 2.2.2

Filter by
Sorted by
Tagged with
1
vote
1answer
27 views

Static-content deploy runs only for en_US by default

Is it possible to set other local as default for static-content deploy command somehow? I have "he_IL" store (This is single lang store and I set this lang at the installation, nothing was added ...
1
vote
2answers
921 views

Menu in the Magento 2 admin panel not working

I just installed a fresh copy of Magento 2.2.2 and the menu (the one on the left side) is not working in the admin panel. Nothing happens when you click the icon. I checked the Chrome console and ...
1
vote
4answers
852 views

Fresh Magento - admin menu is not working

Buttons on left admin menu does not react on mouse actions. The error in console says TypeError: Formatter is not a constructor I tried setup:static-content:deploy but nothing happens.
1
vote
1answer
862 views

How to remove ?___from_store=fr on the url?

I'm using Magento 2.2.2, I have others language store in my Magento. how to remove ?___from_store=fr on the url? http://exsample.com/en/?___from_store=fr
1
vote
1answer
45 views

Magento 2 Cron job can't get finalPrice for configurable product

I have the following in my cron folder and also I have the following the Controller folder which is exact same code and it get the price when I load in the url but it refuse to get price in cron ...
1
vote
1answer
86 views

Magento 2 V1/Shipment API getParentItem on null

I am using postman the rest api to create shipping: http://myMagento/rest/default/V1/shipment POST: { "entity": { "order_id": 5873, "shipment_status": 1, "store_id": 1, "total_qty"...
1
vote
1answer
84 views

Why are product_id and item_id part of the request to update stock through the API?

I'm developing an application to integrate with the Magento inventory API, and I'm confused about the fields product_id and item_id. I'm PUT-ing to the API /V1/products/{productSku}/stockItems/{...
1
vote
2answers
344 views

For what there is the sales.xml file?

For what there is the sales.xml file? In the documentation, I can not find anything about this file.
1
vote
2answers
1k views

I want to disable developer mode

how can i hide errors from main site ? my developer mode is off php bin/magento maintinance:disable what can i do my site is not working. By mistake i run the command php bin/magento deploy:...
1
vote
1answer
164 views

How to bind the image in ko template

I have image tag in phtml file .. And also i got the value of images and media url from ajax call . How to bind it like that in ko template <img alt="<?php echo $sizeGuideImage->getAlt() ?&...
1
vote
2answers
464 views

Magento2: How to create custom API to get all product details of specific category?

Magento2 : I checked the list of Magento2 open source. I followed the below API: /V1/categories/:categoryId/products But this API giving only SKU, Position and Category ID of specific product. I want ...
1
vote
1answer
474 views

Magento 2 : What is use of observableArray in JS file with knockout JS?

I have checked observableArray word declared in js file at top position. I have been seen this function like this items: ko.observableArray([]). Is this function related to AJAX while response is ...
1
vote
1answer
63 views

Custom attribute creation in magento 2

While creating custom attribute in magento 2, what is the use of below 'backend' => '', 'frontend' => '' 'class' => '' 'source' => '' $eavSetup->addAttribute( \Magento\...
1
vote
1answer
307 views

M2.2 Recently view products remove Learn More Link

I have created a Recently Viewed Products widget and in the widget option I can select what is shown for every product, attributes and buttons. In the attributes there is an option of a Learn More ...
1
vote
2answers
2k views

Magento 2 Filter Product Collection by Multiple Attributes

In Magento 2.2.2, How Can Filter Product Collection by Multiple Attributes. I have the attribute_code with array values. attribute_code: my_attribute_code attribute_code values: Array ( [0] =>...
1
vote
1answer
292 views

How to join the three tables eav_attribute, catalog_eav_attribute, eav_attribute_label using attribute_id in magento 2 [duplicate]

How to join the three tables eav_attribute, catalog_eav_attribute, eav_attribute_label using attribute_id in magento 2. I am using the below query, But no get proper answer. I have created the export ...
1
vote
1answer
224 views

Magento 2.2.2 admin Shippings action View Warning: Invalid argument supplied for foreach()

I am getting this weird one When an shipping is created then navigating to Shippings I the Action column when click view I get the error: 1 exception(s): Exception #0 (Exception): Warning: ...
1
vote
1answer
269 views

i had error while starting the cron job

I had an error on starting cron job. getting this error, now im unable to do anything in magento :( Could not open input file: cron:run n:run my cron job for magento is below, * * * * * /usr/bin/...
1
vote
2answers
544 views

How to add filter to the collection of attributes in magento 2

magento 1 code to get all the attributes collection public function getAttributes() { $collection = Mage::getResourceModel('catalog/product_attribute_collection')->addVisibleFilter()-&...
1
vote
1answer
213 views

Magento 2. Command that is executed when admin:user:create is executed

Magento 2 has a console command admin:user:create At a quick search we find a class that defines a command with such a name Magento\Setup\Console\Command\AdminUserCreateCommand Yet putting a ...
1
vote
1answer
520 views

SQLSTATE[42000]: Syntax error or access violation: 1170 BLOB/TEXT column 'group_id' used in key specification without a key length

Customer Grid indexer process unknown error: SQLSTATE[42000]: Syntax error or access violation: 1170 BLOB/TEXT column 'group_id' used in key specification without a key length, query was: CREATE ...
1
vote
1answer
1k views

Display phtml block in another block page

As M1 if I need to display just some phtml in another block or page, so we have to create it in a current theme then we can retreive it via xml or the other block xml: <the_layout_handle> ...
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 ...
1
vote
1answer
523 views

Magento 2.2.2 Newsletter subscription - Something went wrong with the subscription

I have this problem with subscription of newsletter but the address is successfully stored in the Database. I have magento 2.2.2 fresh installation on server and allows php to send emails. system ...
1
vote
1answer
134 views

Magento redirects from virtualhost to localhost [closed]

In hosts: 127.0.0.1 www.demomage.com In httpd-vhosts.conf <VirtualHost *:80> ServerName demomage ServerAlias www.demomage.com DocumentRoot C:/wamp/www/mage <Directory "/"> Options +...
1
vote
1answer
67 views

Magento 2 How to get/group orders by shipping addresses

Seems like Magento doesn't have a way to get all orders by shipping addresses. This is obviously because of the following: Magento doesn't store addresses as unique entities, this means every time ...
1
vote
1answer
650 views

Magento 2.2.2 add to cart not working after server change

Add to cart was not working on local server and it was fixed by changing the base_url in database from "http://localhost/magento2" to "http://127.0.0.1/magento2". Now after all design changes when ...
1
vote
1answer
437 views

Magento 2.2 Not Loading theme and blocks

I have created a magento 2.2 application using composer. Everything working fine with Luma Theme. Next Step I need to extend the template. app / design / frontend /< Vendor name> / < Theme ...
1
vote
2answers
3k views

How To Download Magento 2.2.2 with Sample data using Composer?

I know how to install Magento 2 using composer. Magento latest release of version Magento 2.2.2. I don't know how to download or Installation with sample data Using Composer. I try to run direct "...
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
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
59 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
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: ...
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 ...
1
vote
1answer
36 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...
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 ...
1
vote
0answers
21 views

How to show the different contents to the customer and admin in the new order email?

Please help. I need to do this for only one website as I have multiwebsite functionality in my project.
1
vote
1answer
16 views

Magento 2 ui form multiselect field not checked not in $_POST

I have multiselectin my form displaying all store view available one is selected when I save only one show in the post array: <field name="store"> <argument name="data" xsi:type="array"&...
1
vote
0answers
51 views

How to override definition.xml file in Magento 2?

I am developing an extension to add another export format option in order toolbar in export button dropdown. What I found yet is that there are two options here (Sales Order Toolbar) right now: a) ...
1
vote
0answers
10 views

Magento 2 add body class into as per current page using toolbar.php plugin for category and search results page

I have created plugin for toolbar.php \Magento\Catalog\Block\Product\ProductList\Toolbar protected function _prepareLayout() { $this->pageConfig->getTitle()->set(__('Category Page')); ...
1
vote
0answers
28 views

Magento2 error while extension installation in create backup step

In my magento2 store I want to install the extension. I have tried this via composer as well as admin extension manager. Every time the process failed in Backup stage after generating the 4Gb of data ...
1
vote
0answers
36 views

Before Clearing cart I want to show Popup for confirmation

I have added popup it show but not clearing item from cart just reloaded on same page. Please someone look in this. Below is the my script. <script type="text/javascript"> require([ '...
1
vote
0answers
32 views

Issue in pragmatically create orders in magento 2

I want to create orders pragmatically by getting the data from xml. Reading data from xml part is done. when creating order steps i am getting this error. Parse error: syntax error, unexpected '$...
1
vote
0answers
138 views

Add a custom attribute to company in magento 2.2.2 for B2B

I am using B2B extensions and I want to add custom attributes to company entity, As a text field and create 6-digit number randomly for that i'm using $customcompanyattribute = mt_rand(100000, ...
1
vote
0answers
26 views

“Shop by Brand” extesion of “mazeplaza” not showing frontend pages

I am using "shop by brand" extension of "Mazeplaza". But it is not working and slow down my website from frontend and backend. None of the pages regarding brands loading in frontend. I have more than ...
1
vote
0answers
29 views

How to block ordering feature from backend when company/customer is set inactive in magento 2.2

How to block ordering from admin panel, when a company/customer status is blocked or inactive state. I am using B2B feature which has company module and version is magento 2.2.2 i am able to block ...
1
vote
1answer
50 views

How to override to remove/comment a line in customer_listing.xml in Magento 2

I want remove/comment this line <filterSearch name="fulltext"/> in customer_listing.xml located in vendor/magento/module-customer/view/adminhtml/ui_component/customer_listing.xml I want to ...
1
vote
1answer
166 views

Running php bin/magento commands returns nothing on 2.2.7 CLI php 7.0.22

I'm having some problems running the php bin/magento commands using PHP 7.0.22 on MAMP Pro, Mac, Magento 2.2.7 The commands was working about 2 hours ago when all of a sudden stopped working whereby ...
1
vote
1answer
520 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"&...