Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

It should be used for questions about Magento 2.2.2

0
votes
1answer
12 views

Show SKU on product add to cart alert notification

Is there a way to add product SKU on add to cart alert notification right now it shows the product name and I want to display the SKU also. Please see the attached screenshot. http://prntscr.com/...
2
votes
0answers
29 views

Is it possible to change/replace the custom function argument in magento 2

I just want to change/replace the custom function arguments, not constructor arguments. This is third party module function, which have wrong argument. public function addAttachment(\Fooman\...
0
votes
0answers
19 views

Magento 2 Image not display on frontend website

On Magento 2.2.2 project the image does not display on website. It shows an error image with message “This website is using bandwidth & images”. If I open this image in new tab its open the ...
0
votes
0answers
19 views

Magento 2 add query params via observer to all the URL's

I am trying to add query params dynamically in a checkout page. If the page is checkout, then for all the URL's append a query string " "?checkoutpage=true" Is there any way to add the query ...
0
votes
0answers
26 views

Magento 2: Product Custom Tab with Attribute WYSWYG shows broken image

I am running Magento CE 2.2.2 and I need to create another TAB in the product information page near the details and review tabs. I created a new Attribute, named it "Tab". In the attribute, options ...
0
votes
2answers
35 views

Magento 2 - How to use admin panel email template in my custom module?

I have created the custom module for customer registration request including an email function also. email function is working fine. I have customized the email template using Marketing -> ...
0
votes
2answers
10 views

Magento 2 Get product attributeId in foreach loop

I have a collection of product I am looping and displaying for E.G ... $product->getName() ... $product->getProductUrl() ... Now Also I am getting it some option like attributeText foreach ...
2
votes
0answers
28 views

Setting up Magento Cloud local development environment - Docker

I'm having issues when it comes to setting up a docker development environment for Magento Commerce Cloud. I followed steps described here: https://devdocs.magento.com/guides/v2.2/cloud/setup/...
0
votes
1answer
14 views

Magento 2 Get product collection filter by atributes does not give the exact match

I have created a filter to get product bellow is an examples: $filter = array( array('attribute' => 'color', 'eq' => '2'),//id of option array('attribute' => 'size', 'eq' => '5'),// ...
0
votes
0answers
20 views

How to add new country in country dropdown Magento 2.2.2

I am trying to add new country in Magento Default Country dropdwon however our changes are not getting reflected on server. I am using Magento 2.2.2 & I followed below steps to add new country. ...
0
votes
1answer
26 views

Remove cart MAgento 2

Is there a way to hide cart if an item is empty and show it when there is product added to cart without reloading the page? Thank you.
0
votes
0answers
18 views

Proceed to checkout button

on homepage when a customer is not login Proceed To Checkout button when clicked nothing happened. Found this error on console. Uncaught Error: cannot call methods on modal prior to initialization; ...
0
votes
0answers
14 views

State/Province conditions not working on any of my rules

Any time I include a state/province condition on any cart rule the condition is totally ignored. Every other conditions is taken into account and working accept the state/province conditions. Can ...
0
votes
0answers
11 views

Magento 2 : Is there any way to calculate life time sales, without create invoices for the order from the Magento side?

I have integrated Klarna checkout with Magento web shop. When the payment is success for an order, order status is changing to complete (As I configured) in Magento side. But it is not updating the ...
0
votes
0answers
21 views

Magento 2 Element 'add', attribute 'ifconfig': The attribute 'ifconfig' is not allowed

How I can correct this error 1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid Document Element 'add', attribute 'ifconfig': The attribute 'ifconfig' is not ...
0
votes
0answers
26 views

Magento 2.2 - PayPal NVP gateway errors #10415

I'm wondering if anyone else has had this error and how to fix it Issue: Paypal Transaction ID is NULL ,but M2 invoice status is 'paid'. Also I can't find any details of this payer in my PayPal ...
4
votes
1answer
97 views

Cart Price Rules having issues

So I created a rule with these conditions: Everything is working fine except for the State/Province conditions. It seems the rule is not taking the conditions for the state/province section. My rule ...
0
votes
0answers
19 views

minfied javascript but in gtmetrics says it is not minified

I have minified javascript through store->advance->developer . i also tried it using database query . but gtmetrics shows javascript is not verified . what are the possible issues ? all commands ...
1
vote
1answer
40 views

Magento 2: How can I do an integration with magento 2 and sap business one?

i want to create a integration with magento 2 and SAP B1, I created a web application in magento 2 I gave it a name and I gave it permission to API and it was saved then create a new role, assign the ...
0
votes
0answers
26 views

changing the product attributes place to top after sku

how can we change the position of only two product attributes not all product attributes . i want to move it from bottom to top after sku or after price please see the screenshots attached .
1
vote
2answers
42 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:...
2
votes
0answers
18 views

In Magento2 can we use PHP/JAVA Bridge?

I need to get content from JMS topic so Can someone let me know if it is possible to use PHP/JAVA bridge in magento2?
2
votes
0answers
13 views

Magento 2 Cart Price Rule Coupon Specific Coupon Does not Apply for some porducts in Admin Order

There is an issue which I am not sure if it's a bug and I hope someone can tell me, the bellow screen shoot were taken from an order: As you can see the product in red circled didn't apply the ...
3
votes
1answer
33 views

How to create a addnametoselect function for custom tables

I need to create an addnametoselect function (like in customer collection) for filtering purpose in the custom collection filter by the fields in custom Table on DB in magento2. Please, anyone, help ...
0
votes
0answers
18 views

Error after installing an extension [duplicate]

I am getting this error after installing an extension. "The configuration parameter "componentType" is a required for "ampromorule_top_banner" component." The error is shown whenever I try to add a ...
1
vote
1answer
25 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() ?&...
3
votes
0answers
83 views

Knockout.js in magento2

How to change the jquery into ko? define([ 'jquery' ], function ($) { "use strict"; $.widget('xxx.homePage', { options: { bindSubmit: true, ...
2
votes
1answer
24 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 ...
1
vote
1answer
25 views

Magento 2 Message Manager not working in custom module Front end Controller

My controller without try catch: class View extends Action { protected $resultPageFactory; protected $productRepository; protected $_messageManager; public function __construct( ...
0
votes
1answer
13 views

How to add a custom jquery file for custom shipping additional file in magento 2

I have created a custom shipping method + shipping form like below. I want to add click event for the check box. I tried this code in my phtml file. <script> require( [ 'jquery', ...
0
votes
0answers
19 views

Get minicart content for custom minicart in custom homepage layout in Magento 2.2.5

I am working with custom minicart.And trying to get the minicart content in my minicart popup.The thing is I am getting minicart dropdown in all pages except custom homepage How to get the mini cart ...
4
votes
2answers
55 views

Can't add or edit products on Magento 2.2.5

Whenever I try to add or edit and save a product on Magento 2.2.5, I get the error "A technical problem with the server created an error. Try again to continue what you were doing. If the problem ...
0
votes
1answer
15 views

Magento2.2.2: Module override cause in Wysywig editor shows broken image

I have to override the Customer module. vendor/magento/module-customer/Model/Indexer/Source.php in my custom module app/code/Magenticians/Moduleproduct/Model/Indexer/Source.php here is ...
4
votes
2answers
31 views

Remove childrens and items via Observer

I have updated the checkout_index_index handle via observer. Now I want to remove the "progress Bar", "Shipping Address", "shipping methods" via observer. So I have tried the below event. <...
3
votes
1answer
120 views

Which file hold this layout {{layout handle=“sales_email_order_items” order=$order area=“frontend”}}

Is there anyone knows how or where to update the file for the email order notification template. {{layout handle="sales_email_order_items" order=$order area="frontend"}} Thank you, JM
1
vote
0answers
23 views

How to display shipping and billing forms at same time on checkout page? [duplicate]

So I need for my shipping and billing form on checkout to display both at the same time. Right now only the shipping address is being shown and the billing address has a checkmark where it says "my ...
7
votes
3answers
109 views

Magento 2: how to delete orders from the database

How can I delete the test orders created in my store? I have opened the database but I couldn't find the order table. Please help me to delete the orders. I'm using the later version of Magento 2.
1
vote
0answers
21 views

Magento 2 Error - Failed to load resource: the server responded with a status of 403 (Forbidden)

I am overriding magento configurable.js to my theme and adding some function.i am getting an error of 403 forbidden url.any one can you please help me to short it out. _specifictionContent:function (...
0
votes
1answer
41 views

Magento 2 Reindex Fail `Unknown column 'entity_value.value'` in 'field list'

I am having this error when running php bin/magento indexer:reindex also failing when loading the product: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'entity_value.value' in 'field list',...
1
vote
2answers
29 views

How to use some function in configurable.js in custom phtml in magento 2

I want to use the _getSimpleProductId function of configurable.js in my custom phtml file. What i want to achieve is get the product id according to the customer select the configurable options. I ...
2
votes
3answers
49 views

Free shipping message bar for M2

I have tried so many times to create a simple way by creating CMS block to show the "Free Shipping Eligible Message for Adding Certain Amount in Cart" but I didn't get it yet. Could you please help ...
0
votes
0answers
38 views

Magento site keeps coming down on random days

The site goes down at least once a week and when it does I get this error message: "Object DOMDocument should be created." Can anyone help? How can I stop this from happening. After it goes down all ...
0
votes
1answer
44 views

How to assign different template to product detail page of specific category in Magento 2

I have created two category "wine" and "events". I added product to each category and now I want to apply different template/design to product view page according to category. Products in event ...
2
votes
1answer
22 views

How to show out of stock product next due date in Magento 2.2.2? [closed]

How to show out of stock products with next due date for Product availability on market. I am using Magento 2.2.2. I need free plugins and instructions only because I am not good with coding.
0
votes
0answers
20 views

Magento 2 - How to add a custom form in an custom shipping method?

I have created a Custom_shipping _method. It's working fine and save the shipping method in orders. I want to add some fields after clicking the Custom_shipping _method I have created. I want to ...
0
votes
1answer
16 views

requirejs ! bootstrap.min is not loading in Magento2

I am doing theme integretion. I have included the bootstrap.min.js file in requirejs-config.js in requirejs-config.js file var config = { map: { '*': { 'jqueryjs': 'India_Newtheme/js/...
0
votes
0answers
18 views

How to close the popup by clicking browser back button in magento 2

I wish to close the popup while clicking browser's back button, Please provide me a solution I have tried like below,but not works $(function () { if (window.history && window....
1
vote
1answer
39 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 ...
0
votes
1answer
59 views

Magento 2.2 some JS files are not loading in production mode

In Magento 2.2.2 when setting website into production mode the following files are not loading, due to which my store switcher and other ui functions are not working in production mode: http://...
2
votes
3answers
70 views

How to call phtml of custom module in my custome theme layout Magento2?

Help me to get the content written in custom phtml of the custom module to my custom theme. I have custom theme Customtheme_Sample, which is having custom layout customhome.xml. And I have the ...