Questions tagged [magento2.2.2]

It should be used for questions about Magento 2.2.2

Filter by
Sorted by
Tagged with
1
vote
2answers
1k 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
3answers
614 views

Frontend show message “Merge for content type” when Upgrade magento 2.1.8 to version 2.2.2 :

Frontend show message "Merge for content type" when Upgrade magento 2.1.8 to version 2.2.2 : 1 exception(s): Exception #0 (InvalidArgumentException): Merge for content type '' is not supported....
1
vote
2answers
710 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
156 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
1answer
91 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://...
1
vote
2answers
1k 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
326 views

Magento 2 Add Custom Dynamic Link in Customer Navigation

I can't figure it out how to add links dynamically to customer navigation. this is my xml: <referenceBlock name="customer_account_navigation"> <block class="Vendor\Module\Block\Custom\...
1
vote
1answer
946 views

Magento 2 - How to add custom values from custom table to product custom attribute?

I want to get the locations from custom_location table values to custom product attribute multi-select box. custom_location values like: 1 - location_1 2 - location_2 3 - location_3 4 - ...
1
vote
1answer
359 views

Magento 2 Command line throw errors in developer mode

In production mode, my website is working fine. But as soon as I enable developer mode, I can not use command line any more. In developer mode, if I use for example php bin/magento cache:flush, I'll ...
1
vote
3answers
83 views

Check out page takes so much of time in Magento 2.2.4? [duplicate]

Check out page takes so much of time in Magento 2.2.4. I tried to checkout the product in Magento 2 it takes so much of time
1
vote
1answer
176 views

Custom option in product creation is not taking '0' as a value

While creating products we have customizable options. After adding the option, in the add value field if I give 0(zero) its not taking.Giving Invalid option value error message.But its taking 00.How ...
1
vote
1answer
951 views

Cash On Delivery payment method not showing in checkout page in magento 2

Cash On delivery payment method not showing in the frontend. I have enabled the offline payment methods in the backend, It shows all offline payment methods in frontend except COD. Please provide me ...
1
vote
1answer
1k views

Magento 2.2.2 Migrate site in another server. Points to look out

We are planning to transfer out test site to the production server. What must we look out for? What changes ought to be made?
1
vote
1answer
82 views

Magento 2 Top links

How to change the actions of top links in Magento 2 My Account --> customer/account to My Account --> customer/dashboard
1
vote
1answer
415 views

Magento 2 : Error when i click the admin->configuration

I am getting this error when I click on stores->configuration Notice: Undefined index: id in D:\xampp\htdocs\tork\vendor\magento\module-config\Model\Config\Structure\Element\Iterator.php on line ...
1
vote
1answer
70 views

Magento 2.2.2 Customer register

I am updating the schema of customer_entity and add a field referral code and also add a new field on the registration form. Now I want to add this field data to the customer_entity new column. how ...
1
vote
3answers
53 views

Magento 2: Get product

How to get the product by price range through object manager in phtml file. Like following Get product where price is greater than 1 and less than 25
1
vote
1answer
833 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
2answers
1k views

No such entity with id = 0 for CategoryRepository

I am new to magento2. Have worked enough on magento 1 but this is my first project with magento 2.2 and i ran into issue. I have magento 2.2 setup and installed template monster theme. Everything was ...
1
vote
1answer
28 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
4answers
1k 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
960 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
146 views

Magento 2.2.2 to Magento 2.3.2 - setup:upgrade error

After being able to update magento to 2.3.2 Which is in current state when I try to run the command bin/magento setup:upgrade: get the below error root@---:/var/www/html# bin/magento setup:upgrade ...
1
vote
1answer
122 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
204 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
217 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
2k 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
327 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
1answer
838 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
103 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
413 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
3k 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
406 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
259 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
389 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
663 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
264 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
2k 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
899 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
712 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
194 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
988 views

Magento 2 : How to add Custom link product Attribute in Custom product link grid

I have added new custom product link type and it working fine. I want to add some custom attribute to it grid and in grid i want to give text box option for enter custom attribute value and when ...
1
vote
1answer
71 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
786 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
511 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
0answers
14 views

Magento 2.2.2 order refund REST API Before Plugin get item order to refund

Vendor\Module\Plugin\Order\Plugin.php: namespace Vendor\Module\Plugin\Order; class Refund { /** * Create refund for invoice * * @param int $invoiceId * @param \Magento\Sales\...
1
vote
1answer
64 views

Magento 2 credit memo API observer/plugin

I'm interested to know if an observer or plugin will be trigger if a credit memo is created via API rest example: POST /V1/creditmemo/refund OR POST /V1/invoice/{invoiceId}/refund ref:https://devdocs....
1
vote
1answer
130 views

Notice: Undefined index: default in vendor/magento/module-catalog/…BatchSizeCalculator.php

I got this error when try to reindex catalog_product_price php bin/magento indexer:reindex catalog_product_price Notice: Undefined index: default in /public_html/vendor/magento/module-catalog/...
1
vote
0answers
18 views

Default store as empty value in customer creation page

I would like to set default store value to empty value or 0 in stores dropdown list near field "Send Welcome Email From", in customer creation page. I like also to receive an error when user keeps ...

1 2 3 4 5 13