Questions tagged [magento2.2]

Questions related to Magento 2.2 version of PHP eCommerce software and platform. Questions should be related to writing code for Magento. General Magento questions may be asked on https://magento.stackexchange.com

General Magento questions may be asked on Magento.SE. Questions not related to programming are off-topic


Related tags


233 questions
0
votes
2 answers

How to add language code after domain name on nginx

I would like to add en-us language code on URL. The expectation is as follows. When a user hits on http://example.com/, page should redirect users to http://example.com/en-us/ Note: I have achieved this with the following code. location = / { …
Karthi Skb
  • 322
  • 4
  • 15
0
votes
1 answer

Class 'PHPUnit\Framework\TestCase' not found when running compilation - Magento 2

I have problem in the magento 2.2.3 compilation. when I run the compile command php bin/magento setup:di:compile Its output this Compilation was started. Repositories code generation... 1/7 [====>-----------------------] 14% 1 sec 58.0 MiB Fatal…
0
votes
0 answers

Magento 2.2.2 wysiwyg upload images broken in admin

I have tried to upload image in block using wysiwyg editor. 1.click the Insert/Edit image 2.choose a image 3.save but image not showing in preview.
Pradeep Singh
  • 3,582
  • 3
  • 29
  • 42
0
votes
2 answers

Magento 2 - getCollection returns only simple products

I'm trying to get all the products. I'm doing this way: $objectManager->get('Magento\Catalog\Model\Product') ->getCollection() ->addAttributeToSelect('*'); But only simple products are returned. Getting the NOT RETURNED…
Javier S
  • 379
  • 3
  • 13
0
votes
1 answer

Trouble with replacing an Add To Cart button

I am trying to replace the template for the Add To Cart button, but nothing is happening. Layout file: app/code/Plumrocket/Callforprice/view/frontend/layout/catalog_product_view.xml
0
votes
1 answer

How to upgrade multiple file of database in magento 2

I am not able to update upgrade schema file. I want to update database using upgrade schema file that i have already updated. In my module i have a database table which is created using install schema file. This is my UpgradeSchema…
0
votes
1 answer

Magento 2: How to add sidebar for frontend and backend for all pages?

how to add sidebar for frontend and backend for all pages in Magento 2? I can use luma or blank theme. Example sidebar
Andry
  • 53
  • 1
  • 7
0
votes
1 answer

varnish 4.1 default.vcl permissions denied

When I'm trying to add magento 2 varnish.vcl file by creating a symbolic link, varnish service stop working with error permission denied, while if I use default varnish configuration file varnish works smooth. My Stack is ubuntu 16.04, varnish…
Moeen Basra
  • 733
  • 4
  • 18
0
votes
1 answer

can't install magento2 extension from backend. Why?

I have installed magento 2.2.2 successfully. Now I trying Installed some extension from magento admin panel using web setup wizard option. I Find my extension and proceed to install. But it's stop on third step. Display don't any error. here is…
bansal kapil
  • 445
  • 1
  • 3
  • 13
0
votes
1 answer

Magento 2 Get Customer Data from Order by Email

I've created an observer for the event: sales_order_place_after I'm able to get customer data from the customerId
AJK
  • 391
  • 9
  • 27
0
votes
1 answer

Magento 2.2 - Cannot update attribute values

I've created some custom product attributes with REST API, correctly populated them and assigned values to products. Everything works fine in dev environment whereas I got difficulties in staging environment, even though values and settings are…
sissy
  • 2,908
  • 2
  • 28
  • 54
0
votes
1 answer

Better way to display images in Magento's default API response?

I am using Magento2 default API: /V1/carts/mine/payment-information. The response from this API is: { "payment_methods": [ { "code": "payu", "title": "PayUMoney" }, { "code":…
Rohit Rai
  • 375
  • 4
  • 21
0
votes
1 answer

how to get ? pub/static/frontend/Magento/luma/en_US/Namespace_Module/images/image.png

How to get this path ? "pub/static/frontend/Magento/luma/en_US/Namespace_Module/images/image.png"
Kamal Jain
  • 111
  • 5
0
votes
1 answer

Install extension in magento 2 - no app/code folder

I have downloaded a paid extension and the steps that they have provided to install are: 1. Unzip extension 2. Upload in app/code 3. Go to root in cmd prompt and run: php bin/magento setup:upgrade php bin/magento setup:static-content:deploy …
user1578460
  • 315
  • 1
  • 2
  • 17
0
votes
1 answer

Products not appearing under admin grid

I imported products via API calls successfully. After sync, products not appearing under admin->grid... I can see under table "catalog_product_entity". I flushed cache, reindex and run cron manually. Still getting the same issue. Please…
Kashif
  • 305
  • 1
  • 6