Questions tagged [magento2.2.2]

It should be used for questions about Magento 2.2.2

Filter by
Sorted by
Tagged with
2
votes
1answer
45 views

Adding new regions won't persist

I followed an example and created a custom extension that would add some regions to the directory_country_region & directory_country_region_name tables. I want to make sure that the data I write ...
2
votes
1answer
448 views

Magento 2.2.2: Customer Grid Indexer not working

While re indexing got an error: PHP Fatal error: Uncaught Error: Call to undefined method Magento\Customer\Model\Indexer\Source::addAttributeToSelect() in /var/www/html/ncsmokehouse/vendor/magento/...
2
votes
0answers
225 views

Strange behavior with the redirects in Store views, Cms pages, Cookies

Config : Front : I have Two store views 1:simple, 2:pro. Admin : 1Website->1StoreGroup->2Storeviews: simple and pro Cms Pages : I created different Cms pages, let's taking for example : 2 (A,...
2
votes
0answers
27 views

How the guest order is mapped with the customer who is registered in success page in magento 2

How the guest order details are mapped with the customer who is registered by clicking Create Account button in the success page in magento 2.
2
votes
0answers
24 views

T-Hub Shipping tracking number not pairing with order

I have Magento 2.2.2 and T-Hub for shipping. In version 1.9, T-Hub would send the shipping tracking number directly to the "Shipment" file. Both the product detail and the tracker would appear ...
2
votes
0answers
40 views

Magento 2.2.2 product images are not loading on product page

I am using Magento 2.2.2 in which product images loading on all other pages except product page. After solved bootstrap error
2
votes
0answers
202 views

Grid Serializer Magento 2.2 In product edit page - adminhtml

module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module....
2
votes
0answers
143 views

Magento 2 get catalog price rule Action applied and Discount Amount on product list page

I would like to display text for each product on product list page for a e.g on a category all product with discount but there are 4 options which consist of percentage or fixed : So if Apply is ...
2
votes
0answers
97 views

Magento 2: Minicart is not updated for certain storeviews when adding product for the first time

II have multiple websites and storeviews in my Magento 2.2.2 installation. I have experienced a weird issue, that for some storeviews, when adding a product to the shopping cart for the first time, ...
2
votes
4answers
2k views

How to override core files into app/code/Magento folder in magento2

How do I override core files in app/code/Magento folder in Magento 2? I want to change core functionality so I need to override core files in the app/code/Magento folder instead of directly changing ...
2
votes
0answers
947 views

Magento 2 reindex gives error Duplicate entry

I am experiencing an issue which not sure why when I try to reindex it gives the error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4458-142-1-1293-4458' for key 'PRIMARY',...
2
votes
1answer
17 views

Product Image Uploader to Preview Product M2.2.2

My goal is to have the same functionality as the "Image and Video" uploader to preview my products in a block I created. As of right now, this is what my module looks like. If you need any more ...
2
votes
0answers
62 views

Layered navigation is working in magento 2.1.7 but not working in magento 2.2.2

Hear is my layout file same code is working fine in magento 2.1.7 but not working in magento 2.2.2. I don't know why it's not working : <referenceContainer name="sidebar.main"> <...
2
votes
0answers
722 views

(Solved) Magento 2.2.2 - Update product price per website programmatically not working

I'm trying to import product prices from an XML file, which contains prices in two different currencies for the same product (EUR and DKK). I've created a website for each currency and set the "...
2
votes
1answer
354 views

is there a way to add custom variables to product description (using the editor) in magento 2?

