Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Magento2.4.5: How to lazy load Jquery and remove unused scripts from Theme Desgin?

I want to optimize my website and remove unused javascript/jquery and also defer or lazy load javascript/jquery for better performance any tools or techniques to achieve this?
Afzel Arshad's user avatar
0 votes
0 answers
17 views

Cart Price rule is not working if the product is available in multiple categories Magento 2.4.6

In my magento we are using Mexbs Bunlde Discount extension to create cart price rules. i created one rule like - A product from X category + B product form Y category + C product from Z category for ...
Mani's user avatar
  • 183
0 votes
4 answers
50 views

Magento2.3.5: How to optimize product export scripts?

I Have a product export script that uses product collection to create an array and write the array to CSV, I want to know if this script can be optimized. <?php error_reporting(E_ALL); ini_set('...
Afzel Arshad's user avatar
0 votes
2 answers
31 views

Magento2.3.5: How to remove index.php and theme id from url?

my website homepage is accessible with index.php and theme ID which is as below https://baseurl/index.php https://baseurl/porto_home_26 how do I fix this issue?
Afzel Arshad's user avatar
1 vote
1 answer
27 views

Magento2.4.3: While importing products, getting this error (The value specified in the URL Key field would generate a URL that already exists)?

I'm trying to import products and while importing I'm getting this error, i have tried this extension for URL rewrite but still getting this error, any temporary fix for this problem
Afzel Arshad's user avatar
1 vote
1 answer
20 views

Magento2.4.3: After decreasing quantity to 0 on cart page, product doesnt remove from cart?

I want to update the cart page when the quantity goes below 1, it works fine if the quantity is above 1, but it does not change the cart if the quantity is below zero as shown in the picture below, ...
Afzel Arshad's user avatar
0 votes
0 answers
15 views

Magento 2 Multiple translations

Is it possible to implement multiple translations in a "Magento 2" way? I have a form on my website where I should have the same language text as a user browser language. How to achieve it? ...
Duddy Woody's user avatar
0 votes
0 answers
23 views

Uncaught TypeError: Cannot read properties of undefined (reading 'modal') error in Magento 2.4.6

we recently upgraded from magento 2.4.3 to magento 2.4.6. In my previous version below code is working properly. /** * Magedelight * Copyright (C) 2019 Magedelight <[email protected]> * * ...
Vinni's user avatar
  • 13
0 votes
1 answer
37 views

Magnto2.4.3: How to fix if Some pages have Duplicate content and some Pages have duplicate title?

Client provided an audit report of his website and on that report, he mentioned some pages have duplicate title and content as shown below picture, how to fix those URLS any idea?
Afzel Arshad's user avatar
0 votes
0 answers
19 views

Magento2.4.3: How to stop adding non-canonical url from in sitemap.xml?

I have 400k products in my store and when I generate a sitemap it contains non-canonical URL, is there any way I can stop adding non-canonical URLs in sitemap.xml, and still be able to generate ...
Afzel Arshad's user avatar
0 votes
0 answers
28 views

Magento 2 - how to remove navigation menu linkage for tabs

In my default magento theme for desktop on hovering on the menu, sub-menu is opening. But in tabs when clicking on menu, menu is opening but its also redirecting to main navigation link. expected ...
Mani's user avatar
  • 183
0 votes
2 answers
71 views

Magento2: How to show Price summary on Order success Page?

I want to show the price summary of the order in the order success page like this image below : Any idea? Thanks.
Afzel Arshad's user avatar
0 votes
1 answer
51 views

Magento 2 - How to show text box field on selecting "Other" option in customer attribute dropdown

I have created customer attribute from admin, It is a drop-down. In the drop-down, i have one value as "other", once user select "other" I need to show text box and save that value....
Mani's user avatar
  • 183
0 votes
2 answers
39 views

Magento 2.2.3 upgrade

please I made a test site to try to upgrade my Magento 2.2.3, but until now I haven't succeeded at all. I could understand if I have to stop at 2.2 or go directly to 2.3, and if possible how to ...
Nu Carvignulu's user avatar
0 votes
0 answers
23 views

how to show coupon code in order summary even though it doesn't contain any discount in Magento 2

i am using coupon code for my campaign purpose, so i don't want to give any discount on that coupon, but if not giving any discount on coupon code its not showing in the order summary in checkout page ...
Mani's user avatar
  • 183
1 vote
1 answer
83 views

How to convert csp meta tag into csp_whitelist.xml format in magento 2

below is the meat tag i want covert as per magento 2 <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe- inline';script-src 'self' 'unsafe-inline' *....
Mani's user avatar
  • 183
1 vote
1 answer
104 views

Difference between async/ and bulk/async in Magento 2

I need to override my REST API endpoints to async and faced the issue that I don't understand the difference between asynchronous endpoints in https://developer.adobe.com/commerce/webapi/rest/use-...
Duddy Woody's user avatar
0 votes
1 answer
47 views

setup cart price rule from admin that only applies - if 2 out 3 specific sku are present in the cart

i need to create a cart price rule from admin in such way that if 2 out of 3 specific products need to present in the cart in order to get the discount. For example these are the three sku's - PROD1, ...
Mani's user avatar
  • 183
0 votes
1 answer
32 views

How to merge the non-logged in cart items with logged in customer cart items which is added from favorite's in Magento 2

I am facing an issue with cart merging this is the scenario. I logged in to my account, i added one product to favorites then from favorites page i added that product to cart Next i logged out, added ...
Mani's user avatar
  • 183
0 votes
2 answers
201 views

How magento 2 triggering purchase event in GTM

I need to update the parameters names in the purchase event. But iam not able find from which file purchase event is triggering. Any help can be appreciated. Thanks!
Mani's user avatar
  • 183
0 votes
1 answer
31 views

Magento243: How to show order number in Gift Card Account Grid?

How i can show order increment id on Gift Card Account Grid
Afzel Arshad's user avatar
0 votes
2 answers
178 views

Magento 2 products disappear on category pages 2.2, 2.3, 2.4.x

Products disappears from category pages but showing on homepage in product sliders, when you try to reindex products appears for 5 minutes then again disappears OR when you save any product they start ...
nihal malik's user avatar
0 votes
1 answer
107 views

How to add a validation for postcode filed on input in checkout in Magento 2

I have a customer address attribute "postcode" and I have AttributeMergerPlugin.php file in that i added validation class for the postcode if (array_key_exists('postcode', $result)) { ...
Mani's user avatar
  • 183
0 votes
1 answer
106 views

How to Hide navigation bar from some pages in magento 2

I have this requirement i,e i need to hide navigation bar for some pages. I need to develop these feature in such a way that in the future if we create a new page and if i need the same requirement ...
Mani's user avatar
  • 183
0 votes
1 answer
68 views

Magento2.4.5: Order total showing of a same product with diffrent size options in order detail page?

Related Issue https://github.com/magento/magento2/issues/30342 you can check that issue on GitHub as a reference for understanding. you can see from the image that the customer placed an order for ...
Afzel Arshad's user avatar
0 votes
1 answer
30 views

How to add specific categories in robots.txt file in magento 2

I want to stop some categories from being crawled. So i decided to add the category paths in robots.txt file. But i am not sure about the syntax. How can i achieve this. Thanks
Mani's user avatar
  • 183
0 votes
1 answer
107 views

How to add bcc for forgot password emails in Magento 2

I want add bcc for forgot password email in magento 2. When i checked the code - \vendor\magento\module-customer\Controller\Account\ForgotPasswordPost.php in execute method we have this try { $...
Mani's user avatar
  • 183
0 votes
2 answers
59 views

Magento2.4.5: How to Products images on order detail page?

I want to show images item-wise in the order detail page in the backend like this image below. Any idea,?
Afzel Arshad's user avatar
0 votes
1 answer
126 views

Price values are saving as zero in sales_order_item table in magento 2

In sales_order_item table price, original_price values are saving as zero, other values are saving correct only.what could be the reason for saving those values as zero. Thanks.
Mani's user avatar
  • 183
0 votes
1 answer
569 views

Magento2: How to fix this Sales order grid created_at filter ambiguous error?

i needed custom column in sales Order grid so i applied joined on sales order with sales order grid but when I filter grid with purchase date It shows this error in logs and filter stop working. Next ...
Afzel Arshad's user avatar
0 votes
2 answers
184 views

Magento2.4: How to display coupon code in Sales order Grid and Sales order detail page?

I want to display coupon codes in the sales order grid and the order detail page. Any idea how to do this?
Afzel Arshad's user avatar
0 votes
0 answers
52 views

Magento2: How to Create 4 custom shipping method?

I want to create multiple shipping methods in Magento with different rates.
Afzel Arshad's user avatar
0 votes
3 answers
1k views

Magento2.4.5: How to add custom text fields on checkout page?

I want to add custom text fields on the checkout page and those fields' values should be saved in sales_order and sales_order_item table
Afzel Arshad's user avatar
0 votes
1 answer
54 views

How to override magento\framework\view\page\config.php file in magento 2 for removing htmlentites in page source code

I want to override the magento\framework\view\page\config.php file setMetadata($name, $content) method to remove the htmlentites in meta description when we are viewing the page source code. For that ...
Mani's user avatar
  • 183
0 votes
0 answers
141 views

How to override vendor/Magento/Framework/View/Page/Config.php file in magento 2

I want override the setMetadata() method from config.php file. what is the best way to overide setMetadata() method from config.php file in magento 2 Thanks.
Mani's user avatar
  • 183
0 votes
2 answers
1k views

How to add google recaptcha V3 for custom forms in magento 2

I have around 20 popup custom forms in my magento 2. I want to add Google recaptcha V3 for the all popup forms. How can i add captcha v3 to all the forms. what is the best way to add for all the ...
Mani's user avatar
  • 183
0 votes
1 answer
84 views

How to use special characters for cms pages meta description in magento 2

I Added a meta description for CMS page from the admin, meta description contain a apostrophe (here's) in it. So in the page source its showing like html entities of that character. can we able to ...
Mani's user avatar
  • 183
1 vote
2 answers
544 views

Magento2.4.5: How to add multiple custom dynamic shipping method on checkout page?

I want to add multiple shipping methods on the checkout page based on my needs, now there is only one method with international shipping, but I want to add more custom dynamic shipping methods Any ...
Afzel Arshad's user avatar
0 votes
1 answer
32 views

I have added products to cart programmaically and want to show this products on my frontend

Add to cart Code $request = new \Magento\Framework\DataObject(); $request->setData($data); $cartId = $this->maskedQuoteIdToQuoteId->execute($guestCart); $quote = $this->...
Akshay's user avatar
  • 3
0 votes
2 answers
444 views

How to get the path of var folder images in magento 2

I have the an images inside var/import/logos folder, how can i get the path of the image to show on the frontend. Thanks.
Mani's user avatar
  • 183
0 votes
1 answer
143 views

What is the use of event_prefix and cache_tag variable magento 2 model file

When I am looking into magneto model files I find <?php namespace Mageplaza\HelloWorld\Model; class Post extends \Magento\Framework\Model\AbstractModel implements \Magento\Framework\DataObject\...
Mani's user avatar
  • 183
1 vote
1 answer
609 views

How to show ordered items in order confirmation email template in Magento 2

I want show customer order details (product name, sku, quantity, price) as a table in order confirmation email template. How can i show those details in the email template. Thanks.
Mani's user avatar
  • 183
1 vote
0 answers
18 views

getting fatal error if product images not uploaded

if there is no product image then getting this error on Magento 2.2 [Fri Oct 28 08:48:21.033726 2022] [fcgid:warn] [pid 2669752] [client 47.15.21.175:0] mod_fcgid: stderr: Stack trace: [Fri Oct 28 08:...
Shiv Singh's user avatar
1 vote
0 answers
101 views

How to change the url of sign page in magento 2

I want to change the url of sign in page in magento 2 currently signin page url - customer/account/login i need to change to url - signin How can i change the url. Thanks..
Mani's user avatar
  • 183
1 vote
1 answer
287 views

How to pass Custom template variables to footer template in magento 2

I want pass custom template variables to footer template. In which file i need make changes to pass my customer template variables to footer template. Thanks.
Mani's user avatar
  • 183
1 vote
0 answers
177 views

How to add unsubscribe link in all the emails in magneto 2

I want to add unsubscribe link in footer of all my email templates such as order confirmation, order delivered, order cancelled. I tried all the solutions from the internet. but nothing works fine. ...
Mani's user avatar
  • 183
1 vote
2 answers
373 views

Magento2.4.5: How to add custom column in catalog categories product grid?

I have added a custom column in the product grid and that column has a data-source and I want to add that same column in catalog > categories > Products in Category in this grid i want to add a ...
Afzel Arshad's user avatar
1 vote
1 answer
264 views

How to import bulk url rewrites in magento 2 using sql query

I have Url rewrite excel sheet with request path, target path and redirect type. How can i add this values into url_rewrite table in magento 2 by running sql query.
Mani's user avatar
  • 183
0 votes
1 answer
100 views

How to check the customer first time ordering in the website in Magento 2

I want to show the dropdown on the order success page if the user is first time ordering in the website.. I am following this way but its not working for me <?php namespace Namespace\Module\Block; ...
Mani's user avatar
  • 183
0 votes
1 answer
103 views

Refused to connect error in trustpilot for other website in magento 2

I have two websites in my magento admin and I need to add trust boxes in the pages using trust pilot - trust boxes. It is working fine for one website, but when load other website url in the ...
Mani's user avatar
  • 183

1
2 3 4 5
50