Skip to main content

Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
1 vote
5 answers
58 views

Magento2.4.6: How to redirect a custom cms page to home page?

I want to redirect a custom cms page to home page For example https://magento246.com/custom-cms-page to https://magento246.com/
Afzal Arshad's user avatar
0 votes
1 answer
22 views

magento246: How to redirect only homepage of website to another website using .htaccess?

I'm trying to redirect my homepage http://magento246.local/ to http://magento245.local/ but http://magento246.local/admin http://magento246.local/products/ and other URLs after slash should work as ...
Afzal Arshad's user avatar
0 votes
1 answer
26 views

Magento2.4: How to save custom fields data into customer_entity table when saving customer programatically?

I'm creating a customer programmatically with a customer interface, and custom attributes are saving as expected, but I want those custom attributes value in the customer_entity table also. My code is ...
Afzal Arshad's user avatar
0 votes
1 answer
20 views

magento246: getting wrong permission for category?

I have set category permission to deny for non-logged-in users and in the database values are saved accordingly. but when I search product on front end it shows the wrong permission. \Magento\...
Afzal Arshad's user avatar
0 votes
1 answer
26 views

Magento246:Product is still visilble for non-logged in customers after setting category permission to logged in user only?

I created a test category called Test added a test product and set category permission to Logged in user only. so the category and product shouldn't be visible to non-logged-in customers. but when I ...
Afzal Arshad's user avatar
0 votes
2 answers
39 views

Magento2.4.6: How to apply category filter on catalog search results product collection?

I want to exclude specific category products from the search results collection, for example, if a customer is not logged in I don't want to show products in search results whose category id is 35. ...
Afzal Arshad's user avatar
0 votes
1 answer
39 views

Magento-Cloud: What does this command will do: magento-cloud environment: branch <environment-name> <parent-environment-id>?

If I run this command on Magento cloud cli what will happen after running this command? magento-cloud environment: branch <environment-name> <parent-environment-id>
Afzal Arshad's user avatar
0 votes
0 answers
17 views

Magento 2 Bundle product dropdown options images

guys! Can someone help me to view the image at the top of the bundle option dropdown? When I select an option to change the image. Thank you so much for your time and kindness.
Despa Andrei's user avatar
0 votes
1 answer
13 views

Magento 2 static content deploy duplications

I have Magento 2 installation with a lot of websites and one website has language which other websites don't. When I execute setup:static-content:deploy it generates the language for all store views I ...
Duddy Woody's user avatar
0 votes
0 answers
24 views

Magento2.4.6: How to remove duplicatation of code in this scenario?

I have a module in which there are 2 custom grids and these two grids have the same crud functionality but different classes, but the inner logic is the same, how can I achieve this in a more ...
Afzal Arshad's user avatar
0 votes
0 answers
40 views

Magento2.4.6: How to setup xdebug on docker-compose with phpstorm?

I'm trying to set up xdebug on docker-compose with phpstorm. Any idea?
Afzal Arshad's user avatar
0 votes
0 answers
13 views

Translation is not working in Magento 2 cloud environment

I want to traslate "The coupon code couldn't be applied. Verify the coupon code and try again." error message from vendor/magento/module-quote/Model/CouponManagement.php. so added the ...
Mani's user avatar
  • 393
1 vote
1 answer
51 views

Remove or replace add to cart button on a product in catalog by condition programmatically

Preconditions: Magento 2 clean installation with Luma. We shouldn't use templates. The replacement needs to create a popup form related to product data to send and save it to my grid. I'm searching ...
Duddy Woody's user avatar
0 votes
1 answer
85 views

Unable to access Magento2 admin panel

I am unable to access magento admin.Developer did my website non contactable, how can I fix this issue ? This problem happen every now and then, is there a permanent to prevent it ? Error Msg : ...
Jaslin's user avatar
  • 1
1 vote
0 answers
24 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?
Afzal Arshad's user avatar
1 vote
0 answers
28 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
  • 393
0 votes
4 answers
74 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('...
Afzal Arshad's user avatar
0 votes
2 answers
38 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?
Afzal Arshad's user avatar
1 vote
1 answer
53 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
Afzal Arshad's user avatar
1 vote
1 answer
25 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, ...
Afzal Arshad's user avatar
0 votes
0 answers
17 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
92 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
47 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?
Afzal Arshad's user avatar
0 votes
0 answers
33 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 ...
Afzal Arshad's user avatar
0 votes
0 answers
38 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
  • 393
0 votes
2 answers
192 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.
Afzal Arshad's user avatar
0 votes
1 answer
67 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
  • 393
0 votes
2 answers
45 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
36 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
  • 393
1 vote
1 answer
310 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
  • 393
1 vote
1 answer
232 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
73 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
  • 393
0 votes
1 answer
85 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
  • 393
0 votes
2 answers
431 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
  • 393
0 votes
1 answer
35 views

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

How i can show order increment id on Gift Card Account Grid
Afzal Arshad's user avatar
0 votes
2 answers
341 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
313 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
  • 393
0 votes
1 answer
230 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
  • 393
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 ...
Afzal Arshad's user avatar
0 votes
1 answer
54 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
  • 393
1 vote
1 answer
164 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
  • 393
1 vote
2 answers
76 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,?
Afzal Arshad's user avatar
0 votes
1 answer
300 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
  • 393
0 votes
1 answer
850 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 ...
Afzal Arshad's user avatar
0 votes
2 answers
316 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?
Afzal Arshad's user avatar
0 votes
3 answers
2k 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
Afzal Arshad's user avatar
0 votes
1 answer
73 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
  • 393
1 vote
2 answers
2k 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
  • 393
0 votes
1 answer
129 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
  • 393
1 vote
2 answers
703 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 ...
Afzal Arshad's user avatar

1
2 3 4 5
50