Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [magento2.2.2]

It should be used for questions about Magento 2.2.2

1
vote
1answer
567 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 - ...
0
votes
1answer
147 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
0answers
80 views

Reviews Grid Listing, Reviews Edit Form and Reviews New Form are not showing in admin Magento2.2.2

After logged in admin I can't see reviews listing. Also in product edit page in admin review listing not showing. Any one know what is the solution? Log File Showing Error Below [2018-07-24 ...
0
votes
0answers
164 views

What is the recommanded cookie lifetime when persistent cart enabled?

Currently we are facing an issue with our cart. We have enabled persistent shopping cart and our default cookie lifetime is 1 hour. Many times the user facing empty cart while they trying to login or ...
3
votes
2answers
375 views

Magento 2 : Specific Range Validation in system configuration field

I'm new in magento. I develop one module in Magento 2.2.2. I want to do like that in system configuration that, user can enter value between 0 to 100 in that field. User can't enter text value and ...
1
vote
2answers
474 views

Customizable options not showing in cart or order

Magento 2.2.2, when an item is added to the cart, any customizable options selected when adding a product to the cart are not displayed in the cart or order. In testing, I have found that the Sku ...
1
vote
0answers
62 views

Undefined index: sequence-2 - Magento 2.2.2 EE

I can't place the order, some of the specific bundle products, it throws the below error. [2018-07-19 11:52:58] report.CRITICAL: Report ID: webapi-5b507b9a64391; Message: Notice: Undefined index: ...
3
votes
1answer
221 views

Overwrite Constructor to inject custom module helper

I have created a custom module. which rewrites \Magento\Checkout\Block\Onepage\Success class by creating a custom module. and i am able to make changes in prepareBlockData function but i want to ...
0
votes
1answer
224 views

Magetno 2 custom module how to Update DB Table row with model