I am using magento 2.2.2 and I want to add custom variables to the products description. for now, I can do that with the pages but not for the products (in the page editor there's a button called "...
2
votes
0answers
118 views

Magento 2 how to skip shipping address and shipping methods step

I am trying to skip Shipping address & shipping methods step (i am trying to show checkout page as like downloadable product ) I commented below code in checkou_index_index.xml file, but payment ...
2
votes
0answers
39 views

Magento2 : Best way to handle Multi Device login using REST API Auth

I am creating an auth token for mobile customer using /V1/integration/customer/token When I use the same customer credentials in Second mobile device the first auth token is invalidated as the ...
2
votes
0answers
594 views

Lazy load Js not working in Magento2.2.0/1/2 Version

I have https://www.magebees.com/lazy-load-images-extension-for-magento-2.html this one extension, but not working properly- js errors like window undefined..
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/...
2
votes
0answers
50 views

How Magento 2.2.2 creditmemo create and save functionality work [closed]

While working on custom creditmemo functionalities, I created this flow diagram to show a high level view, how Magento 2.2.2 performs creditmemo create/save operation from admin area.
2
votes
0answers
87 views

Magento 2.2 Rest Api creating same url-key for different product names

has anyone already faced the problem in Magento 2.2, that you have two different product names and magento creates the same url-key for both? Like: name: Product Name 1 url-key: product-name-1 name: ...
2
votes
0answers
264 views

Homepage - blank screen, Admin - The page isn’t redirecting properly

After changing mode Magento homepage shows blank screen, and admin - The page isn’t redirecting properly There are no errors in reports or exception log. In system.log: Broken reference: the '...
2
votes
1answer
1k views

Magento 2.2.2, Unable to unserialize value, magento_umask and edting Json.php did not help

After upgrade I'm getting below error in my local : Exception #0 (InvalidArgumentException): Unable to unserialize value. #0 myPath/vendor/magento/module-theme/Controller/Result/MessagePlugin.php(...
2
votes
1answer
395 views

Prevent child block from cache (cacheable false) but not parent block (cacheable true) in magento 2.2.2

I am working on a custom module template where I need to show some random string only in some part of a page and string should be generate randomly on every time page reload also the rest of the ...
2
votes
1answer
244 views

Is there any API for creating and editing catalog price rules in Magento 2.2.x

I needed to perform this task for a customer where I have to create, edit and delete catalog price rules in his magento site based on some backend functionality in another system he runs internally in ...
2
votes
1answer
147 views

M2: Is it safe to remove customer entities straight from customer_entity table?

I have tons of spam accounts in my store (M2.2.2) and I'm curious - is it safe to remove them with well-tested pattern straight from customer_entity table? Since Magento 2 has triggers and it will do ...
1
vote
3answers
3k views

Magento 2.2.2 how to check if current page is a CMS page in .phtml file?

I am using the following code to check if the current page is Product detail page: $objectManagerCms = \Magento\Framework\App\ObjectManager::getInstance(); $registry = $objectManagerCms->get('...
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 ...
1
vote
2answers
1k views

How to update or rename the attribute code of the attribute in magento 2

How to update the attribute code of the attribute in magento 2. I have refered below link https://stackoverflow.com/questions/5198266/how-do-i-rename-an-attribute-code-in-magento
1
vote
2answers
723 views

Add js to module via requirejs doesn't work?

Does someone knows why it doesn't work ? app/code/Vendor/Module/view/frontend/requirejs-config.js var config = { map: { '*': { module: 'Vendor_module/js/go', } } }...
1
vote
3answers
3k views

Magento 2 Admin Page Error: Your current session has been expired

Fresh Install of Magento 2.2.2 on Centos (Plesk) with Apache 2.4, php 7.0.2 + all modules, mariaDb 10.1. Magento Installation was done via browser wizard -> readyness check-> everything was ok. When ...
1
vote
1answer
2k views

Magento 2 not minifying JS, CSS or HTML in Production Mode

I am running a magento 2.2.5 CE in production mode with two storefronts setup. The settings in admin are as follows: Minify Html: Yes Merge JavaScript Files: Yes Enable JavaScript Bundling: Yes ...
1
vote
2answers
360 views

Magento 2 Custom module only for a specific storeview?

I have a Magento 2.2.2 website with different storeviews. I have made som custom modules. Is that possible to have my custom modules only work for a specific storeview?
1
vote
1answer
1k views

Custom js fie not working Magento 2

Currently I am working in magento2 theme part. And I have a main.js file which I have added via default_head_blocks.xml . But its having jquery conflict. I removed jquery conflict using noConflict. ...
1
vote
3answers
1k views

Magento 2 : setOrder not working in collection

In my custom collection $career_collection->setOrder('career_id','ASC'); not working. My function is below public function getAllCareers(){ $Careers = $this->_careersFactory->create(); ...
1
vote
1answer
81 views

Want to display the clock in logo

I'm working for displaying the clock in the logo. it must display the current time. I had modified logo.phtml and put the js for clock in pub/static/fronend/theme/js folder. All are went well. And ...
1
vote
1answer
427 views

How Do I create Backend form in magento 2 without using ui-component

I have created grid using ui-component, Now I want to create form without using ui-component. So please provide me a solution
1
vote
1answer
440 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
1answer
56 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
419 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
1answer
175 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
663 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
213 views

Magento 2 Command line through error 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
82 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
2answers
2k views

How to get the attribute id by attribute code in magento 2

I have the attribute code, But how do I check whether the attribute is exist in the attribute set or not. Please provide me a solution how to get the attribute id from attribute code in magento 2
1
vote
1answer
134 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
726 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
709 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
75 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
368 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 ...