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

Questions tagged [magento2.2.2]

It should be used for questions about Magento 2.2.2

0
votes
0answers
14 views

Item Price being Ignored in Cart Price Rules

I'm trying to setup a promotion in Magento 2.2.2. and I'm really not getting the result that I want. I want it to be like: If you have at least 3 items in your Cart, and at least one (1) of the items ...
0
votes
0answers
33 views

Magento 2 sitemap wrong paths in sitemap index when running on cron

I am using Magento 2.2.2. Please see below the current settings of the sitemap. It works correctly when we create sitemap by hitting generate button in admin. But when it gets generated automatically ...
0
votes
0answers
56 views

Magento 2 not minifying JS, CSS or HTML in Production Mode

I am running a magento 2.2.5 CE in production mode with two storefronts setup. The settings in admin are as follows: Minify Html: Yes Merge JavaScript Files: Yes Enable JavaScript Bundling: Yes ...
0
votes
2answers
20 views

Magento 2 make new method available in list.phtml

If I need to create a method under Magento\Catalog\Test\Block\Product\ListProduct Class This class has methods such as: getProductItem,getProductNames,getProductsCount,getSortByValues I Would like ...
0
votes
2answers
41 views

Magento 2 js not working

On one of my website, sometimes some of my custom js not working, I have embeeded on template file. I have checked console of browser it shows error, also sometimes css or some portion like sign in/...
0
votes
0answers
16 views

Magento 2 in How to change password in programmatically without hash method in password? [duplicate]

