Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

0
votes
0answers
15 views

Orders with $0 amount is not showing up on Backend Admin > Sales > Orders Grid

I have a development environment in Magento community edition version 2.2.1. When I place an order with $0.00 those orders are not shown in Admin > Sales > Orders screen on the backend. I have ...
1
vote
0answers
39 views

how to Import CSV in magento 2 and insert in database Table

Here am added import custom upload drop down to magento backend succesfully. while am importing data its not getting insert into database, its showing Please enter a correct entity model. error class ...
2
votes
0answers
31 views

Getting an error: No such entity with cartId = 17090. How to resolve it

Magento give me this error when I create order using the backend. When creting the order with frontend, it works fine. I am using multi-website functionality in my project. I have creted custom quote ...
1
vote
0answers
17 views

Webinse | Discussion on Region and City Manager for Magento 2 installation [closed]

I have purchesed this extention and try to install it on my magento 2.2 site. but its not working, I need an installation guide to complete this. if anyone have used this extension please provide ...
1
vote
1answer
37 views

Adding custom discount adds 2 times in EE 2.2.6

I am adding custom discount to my cart but it seems it is adding 2 times in the cart. Here is my model file code. $discount = 10; $baseDiscount = 10; $total->addTotalAmount('plandiscount', -$...
0
votes
0answers
29 views

Magento 2 get Product Collection creates issue on preparecollection

I am using Magento 2.2.7. On custom product grid _prepareCollection() I tried to get all product collection by $collection = $this->_productFactory->create()->getCollection(); but it gets ...
4
votes
0answers
46 views

How to limit the search index fields in Magento?

We are using elastic search 6.x and facing search index limit exceeded error. As per this doc https://support.magento.com/hc/en-us/articles/360003290654-Exception-on-category-page-with-...
1
vote
0answers
26 views

Magento 2 store locator extension to use custom table data

We are looking to implement store locator and came across Amasty and other store locator extensions. Those extensions appear to be creating custom tables during install and give admin panel pages to ...
4
votes
1answer
116 views

PayPal All-In-One Payment Solution - Clone to multiple options in checkout process

TLDR; Clone "PayPal All-In-One Payment Solution" payment method to have THREE different payment options in “Payment Method” section of the checkout process. Magento 2 comes with "PayPal All-In-One ...
1
vote
1answer
40 views

Magento 2 How to resize product gallery images?

I have to resize the product gallery images. I'm using this link to resize image Resize Image but it's only allow to resize image product_base_image. While I have to resize all other image then ...
0
votes
2answers
42 views

Plugin not working in magento 2

Vendor/Work/Plugin/ShippingInformationManagementPlugin.php <?php namespace Vendor\Work\Plugin; class ShippingInformationManagementPlugin { const XML_PATH_EMAIL_RECIPIENT = 'contact/email/...
0
votes
1answer
26 views

how to display list of valid coupon code on cart page

how to display list of valid coupon code on cart page in magento 2 $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $objectManager->create('Magento\Catalog\Model\...
0
votes
1answer
20 views

Invoice mail not receiving after sending from back end without running cron job

Mail not getting triggered from back end in magento 2 after running cron job customer received the mail Please help me to fix this. After send email from back end customer should receive the mail.
1
vote
1answer
83 views

Magento 2 checkout login with mobile number or email

I want to allow the customer to Log in using email or mobile number on the checkout page and the login page. Note: Mobile number is customer eav attribute.
3
votes
0answers
208 views

Magento 2: Uncaught TypeError: Cannot read property 'items' of null for restricted permission user

Note: This is not a duplicate of any similar error I have found a strange bug in Magento 2. It shows the following error in the browser's console for only restricted admin user (the user which has ...
0
votes
0answers
10 views

Problem inside price-box js setting old values

I have overridden the method wrapResult inside: \Magento\Catalog\Pricing\Render\FinalPriceBox.php Firstly the correct price is displayed but after a few seconds it changes the price. I've ...
0
votes
0answers
14 views

How to get the website information associated with a particular store id in magento 2?

<?php namespace Vendor\PushNotifications\Observer; use \Magento\Framework\Event\ObserverInterface; use \Magento\Framework\App\Config\ScopeConfigInterface; use \Magento\Customer\Model\...
1
vote
1answer
36 views

How to get the website_id of the website from which the order is placed in magento2?

I need to get the website_id of the website from which the order is placed in my observer as my project includes multiwebsite functionality. Please help. Thanks in advance. /app/code/Vendor/...
0
votes
1answer
25 views

Magento Products Count Missmatch

I am using Magento 2.2.7. From Admin panel product page shows more than 70k records. But when I try to get product count in a block by $collection = $this->_productFactory->create()->...
0
votes
0answers
20 views

magento 2 admin system message twice

Just updated to 2.3.0 and after deploy in admin section i had the following bug: How can i solve this?
0
votes
0answers
29 views

Apply discount only if subtotal of products is greater than a certain amount

I need to create a cart price rule which will be applied only if: Subtotal is greater than 2000. The products forming the subtotal must be non-discounted. The products forming the subtotal must ...
1
vote
1answer
30 views

Custom report without using collection

I have a request which to make custom report, and data for the report need to calculate by helper function and will generate a data array with row and columns. Is there any solution to let data array ...
1
vote
2answers
28 views

How to use a preference for only one website when there is multisite functionality magento 2?

I have created a preference to override the functionality of customer save. But the I need to use the core customer save functionality for 1 website and my preference functionality for another ...
1
vote
0answers
24 views

Magento 2.2 REST API Call to get media, does not return base 64 string

I tried the call /V1/products/:sku/media/ I get this response [{ "id": 31, "media_type": "image", "label": null, "position": 1, "disabled": false, ...
1
vote
1answer
32 views

how to send data from the layout form to the controller in magento 2

I still confusd abaout the magento 2. I'am new in magento. my question is How to sending data from the layout form to the controller ? this my code ui_component/ppp.xml <?xml version="1.0" ...
1
vote
0answers
27 views

Can we backport Magento 2.3.x code to Magento 2.2.x and 2.1.x

I have an extension that works on 2.2.x and 2.1.x and 2.3.x. Magento recently has added MSI support in 2.3.x. I wanted to support this new feature in the extension. But some 2.3.x relate classes are ...
2
votes
1answer
25 views

Magento 2: How to set from admin to see all the routes of my web content?

I have seen people setting something in the Admin, to see all the files routes of all the content in the store, I just want to know how to do that set. If someone can help, I would appreciate it.
0
votes
0answers
14 views

How to put hexcode validation in custom form made using ui component?

Vendor/Module/view/adminhtml/ui_component/company_company_form.xml <field name="theme_color"> <argument name="data" xsi:type="array"> <item name="...
0
votes
0answers
15 views

Credit memo comments are not output to the email template

Credit memo comments are not output to the email template. I do not know how to solve the problem. <tr class="email-information"> <td> {{depend comment}} <table ...
0
votes
1answer
57 views

How to extend ParadoxLabs\Authnetcim\Model\ConfigProvider to add addtional config data to access in authencim.js and related .html template?

I see following code in authnetcim/view/frontend/web/js/view/payment/method-renderer/authnetcim.js. I understand that it's using cc.html template to display the content. How to know which Block or ...
0
votes
0answers
78 views

Magento Theme Error vendor/composer/autoload_real.php on line 70

I am newbie and trying to install a theme with demo/sample data on server and getting error: vendor/composer/autoload_real.php on line 70. /home3/isureb0y/public_html/Magento/vendor/composer/....
1
vote
2answers
69 views

How to override js file of base folder in Magento_Ui?

I want to override the sizes.js in location: /vendor/magento/module-ui/view/base/web/js/grid/paging/sizes.js I want to remove "Custom" and "200" options from admin grid per page dropdown.
1
vote
0answers
33 views

Delete button on Mini cart popup not working and turning screen black on home page magento 2.2

I'm having an issue on magento 2.2, The Delete button on Mini cart popup is not working and turning screen black on home page strangely when you click the delete icon the screen just darkens and and ...
0
votes
1answer
50 views

magento 2 how to display simple product image instead of configurable product image in order detail?

I can successfully display the configurable product image in order detail page with the following code. /** @var $block \Magento\Sales\Block\Order\Item\Renderer\DefaultRenderer */ $_item = $block-&...
2
votes
1answer
80 views

Magento 2.2 - Problem with Helper class not found in custom module

I'm creating a payment module and I'm having a curious problem. I started by creating the module inside the app/code/Vendorname/Payment folder for convenience. It is not yet complete, but the system....
1
vote
0answers
50 views

How to override payment page place order button in Magento 2.2.x?

I need to disable 'Place Order' button on payment page based on logged customer group data. I see following in one of the payment method's template HTML file. Any idea on which block or helper need ...
0
votes
0answers
15 views

How to keep product catalog images the same size Magento 2

Having an issue with the image size in our product catalog pages, we are getting images in from feeds, but the vertically aligned images are coming out way bigger than they should be, as is shown in ...
1
vote
1answer
53 views

How to remove secondary UI component in Magento 2?

I want to remove export component from order toolbar page in Magento 2 admin. I have already created an custom export component in my module but I want to remove default one. See screenshot. Here ...
0
votes
0answers
23 views

Css not loading in frontend in magento2

In Local , all css and js files have the url start form https:// but i want http://. where to change it . Thanks.
0
votes
0answers
24 views

Magento 2 - Custom Registration Form For A Specific Customer Group

I am trying to build a custom registration form that can be shown on the CMS page. Any guest user can register through this form. Customers whoever register through this form will fall under a ...
1
vote
0answers
42 views

How to get list of available coupon code of Current Product Only

How to get available coupon code of current product
1
vote
2answers
88 views

Get collection of orders excluding cancelled order in Magento 2

I have got order collection with the following code: $orders = $objectManager->create('Magento\Sales\Model\Order')->getCollection(); Which is working fine. Problem is that it returns all types ...
0
votes
2answers
51 views

How to optimize the images of a magento 2 site?

There is a site which have a lot of images of high quality because of which the load time of site is quite high. It is impossible to optimize images one by one as we have many images. So could anyone ...
1
vote
2answers
37 views

magento 2 add unique key on multiple columns using installschema

Here i am trying to create unique key using installSchema . Array of column names is defined here on which columns combinedly i want to apply unique key $arrayOfColumnsName = array('column1', '...
0
votes
2answers
74 views

Readiness Check Failure in Magento 2 [duplicate]

I am getting the below error on updating a marketplace extension in backend (System->Websetup Wizard->Extension Manager). Check Cron Scripts Cron script readiness check failed. Hide detail ...
0
votes
0answers
68 views

magento 2 how to redirect disabled product to category page?

I want to redirect disabled products to the related category page. I have tried discontinued option which is available in admin but it is not working. How can I fix the issue?
-1
votes
1answer
33 views

How can I remove/disable edit button from Address Information Block from Admin sales order detail page

As per specific order status I want to restrict user to make changes in order address i.e I want to disable or remove the edit button from Billing & Shipping Address from Address Information ...
0
votes
0answers
23 views

How to create a custom Api in magento 2 to add multiple products in cart using single APi call?

The default Api in magento 2 to add items to cart V1/carts/mine/items allows us to add only one product to cart at a time. Now I need to create a Api to add items in bulk in cart. How I can do this? ...
0
votes
0answers
22 views

Repeated shipping option shows in magento 2

Magento 2 Option shows in Shipping repeatedly
1
vote
2answers
31 views

Get billing address line 1 and line 2 in order collection: Magento 2

I am trying to get billing address line 1 and line 2 with city and state in order collection. Here is my code: $oid = 1; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order =...