Questions tagged [magento2.2.2]

It should be used for questions about Magento 2.2.2

Filter by
Sorted by
Tagged with
4
votes
1answer
244 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
41 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
122 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
57 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
197 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
175 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
1answer
577 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 '...
1
vote
2answers
303 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
35 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
327 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
1answer
18 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
1answer
45 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
352 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
161 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
38 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
52 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
75 views

Display title in admin grid

I have created a table $table = $installer->getConnection()->newTable( $installer->getTable('blog_comment') ) ->addColumn( 'comment_id', \...
0
votes
1answer
99 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
47 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\...
1
vote
3answers
124 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
229 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
164 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 ...
3
votes
0answers
439 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
197 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
1answer
32 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
40 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 ...
4
votes
1answer
119 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
28 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
109 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
37 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
2k 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:...
3
votes
0answers
78 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
65 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
50 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 ...
1
vote
1answer
253 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() ?&...
4
votes
0answers
106 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
45 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
282 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
18 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', ...
4
votes
2answers
475 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
74 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 ...
2
votes
1answer
527 views

Magento 2.2.2: Customer Grid Indexer not working

While re indexing got an error: PHP Fatal error: Uncaught Error: Call to undefined method Magento\Customer\Model\Indexer\Source::addAttributeToSelect() in /var/www/html/ncsmokehouse/vendor/magento/...
4
votes
2answers
101 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
1k 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
40 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 ...
8
votes
2answers
2k 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
143 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 (...
5
votes
1answer
1k 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
157 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
425 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 ...