I am trying below code but it is not working $customer = $this->_CustomerRepositoryInterface->getById($id); $customerSecure = $this->_customerRegistry->retrieveSecureData($customer->...
0
votes
0answers
19 views

How to have different toolbars for top and bottom of products page?

How to show different toolbar in product listing grid? echo $this->getToolbarBlock()->setTemplate('Magento_Catalog::/product/list/toolbar-btm.phtml')->toHtml(); Above code display the ...
0
votes
0answers
19 views

How to change the layout go the customers page Magento 2

I am just new magento 2. I just want to change the layout of the Customers Layout Page. Please see the image. Can you help me if which file i need to edit to achieve this layout. Thank you.
1
vote
2answers
28 views

For what there is the sales.xml file?

For what there is the sales.xml file? In the documentation, I can not find anything about this file.
0
votes
0answers
11 views

Magento 2 Custom JS Component detect/Observe changes from any form input in the DOM

I have ny Component as so: define(['uiComponent', 'jquery', 'ko', 'jquery/ui', 'mage/translate', 'Magento_Ui/js/modal/modal', '...
0
votes
2answers
42 views

Set date format in admin grid

I have create a ui-component grid in magento2 .I need to set the default symbol (if the end date is empty in that field) like -- for End column in grid <column name="date" class="Magento\Ui\...
0
votes
1answer
27 views

What is Repository in Magento2 and Why use? [duplicate]

What is Repository in Magento2? Why use this. I want to know more detail about Repository.
0
votes
1answer
26 views

Magento 2: Missing required argument $mainTable from Model\ResourceModel\Deal\Grid\Collection

Missing required argument $mainTable from Model\ResourceModel\Deal\Grid\Collection But I check my all file and all code working fine but this error show on dashboard.
1
vote
0answers
19 views

Admin grid in magento2

How to set date format for ui component grid and how to set the default '--' symbol for date. Thanks.
0
votes
0answers
28 views

Save same address twice in customer address table magento 2

From customer registration page i'm getting address entered by customer. I want to save this address twice in customer address table one for default shipping and one default billing. I'm extending ...
0
votes
0answers
38 views

Magento 2: InvalidArgumentException There are no commands defined in the “cache” namespace

I have facing issue while run command. I can't use any bin/cli commands in magento 2. I keep getting below generic error messages. Error: InvalidArgumentException There are no commands defined in ...
0
votes
0answers
20 views

How can I set both regular & special price on configurable products

Is there any way in configurable or I need to set this in associated products. Any help would be greatly appreciated! We are using the Magento version 2.2.2
0
votes
1answer
33 views

Magento 2.2.2 getting error unable to process binding if: function(){return getCartParam('summary_count') }

I am getting an error like unable to process binding if: function(){return getCartParam('summary_count') } in magento 2.2.2 I tried below commands php bin/magento setup:upgrade && php -...
0
votes
0answers
24 views

Magento 2: How to meddle, customize the JSON.parse item.options from cart item on checkout cart

So basically each item inside JSON.parse($parent.options) should have value and label, [{'label':'foo','value':'bar'}] I need to add in this json_encoded a field key something like [{'label':'foo','...
0
votes
0answers
10 views

Magento 2 product page price rounding up on new store view

I've created 2 store view under 1 wesbites->stores store view 1 = default has Euro currency. store view 2 = Swiss has Swiss franc currency. I've added a product on both store view now ...
0
votes
1answer
21 views

How to add tax to shipping Magento 2

Hi I'm using Table Rates shipping method. Is there a way that the Shipping fee will have a tax as well, right now tax calculation is based only on cart sub total. Is there a way that the shipping fee ...
0
votes
0answers
12 views

Scaling Magento 2 on multiple containers in production with generated code

I'm working on some auto-scaling Kubernetes infrastructure to run Magento 2, and I noticed that when I start new containers, I can't have the generated/ directory automatically compiled as part of the ...
0
votes
1answer
27 views

Add custom filed to a registration form and save it to customer account

I have followed this article to create a new customer attribute and add it to the registration form: http://www.extensions.sashas.org/blog/magento-2-1-3-how-to-make-customer-attribute-update.html ...
0
votes
1answer
28 views

SetTimeOut not working

I need to remove message after 2 sec but its not working $.ajax({ 'method': 'post', 'url': $form.attr('action'), 'dataType': '...
0
votes
2answers
32 views

Insert before in jquery [closed]

I have create a ajax call for form submit. But it returns error .......h.insertBefore is not a function define( [ 'jquery', 'uiComponent', 'mage/validation'], ...
0
votes
1answer
20 views

Magento 2 Add CMS/phtml block bottom before product_list_toolbar and after product_list (Between)

I am not able to add a cms block in category page. XML: <block class="Magento\Framework\View\Element\Template" name="catalog.filter.content.bottom" template="my_module::test.phtml"/> what I ...
0
votes
0answers
20 views

Magento 2 Database Maintenance

I'm wondering which tables can be truncated in Magento 2 to stop the database from increasing in size? I also have a table called 'customer_visitor' which is sitting at 1025058 rows and I'm wondering ...
0
votes
0answers
27 views

Magento 2, Cannot read property 'dialog' of undefined, 'timepicker' of undefined,'RFC_2822' of undefined

Sometimes I'm getting following errors in the console after reloading the page:- Cannot read property 'dialog' of undefined Cannot read property 'timepicker' of undefined Cannot read property '...
0
votes
2answers
31 views

Magento 2.2.6 Change 'From' field of magento contact form email to the sender

Currently, when customer submit a contact form through our website, the "sent from" email address we received is our support@example.com. I would like to change the "send from" email address to be the ...
0
votes
0answers
15 views

Uncaught Error: Cannot instantiate interface Magento\Payment\Gateway\Data\OrderAdapterInterface

I am trying to create a order programattically using "Braintree" as the payment gateway. When I tried to send a email and when i call getPaymentHtml I am getting the below error "PHP message: PHP ...
0
votes
0answers
28 views

Magento 2 add Block Template in php (not XML)

In Magento 2 one can do with XML : <referenceContainer name="content.bottom"> <block class="My\Module\Block\Index\Index" name="my.block" template="My_Module::test.phtml" /> </...
0
votes
1answer
23 views

Magento 2 Custom Module Controller getLayout , createBlock, getBlock , append Fatal error:

namespace My\Module\Controller\Index; use Magento\Framework\App\Action\Context; class Index extends \Magento\Framework\App\Action\Action { protected $_resultPageFactory; public function ...
0
votes
0answers
35 views

Content-Length mismatch, received 16147260 bytes out of the expected 34877182

I am upgrading Magento version from 2.2.2 to 2.2.6 but i am getting error Content-Length mismatch, received 16147260 bytes out of the expected 34877182 some of the modules has been upgraded ...
0
votes
1answer
15 views

Magento 2 custom module shortened url with query string goes 404

I have a custom controller page : http://dev.test/myfrontend/ The above works fine. also the bellow one works http://dev.test/myfrontend/index/index/ Now if I add query string: http://dev.test/...
0
votes
0answers
31 views

No Home CMS page configured or found on mobile view with store code Magento 2.2.2

I have created 5 store views with different languages in Magento 2.2.2. and I created 5 different homepages for them. In configuration I chose a proper home page in case of every store view and ...
0
votes
0answers
7 views

subtotal in onepage checkout shows $0.00 after redirecting from multiple checkout to onepage checkout

i have created a link in onepage checkout to go to multiple shipping. See below screenshot when i go to multiple shipping and add different addresses for each item & return to onepage checkout ...
0
votes
1answer
20 views

Get method in magento2

Why the get method ajax call content like.. /customer/section/load/?sections=messages&update_section_id=true&_=1540902816229 Thank You.
0
votes
1answer
46 views

Magento 2 Check if url returns 404

I have ann Array of urls $arr = Array( 'http://magento2.com/url-exist', 'http://magento2.com/url-does-not-exist', 'http://magento2.com/url-does-not-exist', 'http://...
0
votes
0answers
19 views

Magento 2 Can't Save Category

I am receiving the following error when trying to save category: The value of attribute "name" must be set I've no idea what could have happened I've got no Layout Update XML Exception.log: [...
0
votes
0answers
17 views

How to only show attributes for attribute set?

I created an attribute set and attributes for it and assigned them to the attribute set. I then tried to create configurable product configurations with the attribute set I created but it shows all ...
0
votes
0answers
18 views

How to create a payment gateway module in magento 2?

I have tried to create a payment gateway module in magento 2 using Magento github link. Any help where i can submit the form as bank requested? How can i set the response url? Highly appreciate if ...
0
votes
0answers
14 views

Tax issue with my site

I am having an issue where when I try to select that the tax calculation should be based on "shipping address", The tax is not being shown. If I select "Shipping Origin" the tax shows. I need the tax ...
0
votes
2answers
29 views

Display title in admin grid

I have created a table $table = $installer->getConnection()->newTable( $installer->getTable('blog_comment') ) ->addColumn( 'comment_id', \...
0
votes
0answers
15 views

How to Paypal sandbox with credit card option

Already activate sandbox with predefined facilitator account provided by Paypal. Need guidance for following points. How to enable Credit-card option in checkout page, try (dummy) credit-card to ...
0
votes
0answers
34 views

Cron send mail problem

I meet a problem when using cronjob send an email. My code: public function sendMailCancel($order){ if($this->_state->getAreaCode()== \Magento\Framework\App\Area::AREA_CRONTAB){ $...
0
votes
0answers
18 views

Get Custom Attribute value of Child product under grouped products on Magento 2.2

i tried my best but i havent found a solution. I would like to get a custom attribute value of a child product inside a grouped product view. With this code i've been able to get a Text attribute but ...
0
votes
1answer
22 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
27 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
33 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 ...