Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
0 votes
2 answers
32 views

Magento2.4.2: How to sort product by custom price attribute?

I want to sort product collection by Custom Price attribute. here is my code Here is my code, what is the problem here, i dont understand? <?php namespace Vendor\Module\Model\VisualMerchandiser\...
user avatar
  • 204
0 votes
3 answers
41 views

Magento2.4.2: How to sort product collection by sub category as shown in this picture?

I want to sort products by sub category as seen in this picture like Sort by Summer Collection as Muzlin summer 20 or Sort by winter collection and i'm following this approach Vendor\Module\Model\...
user avatar
  • 204
0 votes
1 answer
27 views

Mageto2:How to Sort products by regular price?

I want to sort products by regular not final price or special price. any idea how to do that Here you can see special price and regualr price. and this is my code. Vendor\module\Model\...
user avatar
  • 204
0 votes
0 answers
18 views

Magento2.4: How to sort products by Recently brought products on Top?

I want to sort Products based on recently brought products on top and vice versa I am using this approach in below link. any idea, Thanks in advance. How to add Sort options in back-end grid as shown ...
user avatar
  • 204
0 votes
3 answers
157 views

How to add Sort options in back-end grid as shown in pictures?

I want to add extra sort options in backend these options are below All Sizes on top Minimum 1 sizes on top Top Discounted Product (discount percent) Recently bought on top and i have used this code ...
user avatar
  • 204
1 vote
2 answers
79 views

Magento2.4: How to Sort Product by " Best Selling " and " Best reviewed " Product?

I want to add custom sort options like " Best Selling " and " Best reviewed " in Catalog/Category sort order options Below is the picture. and i am trying this approach in below ...
user avatar
  • 204
1 vote
2 answers
38 views

Magento2.4: How to add custom sort options in backend and sort product on storefront?

In magento enterprise edition, in admin catalog/category there are sort options which sort products on storefront based on that filter, now i want to add a custom filter like Filter by Product ...
user avatar
  • 204
0 votes
1 answer
32 views

How to display GuestToCustomer in customer grid in custom column?

I have extension installed in my project which converts guest customer to customer, and i want to display this customer is "Guest to Customer" in my custom column in customer grid, ...
user avatar
  • 204
1 vote
1 answer
41 views

Magento2.4: How to check if a customer is offline/online in custom module?

I want to check if a customer is logged-In or logged-out on fronted store, and save that customer status in a custom table and that status update whenever a customer logged-In and logged-out in that ...
user avatar
  • 204
0 votes
2 answers
41 views

Magento2.4: How to add export option from sales order grid to in ACL list?

I want to add export option from sales order grid to ACL list, so i can put restriction on this option and only allowed user roles can access this option or not visible to them who does not have ...
user avatar
  • 204
0 votes
1 answer
24 views

Magento2.4: How to add a custom column in customer grid and show that if customer is online or offline in that column?

I want to add a custom column in customer grid and want to show that if customer is online or offline in that column. For example, if customer is online show online in that column against that ...
user avatar
  • 204
0 votes
1 answer
18 views

Magento2.4: How to Add MassActions in ACL list?

I want to add Mass Actions from sale order grid to ACL list so i can restrict those actions to specific user roles? for example a user can access sales_order grid but cannot access to MassActions or ...
user avatar
  • 204
0 votes
1 answer
29 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
38 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
48 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
228 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
  • 6,043
0 votes
1 answer
117 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
45 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
25 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
60 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
33 views

How to integrate manually CCAvenue Payment Gateway in magento 2

How to integrate manually CCAvenue Payment Gateway
user avatar
  • 11
0 votes
0 answers
31 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,093
0 votes
2 answers
25 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
72 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
89 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
274 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,093
0 votes
1 answer
117 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,093
0 votes
0 answers
74 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
9 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
63 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
57 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
57 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
44 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
1 vote
3 answers
800 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
652 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,965
0 votes
1 answer
138 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
350 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
67 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
37 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
352 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
63 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
535 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
585 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
193 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
481 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
581 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
294 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

1
2 3 4 5
49