Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

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

What should we use instead of the Magento\Checkout\Model\Cart model?

The Magento\Checkout\Model\Cart class was marked as deprecated a long time ago (since 2.1 ver.). What should I use instead of it to work with a customers cart? I know that I can work directly with a ...
1
vote
0answers
49 views

SnowdogApps Menu error on Magento EE 2.2

I have installed a menu module from SnowdogApps from here https://github.com/SnowdogApps/magento2-menu. Install went fine, all tables were created successfully, but when I create a new menu in the ...
2
votes
1answer
311 views

cron:run Cannot instantiate interface Magento\Framework\ShellInterface

I have Magento 2.2.1 installed. I get this issue (got that issue also in 2.2) when running php bin/magento cron:run: Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\...
0
votes
2answers
3k views

Magento 2.2 : How to add a background image in _extend.less?

I'm trying to add a background image to a div in the template advertisement.phtml of my custom page layout home_custom.xml. For this, I have the following CSS in my _extend.less file: div.outer { ...
0
votes
0answers
510 views

Magento 2.2 admin grid does not show data

I try to make simple module, where customer send posts and admin can show these in the backend. I tried do this like here: http://techjeffyu.com/blog/magento-2-a-full-magento-2-module?tag=Magento2 or ...
3
votes
0answers
256 views

2.2 Pipeline deployment

I was reading on the new Pipeline deployment here but I don't understand how this is supposed to work in a repository. In developer mode static content is dynamic, but if the build system commits ...
3
votes
3answers
1k views

Magento 2.2 - Unable to create customer attribute programatically using InstallData

I have created a new module to create customer attribute. The same was working perfectly in previous magento 2 versions. But in magento 2.2 its not working. Could you pls check into that. <?php ...
3
votes
1answer
16k views

How to create and add Backend form to Custom admin grid in magento 2

I have created admin grid for Image Slider in backend and need to add backend form for that grid. If I click Add New slide or edit button, it needs to show a form. So Suggest me, how to create a ...
1
vote
0answers
423 views

Magento 2.2 registration.phtml dob field calendar not loading

I have a Magento 2.2 based dev site setup, I enabled the dob field via the admin panel so now the customer registration form registration.phtml shows the date of birth field. however when you click on ...
0
votes
1answer
2k views

Programmatically set category-product position

I want to sort products by manufacturer, but also allow store manager to override this easily. My first idea was to use category-product position and set it while creating product programmatically, ...
0
votes
2answers
442 views

Install via cli but exclude some core modules

I'm installing Magento 2.2 via command line using php bin/magento setup:install --backend-frontname="my-admin-value" --db-host=my.db.host --db-name=dbname --db-user=dbuser --db-password=dbpass --...
3
votes
1answer
790 views

Magento 2.2 : Multiple Image Uploader In Ui Component Form

In Magento 2.2 the multiple product image up-loader block has been moved from layout to UI component form. To make it compatible with Magento-2.2 I made the required changes in my custom module and it ...
0
votes
0answers
1k views

Fatal error: Uncaught Error: Cannot instantiate abstract class in Index.php in magento 2

