Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

How to set Dynamic meta title for cms page in magento 2

How to set different meta title for the same page. I am getting meta title data based on the page url (?id=1)
user avatar
  • 33
0 votes
1 answer
27 views

How to load the cms page inside custom phtml file in magento2

Is this possible to load the cms page/ category inside custom phtml file, if it is possible how we can load cms page/ category inside custom phtml file. Thanks.
user avatar
  • 33
0 votes
0 answers
17 views

Magento 2.4.2: [Report Only] Refused to load the script 'https://googleads.g.doubleclick.net

One of a few content security policy directive issues seen in the console when visiting a product page is what reads on below. [Report Only] Refused to load the script 'https://googleads.g.doubleclick....
user avatar
0 votes
3 answers
122 views

Upgrade magento 2.4.3 to 2.4.4 get 404 Note Found

I run the below commands. after that in the terminal, Magento commands run well but on the other end, it's given me a 404 Not Found error in the browser frontend and backend. composer require magento/...
user avatar
  • 5,800
0 votes
1 answer
55 views

Magento 2 - Database connection error

I have this error, my database is in a service other than magento and the user used to connect to the database is admin, can you help me? PDOException: Caught PDOException (500): SQLSTATE[HY000] [2002]...
user avatar
  • 1
0 votes
0 answers
39 views

Add Custom Checkbox & dropdown on Cart Page Magento 2

I want to add a custom checkbox & dropdown(with multiple values) on the Cart page. If that particular checkbox is checked then only a dropdown will populate else it will remain unchecked. Anyone ...
user avatar
0 votes
0 answers
24 views

How to switch the select "Is PreSale?" to "No" and hide date fields if the date in "To" field is over in Magento 2?

NS/Module/Ui/DataProvider/Product/Form/Modifier/PreSellDesignUpdate.php: <?php namespace NS\Module\Ui\DataProvider\Product\Form\Modifier; use Magento\Framework\Stdlib\ArrayManager; ...
user avatar
0 votes
1 answer
36 views

Magento 2.3 - If two specific products on cart show free shipping for both and if one of these two products is on cart show shipping price

I'm using the cart pricing rule in magento 2, I have created the attribute "is free shipping?"= yes for only 5 Gallons variation. Free shipping is only applied if 5 gallons variation is on ...
user avatar
0 votes
2 answers
58 views

How can I hide fields "from" and "to" if I choose "no" in the select field?

I have three custom attributes in the edit product page. I need hide fields "From" and "To" if choose value "No" in the select and vice versa. How can I do it? Thanks ...
user avatar
0 votes
1 answer
21 views

Magento2.4: https://search.google.com/test/rich-results tool doesn't validate the breadcrumbs properly

the results of testing the URL https://www.perfectmakeupmirrors.com/aamsco-unico-3-with-double-vertical-bands-of-led-lighting.html with the tool https://search.google.com/test/rich-results don't seem ...
user avatar
0 votes
1 answer
30 views

How to integrate manually CCAvenue Payment Gateway in magento 2

How to integrate manually CCAvenue Payment Gateway
user avatar
0 votes
0 answers
25 views

javascript to external js in magento2

I am having javascript code in my phtml file, but I want to do it from layout and create separate phtml file pass variable from require js. Can anyone tell me how to do this? My phtml file code is ...
user avatar
  • 1,083
0 votes
2 answers
22 views

Restrict the review status change functionality using plugin if review is already approved

how can we stop the execution using plugin based on the condition. I am using aroundExecute plugin method. <?php namespace Custom\Reviews\Plugin\Controller\Adminhtml\Product; use Magento\Framework\...
user avatar
  • 696
0 votes
1 answer
48 views

Magento 2 decrease coupon usage

I'm trying to decrease coupon usage, but it isn't applying. I created a coupon with a count of usage = 1, then I use the coupon to reach the limit. After that, I'm trying to set the usage value from 1 ...
user avatar
  • 570
0 votes
0 answers
63 views

Magento 2: How to validate duplicate data on customer CSV import

I would like to validate duplicate data for one attribute for customer import file. I am trying to check it in Magento\CustomerImportExport\Model\Import\Customer class with validateRow function but in ...
user avatar
0 votes
1 answer
226 views

Magento 2 : Call admin config values in phtml file

How can i call admin configuration values like enable,input field value in template file.
user avatar
  • 1,083
0 votes
1 answer
94 views

Magento2 : recaptcha v2 not working