How do I update instead of inserting new row on save using model My code: $question = $this->_objectManager->create('Vendor\HelloWorld\Model\Question'); $question->setTitle('Simple Question'...
0
votes
0answers
301 views

PHP Fatal error: Uncaught TypeError: Argument 2 passed to

I am overriding customer module to remove eav to custom table in Magento 2. I have an override customer repository file in module In di.xml <preference for="Magento\Customer\Model\ResourceModel\...
2
votes
1answer
210 views

Not able to translate OK and cancel buttons in confirmation popup minicart

After adding an item into cart if we goto mini cart and click on remove item a confirmation popup with Ok and Cancel option will appear. I am not able to translate the Ok and Cancel buttons. Please ...
1
vote
3answers
81 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
1answer
286 views

M2.2 Recently view products remove Learn More Link

I have created a Recently Viewed Products widget and in the widget option I can select what is shown for every product, attributes and buttons. In the attributes there is an option of a Learn More ...
1
vote
0answers
110 views

Magento2.2 - Send event to Google Analytics in a .phtml file

I have tried to send an event in .phtml file using <script>ga('send', 'event', { eventCategory: '...', eventAction: '...', eventLabel: '...' });</script> But Browser Console ...
1
vote
0answers
173 views

Magento 2 Some products don't show price on frontend due to the product is not Salable?

Some of my products don't show prices on frontend. And when I diagnose the issue, I found this file, vendor/magento/module-catalog/Pricing/Render/FinalPriceBox.php And if I commented out the line 68,...
1
vote
0answers
121 views

Placeholder image not resized in Backend in magento 2

I have uploaded place holder images in backend, while I am trying to edit the configurable product in backend. Under configuration section It displays the place holder image at larger size for each ...
0
votes
0answers
44 views

How to move Magento 2 Customer Module Eav Table into a custom flat table?

I want to remove Eav table with custom flat table for the customer module. Thanks.
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
0
votes
0answers
163 views

How to change the option label of an attribute via programmatically in Magento 2

I need to update the option label for the existing option in colour attribute in Magento 2. Please provide me with a solution. I have tried like below but not working function getExistingOptions($...
0
votes
2answers
66 views

Magento 2 translate field from wysiwyg

How can one using csv file to translate from wysiwyg field: e.g I have in the backend of Magento a field : <h3 class="eyeCatching">Opening Hours</h3> <p>Monday - 10am to 5pm ...
1
vote
3answers
352 views

Magento 2: After unhold order , order status empty

If set order status Hold programmatically and if i am trying to unhold From Admin Then order status empty. https://prnt.sc/k2g1ak Here is my code for set Hold order status: $orderState = Order::...
2
votes
1answer
574 views

How to override js functions which is inside the return in magento 2(mixins)

I need to override the setPaymentMethods() function in below js using mixins. Please provide me a solution to override the function which is the return value of the js magento/module-checkout/view/...
4
votes
1answer
2k views

Error during compilation in magento 2.2.2

I had tried to compile the magento with this command sudo php bin/magento setup:di:compile when compiling process i had an error on one module as below Errors during compilation: ...
1
vote
1answer
153 views

Magento 2.2.5 How to display item prices out of stock

Even if Magento 2.2.5 Configrable Product is out of stock, I want to display the item price. How can I see the price?
0
votes
2answers
393 views

How to get the product id based on custom attribute value?

I have custom attribute value in my store. How can I get the product id based on that custom attribute value?
1
vote
0answers
19 views

Magento 2: How to set minimum amount option by default in product detail page for configurable options?

I want to auto select the lowest price options in product details page for configurable product in magento 2. Tried to set the value using Jquery in product detail page.its not worked out. Willing ...
2
votes
2answers
162 views

Magento 2 : Product custom yes_no attribute value not save from admin

I have added an product yes_no attribute named save_print from admin. It has successfully added and showing in product(admin). When I change the value. Value is not reflecting in back-end. I have ...
0
votes
0answers
26 views

Magento 2.2: How to customize price + comission in Configurable product variation

In my Magento 2.2 I want to edit price of Variation when configurable product edit. Follow steps to check: Go to -> Admin -> Catalog -> Product -> Edit any configurable product which has simple ...
7
votes
1answer
161 views

How to add a star rating in custom form in magento 2

I have created the feedback form in list page. Now I wish to add custom star rating as a new form field. Please suggest any solution to add rating field in my form.
0
votes
0answers
32 views

calling custom api in another custom api in Magento 2

I am trying to get the result of one custom API in another custom API. Please help me with the same.
0
votes
0answers
23 views

Magento 2, Order status changed to Cancelled withno reason

I have noticed that many orders of my Magento shop have changed Order Status to Cancelled without anyone actually Cancel the order, and in order Comments History, I can not see when order is set to ...
0
votes
0answers
273 views

Contact Form Modal and Ajax Submit

I need to pop up the standard Magento 2 contact form in a modal but also submit it and show a static block without reloading the page or taking the user away from the page they are on. It's not quite ...
0
votes
0answers
252 views

Magento 2. Observer event on every page loaded after?

I'm calling my custom .phtml template from observer. The template is being called successfully and the HTML is displayed correct. However this .phtml is executed before site's css and javascripts is ...
0
votes
0answers
20 views

Magento 2 Emails get translated wrong

My Magento 2 website has two storeviews with different languages - English and Swedish. On the frontpage, translations are working properly. However, when sending emails, for example Forgot ...
1
vote
1answer
599 views

Magento 2 get catalog rule product details in final_price.phtml

I will try keep simple and short. e.g I have set a rule in catalogrule table and I am interested in 2 fields value: simple_action: by_percent discount_amount: 40.0000 and in catalogrule_product ...
0
votes
1answer
487 views

Magento 2. Call .phtml (modal) from observer

I have created a custom .phtml file that contains a modal popup. I can successfully call this .phtml by adding it to default.xml in layout. <?xml version="1.0"?> <page xmlns:xsi="http://www....
0
votes
0answers
204 views

Magento 2 EE : Override Layered Navigation Template

I want to override layered navigation template in my module(layer/view.phtml). I created catalog_category_view_type_layered.xml file in Companyname/Modulename/view/frontend/layout/ ...
0
votes
2answers
753 views

Magento 2 get Product Url in Foreach

In Magento 2, I trying to get the Product URL using this code $_product->getProductUrl (). But it is having only the first product's url to all the products. How to fix it. Used the Following Code:...
0
votes
0answers
77 views

How override the variable which is in existing core js (using mixins)in magento 2

I need to override the variable cacheKey in my custom js var cacheKey = 'checkout-data', /** * @param {Object} data */ saveData = function (data) { ...
0
votes
0answers
54 views

How can I check custom attribute of a product in file vendor/magento/module-catalog/view/base/web/template/product/list/listing.html?

I have added the recently viewed product's widget in CMS block in admin and I have added a code in .phtml files (wherever I need to show recently viewed products) to display this block using the ...
2
votes
0answers
181 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....
1
vote
0answers
25 views

How to custom fields add while fetch V1/invoices API in magento2?

I have tried to add custom fields but I am not able to add it. I have already extended "magento-sales" default module also routes set but not able to add some fields like "billing_address". Thanks, ...
2
votes
0answers
136 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 ...
0
votes
0answers
30 views

Applying AMP to Magento 2.2.2

I would like to use the Google's backed AMP Project on Magento 2.2.2. There are some paid modules available but I wanted to know how to handle it directly. Since AMP is built with Mobile in mind, I ...
0
votes
0answers
27 views

Validation in product Customizable options?

We have a need to limit the characters entered in a text field in a particular product's custom options. (it is for adding text embossing on the product, and we have to limit it to the characters ...
2
votes
1answer
1k views

Magento 2 Change Reset Password email template

In Magento 2, when editing a customer in the backend you have the option to Reset Password for the customer, when click on Reset Password, customer will get an email with a link to reset the password. ...
1
vote
2answers
291 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?
0
votes
1answer
256 views

How to translate (__('Invoice ') . $invoice->getIncrementId())?

How to translate below string in pdf invoice attachment from fooman extension (__('Invoice ') . $invoice->getIncrementId()) I am not able to translate the attachment name. It is in php file. ...
3
votes
1answer
1k views

Magento 2 Too many password reset requests even when password reset protection is disabled

I logged in as administrator to Magento backend and trying to reset password for some customers. I have disabled password protection from Configuration -> Customers -> customer configuration. so it ...
0
votes
0answers
108 views

Magento 2 custom theme setup:static-content:deploy en_GB on production mode does not work!

I've been doing this for while and having to end up either going to developer mode then production to push e.g css changes or run setup:upgrade then setup:static-content:deploy en_GB && cache:...