This is my Controller file Index.php <?php namespace OX\HomeSlider\Controller\Adminhtml\Post; abstract class Index extends \Magento\Backend\App\Action { protected $_resultPage; ...
2
votes
2answers
2k views

Magento 2.2 unable to create new account

Whenever I try to create new customer account from home page, the page refreshes after submit and nothing is submitted. There is no any error message. I have check the register.phtml file in module-...
1
vote
0answers
599 views

How to manage custom attributes in group customer

i'm new in the magento world (and php community). I want to add some attributes to custom group in magento 2.2 I've created a new attribute by setup (his name is : 'exchange_id') : use Magento\...
0
votes
2answers
2k views

Magento 2 : How to write logs from a phtml file in a theme

How to write logs in var/log/whatever_file from a phtml file which belongs to my custom theme?
0
votes
2answers
479 views

How to add content to added Block magento 2

I made a block from admin side content->block And I can add data from admin side in it and add it to a page I know. But How can I add data to it using phtml and xml ? any working example would be ...
1
vote
2answers
771 views

Magento 2.2 Command line error after installation

I have installed fresh magento 2.2 which is working fine but command lines are not working. I am using ubuntu. Getting strange error: PHP Fatal error: Uncaught Error: Class 'DOMDocument' not ...
0
votes
0answers
36 views

Magento 2: Custom theme no products on listing page

I have created magento 2 custom theme and set that theme as current theme from admin. On frontend no products are found on listing page, search page and home page. I already have sample data. Please ...
1
vote
1answer
538 views

Magento 2.2.0 checkout regenerate session id very slow

Session saving in memcache. Сheckout page is load 16sec. From xdebug profiling i found out that the problem in function Magento\Framework\Session->regenerateId() session_start() exec 15 sec. Why it ...
2
votes
0answers
385 views

Magento 2.2: Add/Remove class in a div from default.xml

How to add or remove a class in the store-switcher div from default.xml ? I tried this : <referenceBlock name="store_switcher"> <arguments> <argument name="...
1
vote
1answer
486 views

Magento 2.2 : How To Specify External Library/Dependency In Your Custom Magento Module Deployed under the app/code folder

I have a (Not Open-Source) custom Magento 2.2x module that I'm working on, that has a dependency on an external composer package (bugsnag/bugsnag) Here's how my project is currently structured: ...
0
votes
2answers
586 views

Using media queries in

I'm extending the blank theme and adding styles to an _extend.less file located in /app/design/frontend/neil/mytheme/web/css/source/_extend.less Inside the file iv've got the following code // ...
2
votes
1answer
1k views

The attribute 'translate' is not allowed in Magento 2.2

I was created simple custom module in magento 2.1. And it's working fine in magento 2.1.9. But today I tried to installe in magento 2.2 and it's shows this error: 1 exception(s): Exception #0 (...
0
votes
0answers
64 views

About I/O Usage in magento2.2

In magento2.2 and PHP 7.1 When I am using admin my I/O Usage is so high I get 500 error. How to solve this issue?
0
votes
1answer
572 views

Error when creating new theme for magento 2.2

Hi I am new to magento and designing a new theme, and taking the guidance from the magento 2 theme design. I have installed the magento 2.2 on php 7.1 and everything works fine. Now I am trying to ...
2
votes
1answer
797 views

Magento2.2 language switching not working on catalog pages

I have magento2.2 fresh installation. I enabled two languages I can switch the language/store view on the homepage. also on default pages like create an account, forgot password etc. But when I am ...
3
votes
2answers
1k views

Magento 2.2 : requires php ~5.5.0|~5.6.0|~7.0.0 -> your PHP version (7.1.11) does not satisfy that requirement

Magento 2.2 should be working with php 7.1, why do I get this error and how should I fix it ? magento@me-dev:/var/www/html/me$ composer require magento2translations/language_zh_cn:dev-master ...
0
votes
2answers
1k views

Adding Module Causes Install Screen

[EDIT] Added screenshot showing can't run any of the CLI commands being suggested: [/EDIT] Implemented add new table official learning module (http://devdocs.magento.com/videos/fundamentals/add-a-...
0
votes
1answer
239 views

Web Setup Wizard 404

I have Magento 2.2 installed locally using composer on an Apache webserver. Everything seems to be working besides from when I login into the admin and go System -> Web Setup Wizard it takes me to a ...
0
votes
2answers
242 views

In Magento 2.2 how to add sample customer attribute?

How can I add customer attribute in Magento 2.2? Please help me in frontend and backend step wise step if anybody have solution please share it
0
votes
1answer
383 views

Magento2.2 default storeview error store id not found

I have created 2 store views in magento latest 2.2 I have enabled add store view to url in settings. But on home page it throws error store id not found. If I add en/ at the end of url or ar/ at ...
0
votes
3answers
131 views

Possible issues after updating from Magento 2.1.X to Magento 2.2?

If I will upgrade Magento 2.1.0 to Magento 2.2 then is there any possible issues which I have to take care after upgrade process? Will site work smoother or do I have to compromise with some ...
7
votes
1answer
1k views

Run static tests for a specific module

I am running php bin/magento dev:tests:run static to check my code quality but it takes a really long time. Is there a way I can run them for one module and/or one theme?
1
vote
2answers
539 views

Magento 2: Change “Qty” label to “Select Qty” in product view page

Is there another way to change the product page "Qty" label text to "Select Qty" than overriding the file /var/www/html/magento/vendor/magento/module-grouped-product/view/frontend/templates/product/...
1
vote
1answer
986 views

Add a block on the top of the page content in checkout page

I'm running Magento 2.0.1. I want to show a block in the checkout page. So, I created a module to override the checkout page. I have added the block code in the checkout_index_index.xml file, but the ...
3
votes
0answers
1k views

Magento 2 - Display eav attribute in customer grid (explanation & questions)

So where should I begin. In the last couple of days i've been working on showing custom attributes in the customer grid. There a couple of thing i would like to discuss since I don't really know the ...
0
votes
1answer
34 views

2 websites 2 domain 1 installation

I'm setting up a pretty complex site with a lot of API handling. Now that site needs to have 1 installation and 2 websites on 2 domains. I'm not sure how this works with Magento. What i have now So ...
0
votes
3answers
954 views

Store View Switch Stopped Working After Magento 2.2 Upgrade

Since I have upgraded my website to Magento 2.2.0 (from 2.1.9), the store view switch stopped working on all the pages save for the homepage and the contact page. I have 2 store views for 2 languages,...
2
votes
1answer
2k views

Magento 2.2: Unable to unserialize value

After running composer require magento/product-community-edition 2.2.0 --no-update composer update I ran bin/magento setup:upgrade But while running this command I get the following error: ...
2
votes
1answer
847 views

Magento 2 OAuth API - Consumer key has expired

I've created an integration in System->Extensions->Integrations and allowed all access. I'm using Postman to test the API, but I'm getting error: Consumer key has expired. I've tried cache:...
2
votes
1answer
424 views

Magento 2.2 : New features for Community Edition

I am looking for new features that have been added for Magento 2.2 CE since 2.1.x and whether or how will it change anything major for Magento developers.
0
votes
1answer
435 views

Magento 2.2 Add custom library file TCPDF

I need to tcpdf (http://tcpdf.org/) library in magento2.2. I have added this library in Magento2.1.9 in lib/internal/TCPDF folder. In that, I have rename tcpdf.php class to TCPDF.php and tcpdf class ...
1
vote
0answers
328 views

How to override core catalog product option model file in magento2

I want to get current custom option's data while saving product and add it to my custom table. I have tried it with two ways but similar error is thrown: resource isn't set First Way: In my di.xml : ...
0
votes
2answers
681 views

How to add title to header without breaking search box

I am creating a theme for magento 2.2. Created my first custom block in app/frontend/CUSTOM VENDOR/CUSTOM THEME/Magento_Theme/templates/heading.phtml containing the following code: <?php //create ...
0
votes
1answer
301 views

Magento 2: Same collection on listing page

I have some weird problem Here is my code that write in afterGetPrice() function, I am using plugin here to change price of product based on my custom table $customPrice = $this->...
1
vote
0answers
515 views

Magento 2 : showing price difference not working when configurable options clicked

I have override app/design/vendor_name/themename/Magento_ConfigurableProduct/templates/product/price/final_price.phtml file but It doesn't change while click on configurable options. <?php /** * ...
0
votes
1answer
498 views

Error running SQL Query - Cannot truncate a table referenced in a foreign key constraint

I am trying to clear all test orders from Magento 2.2.x using this SQL query in my PHPMyAdmin but I'm getting an error. Here's the query I am running: SET FOREIGN_KEY_CHECKS = 0; TRUNCATE `...
0
votes
1answer
357 views

Magento 2.2.0 Not Working Properly

After installed, trying to login admin panel getting an error, Warning: class_implements(): Class � does not exist and could not be loaded in C:\xampp\htdocs\abc\vendor\magento\framework\Code\...
0
votes
1answer
756 views

Local storage on checkout page

Where and why checkout-data section from local storage object cleaned after added product to cart? Before: { "checkout-data": { "selectedShippingAddress": null, "shippingAddressFromData": ...