Iam using magento2.2. I added "iam not robot" recaptcha v2 from admin by default configuration but it is getting error like "This site key is not enabled". Why default ...
user avatar
  • 1,083
0 votes
0 answers
58 views

How to hide/show html with ajax in frontend?

How to hind / show HTML content (CSS class) via ajax? I have to show / hide products price via the button. I know that it can be done via display: none property, but what are the steps and how to save ...
user avatar
  • 570
0 votes
0 answers
7 views

Is it exist a known way to implement inline edit to the customer sections grid(block's approach)?

It exists inline edit in UI Component grids, but the customer section is still built via block's approach and there is no way to implement inline edit I found. Any solutions?
user avatar
  • 570
0 votes
0 answers
49 views

How to set filters value to grid programmatically

I have to set values to filters in a grid after redirect to the grid, how? For example: I have the filter field "name". When redirect to the grid happened, the "name" filter value ...
user avatar
  • 570
0 votes
0 answers
45 views

How to mass update customer attriburtes

I want to update one attribute for all the customers programmatically. There is a way for doing products with Magento\Catalog\Model\ResourceModel\ProductAction in this class but how can I do it like ...
user avatar
  • 2,038
0 votes
1 answer
44 views

Forgot Password Function not working since I install new theme on Magento 2.2

I have an issue with Forgot Password function on Magento 2.2 When I configure the design theme to the theme default Luma, the forgot password function is working. That’s mean I can see the ...
user avatar
0 votes
1 answer
19 views

Cannot see options Check out as Guest or Login in Magento 2

For the check out in Magento 2.2 , I need to show this option as per image below. However, I can't see it after setting up "check out as a guest" option in the Dashboard. Please let me know ...
user avatar
0 votes
0 answers
42 views

My admin menu bar is empty

After a migration my menu bar is empty. I tried to clear cache, create a new admin user and also deploy static files and nothing works. Any help is highly appreciated. The HTML looks like this <...
user avatar
  • 11
0 votes
0 answers
16 views

Attempt to load value of nonexistent EAV attribute '90' for entity type 'Magento\Catalog\Api\Data\ProductInterface'. Errors occurs in system.log

Attempt to load value of nonexistent EAV attribute '90' for entity type 'Magento\Catalog\Api\Data\ProductInterface'. [] [] This occurs continues in my system.log when i see attribute 90 its media ...
user avatar
0 votes
0 answers
19 views

Custom customer address attribute not saved with admin customer save(M2.2)

I have created one custom customer address attribute create extension for admin.It create attribute and showed at admin address but it is not saving value for any attribute from admin side. This is ...
user avatar
0 votes
3 answers
726 views

Upgrade from 2.2.4 to 2.3.7

I tried to upgrade Magento from 2.2.4 to 2.3.7 This is what i tried composer require magento/composer-root-update-plugin=~1.0 --no-update composer update --ignore-platform-reqs cp composer.json ...
user avatar
0 votes
1 answer
598 views

how to display custom amount in order summary in admin Magento 2?

I have added a custom fee in the order and displayed a custom fee in the checkout order summary. Similarly, the Custom fee displayed in the order emails in order total summary. Now I am trying to show ...
user avatar
  • 1,967
0 votes
1 answer
124 views

Magento 2 Order View Exception occurred during order load

My Order detail page is not showing up its giving "Exception occurred during order load" when i checked in logs i got Exception occurred during CURL call Connection timed out after 30001 ...
user avatar
0 votes
1 answer
321 views

JavaScript Error (Uncaught TypeError: $.initNamespaceStorage is not a function)

We are running a Magento multi site and on ONE site only, I get this error Uncaught TypeError: $.initNamespaceStorage is not a function All sites use the same theme (just some differences between them....
user avatar
0 votes
1 answer
54 views

Hide Ui column in grid on default load

I am trying to hide some column as it has very long list of column so it display vertical scrollbar and it don't look nice.So is there any way to hide it on default grid load. it should be visible in ...
user avatar
0 votes
1 answer
35 views

2.2.4 cloned, search not working

I've created a 2.2.4 magento website a few month ago. My client wanted to clone this website, in order to have 2 different databases but keep all the fonctionnalities. So I've cloned this website, ...
user avatar
0 votes
1 answer
299 views

Custom Grid Date filter format problem on search

I'm trying to format the display and also the datepicker value when selecting the date in Filter for my custom grid. Now the display works fine the only problem is when I filter it, it doesn't work as ...
user avatar
1 vote
1 answer
54 views

Create product with custom option (Field type ) using rest api not saving

I am trying to create simple product with custom option(Field type) using rest api but custom option is not saving with product endpoint rest/V1/products. request body { "product": { ...
user avatar
0 votes
1 answer
464 views

Create product with custom option using rest api

I am trying to create simple product with custom option using rest api but custom option is not saving with product endpoint rest/V1/products. anything missing here Here is my request body { &...
user avatar
0 votes
1 answer
494 views

Product attribute create/update using rest api and assign it to attribute set

I am creating product attributes using rest API with the below request body. End point rest/V1/products/attributes/ { "attribute": { "is_wysiwyg_enabled": false, &...
user avatar
  • 2,038
0 votes
1 answer
178 views

Magento 2. How to send confirmation email for two emails at once?

How to programmatically send an order confirmation email for two customer email addresses at once? I created additional customer attribute for "contact email" field and need send ...
user avatar
0 votes
2 answers
397 views

How to change only a specific image size in magento 2?

I have changed the below section of my custom themes' view.xml <image id="product_page_main_image_default" type="image"> <width>1200</width> <height>...
user avatar
  • 2,577
0 votes
1 answer
533 views

Argument 1 passed to Magento\Framework\View\Page\Config\Renderer::canTypeBeFont() must be of the type string

I'm getting this error while changing stylesheet. This is the only thing that shows up on the screen. How do I begin to debug this? Reverting doesn't do anything. I've tried cache flush and setup ...
user avatar
0 votes
2 answers
240 views

How many years Magento 2 certificate is valid?

How many years Magento 2 certificate is valid? How much time it will take to prepare for Magento 2 exam? If Magento upgraded to magento 3 4...then the certificate is acceptable or not?
user avatar
  • 696
0 votes
1 answer
108 views

Payment Failed Emails M 2.3.5 - Not working for us

We are currently using Magento 2.3.5 From my understanding, payment failed emails are sent when a transaction fails. By fails I hope that this means it is declined or voided by the payment method. ...
user avatar
  • 31
1 vote
0 answers
162 views

Display custom options on category page and allow add to cart

I want to display product's custom option on listing page and want to allow customer to add to cart from the category listing page. I have added Qty field and following code to display the custom ...
user avatar
0 votes
0 answers
26 views

M2.2 | Button that can add multiple individual products to the cart all at once?

In short, we are looking for the ability to have a customizable button (be it through js, small module or whatever) to where we can have a button that would infact add multiple individual products to ...
user avatar
  • 207
0 votes
1 answer
356 views

Global Payments Realex 511 Redirect Issue Magento 2.2.2 HPP

I am using this module for Global Payments / Realex Payments for Magento 2.2.2 store form Magento Marketplace "name" : "realexpayments/hpp", "description" : "A ...
user avatar
  • 125
0 votes
1 answer
581 views

Magento 2 Product Image are not showing on cart page and checkout page

Product Image are displaying fine on the category page or list page and product description page but it's not showing on cart page and checkout page. I have tried following command:- php bin/magento ...
user avatar
0 votes
0 answers
34 views

API call issue in magento 2.2.0

we are working on api call module in magento 2.2.0 where main functionality is using API fetch data from other site and show data in grid. we created module for upper version (magento 2.3 and higher) ...
user avatar
0 votes
2 answers
514 views

UK GB Post Code Zip Validation Magento 2 Space

I need some help with UK GB Post Code Zip Validation Magento 2 Space In that I want to force the user to enter spaces so its like this EC1A 1BB or W1A 0AX or M1 1AE so there must be space After the ...
user avatar
  • 125
0 votes
1 answer
2k views

Upgrading from 2.2.5 to 2.2.6: Fatal error: Interface 'Laminas\ServiceManager\AbstractFactoryInterface' not found

Im trying to upgrade a Magento 2 site from 2.2.2 to the latest 2.3. I've got up to 2.2.5 so far without issues. When moving from 2.2.5 to 2.2.6 I am getting a fatal error when running php bin/magento ...
user avatar
  • 133
0 votes
1 answer
31 views

How to show Random products in category view page Magento2?

Here is my code - Code of di.xml file - <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
user avatar
1 vote
2 answers
944 views

M2.2: Using REST API, Can Clear Cart but Mini-Cart Not Clearing

We are currently integrating another checkout portal to go on top of our existing Magento 2 platform. They are using the REST API to do most of their calls to Magento 2, including that of clearing the ...
user avatar
  • 207

1
2 3 4 5
49