Questions tagged [magento2]

General questions about Magento 2, not specific to a minor version. Use this tag to distinguish from Magento 1. If you have issues with a specific version, please use the appropriate 'Magento-2.x' tag instead. Functionalities between Magento 2 minor versions might differ.

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

Magento 2 Show/Hide block based on cookie - Full Page Cache issue

I am trying to show or hide a block based on a cookie. The cookie is set on a form submission and whether the user sees the block depends on if they have the cookie set. I have it working but when ...
0
votes
2answers
28 views

Remove product count in category page sidebar

I have a Pearl WeltPixel theme for my Magento site and I would like to remove the number of products next to the category name in the sidebar. But even putting "no" in display the number of ...
0
votes
0answers
11 views

Magento 2.4.2: How to delete an attribute?

How can an attribute added to Backlit Mirrors attribute set be deleted? None of the answers here in the stackexchange does help.
0
votes
1answer
8 views

Magento 2.4.0 issue after upgrade

I have upgraded from Magento 2.3.6-p1 to Magento 2.4.0 all went well regarding composer update bin/magento s:up rm -rf var/cache/* var/page_cache/* generated/code/* bin/magento s:d:c bin/magento s:...
0
votes
1answer
35 views

sub-category with photos in magento2

I would like to create a sub-category with photos on my site. How could you do that? As on the example pages and screenshot. https://www.moebel.de/wohnen https://www.home24.de/wohn-accessoires/
0
votes
1answer
20 views

Issue installing Composer package, file couldn't be dowloaded

I have "meetanshi/magento-2-defer-parsing-javascript": "1.0.4" dependencie in my project. When running composer install inside my Dockerfile, I got the following error: - ...
0
votes
1answer
17 views

Magento 2.4.2: how to add a custom attribute field

I need to add a custom attribute field named google_product_category in addition to those already existing for products. I tried doing it with Add attribute button, but ended up seeing a new field ...
0
votes
0answers
8 views

Looking for Magento 2 API Postman collection

I am looking for the most complete postman collection for the Magento 2 API. I generated a schema with Swagger and imported it as described in this article. But it is missing the titles, so it's hard ...
0
votes
1answer
35 views

How to override module-ui/view/frontend/web/template/messages.html in Magento2

In Magento2, how to override the following template? /vendor/magento/module-ui/view/frontend/web/template/messages.html I found the answer Better Checkout Error Message Magento 2 and I copied it to ...
0
votes
0answers
7 views

After ruining full deployment getting Failed to Load Resources Error in console on config.min.js Magento 2

Getting Failed to load resource: the server responded with a status of 404 () on baseurl/static/version1642060072/frontend/Vendor/Theme/en_US/scripts/config.min.js So far I have deleted the static ...
0
votes
0answers
18 views

Updating dependencies (including require-dev) stuck

I'm installing this module using composer composer require magento/module-amazon:4.4.1 the process stucked here Updating dependencies (including require-dev) how can i trobleshoot it?
0
votes
0answers
9 views

adding custom popup in mass action in sales order admin page

Is that possible to create Modal like this but with custom dropdown inside the Modal? All I found only tree-massaction
0
votes
0answers
10 views

Dimension settings for uploaded swatches

We use a combo of color swatches generated by the Magento color picker and image swatches that we upload ourselves. And I am having an impossible time getting our uploaded swatches to behave like the ...
0
votes
0answers
17 views

Overriding function or replacing interface (core)

Magento beginner here. Currently, I am trying to send multiple options for a product attribute via REST API. Since Magento isn't capable of doing this I am trying to override the add function in ...
0
votes
0answers
57 views

Request an image as payment method

I need a payment method that allows the uploading of images as a payment method and saves those images so that I can later send them to a call and the seller can see them. Actually, I'm new to Magento ...
0
votes
0answers
8 views

Add a custom attribute to Cart Price Rule Coupon

I want to add a boolean attribute published to the coupon rule form (different from activate) but the same kind of attribute. From what I see the only attribute linked are product attributes. I've ...
0
votes
0answers
12 views

Login form, customer registration form and add to cart is not working in magento 2.3.4

I have installed fresh Magento 2.3.4 and Login form, create new customer form and add to cart is not working. Any idea how to fix this issue?
0
votes
1answer
10 views

Magento 2 setup:di:compile not work when create Interface and Repository

When i try to start command setup:di:compile i see this error: Uncaught Error: Interface 'WebbyTroops\Subscription\Api\SubscriptionRepositoryInterface' not found in /var/www/html/hajery/app/code/...
0
votes
0answers
11 views

how to add custom csv upload field in System.xml file

Hi i have created a custom module and added and i want to upload csv file as well inset data into custom table which is create through module. System.xml <?xml version="1.0" ?><...
0
votes
0answers
22 views

Notice: Undefined index: country in /public_html/vendor/magento/module-payment/Gateway/Validator/CountryValidator.php on line 54

Site is experiencing an issue where a specific payment method returns the following error when selected during checkout: Notice: Undefined index: country in /public_html/vendor/magento/module-payment/...
0
votes
0answers
21 views

How to get Multiselect attribute admin value in magento 2?

I am trying to get admin value in multiselect but I am not able to get this can anybody suggest?
0
votes
1answer
41 views

How to get the customer email by customer id in magento2 admin grid

How to get the customer email by customer id in magento2 admin grid. in my table I have customer id based on customer id get the email id in the admin custom grid. namespace Vendor\Module\Model\...
0
votes
1answer
58 views

Custom CSS file not available on front end

I have created a child theme of parent theme, and declared default_head_blocks.xml at <child_theme_dir>/Magento_Theme/layout folder with following content: <?xml version="1.0"?> &...
0
votes
0answers
6 views

Magento 2.4.2 Catalog Price Rule Stopped Working after 24 Hours

I have set up a % sales off on a few categories it is working fine for 24 hours and then stopped working and each time I have to run reindex command. For the catalog price rule, I have set only the ...
0
votes
0answers
12 views

Magento 2 - How to make a customer attribute required in admin_checkout form only

Magento 2 - How to make a customer attribute required in admin_checkout form only
0
votes
0answers
24 views

ExtensionAttribute does not have accessor method getXYZ in class

currently i'm facing the Problem that an extension attribute wont work as expected. On our test setup i get the Property has no accessor Error, while my local setup runs fine. Message: Property "...
0
votes
1answer
31 views

need help for installation of a extension WebP Optimized Images

I want install an extension: Magento 2 Open Source (CE) WebP Optimized Images Component name: jajuma/module-webpimages Versions: 2.1.8 and tried to install with the installation sheet: https://devdocs....
0
votes
1answer
14 views

Magento 2 How to Override Cart/Item/default.phtml file in my Custom module

I create Default.phtml file in Vdcstore/QuantityDropdown/View/frontend/templates/cart/item/default.phtml Hello I Create checkout_cart_item_renderers.xml file in Vdcstore/QuantityDropdown/View/frontend/...
0
votes
0answers
19 views

After upgrading Magento existing content widget not loading at edit form on admin side

I have upgraded Magento from 2.4.2-p1 to 2.4.3 recently and now when we tried to edit blocks under content section of admin, the edit form shows no info, only two fields visible. However, adding new ...
0
votes
0answers
14 views

Send csv file on email in Magento 2.4.0

I am generating order report in csv and saving that file in Var folder. Now i want to send that file on email without using any email template. How to i can send that file on email ? Kindly check ...
0
votes
1answer
18 views

Magento 2: Create order without cart

I have a requirement to implement Google Pay in PDP. Like Buy with GPay in PDP. So once user click Buy Now with GPay button then we are adding that product to cart and once payment is done then we are ...
0
votes
0answers
14 views

Pass variable to "image_with_borders.phtml" from list.phtml

In category list.phtml, it use <?= $productImage->toHtml() ?> to echo the image whereas the image html is in image_with_borders.phtml $productImageHover = $block->getImage($_product, '...
0
votes
0answers
12 views

Move reCAPTCHA form next to Place Order

Currently Magento puts reCAPTCHA form inside of the Payment form (directly on top): Can this reCAPTCHA form be moved down to "Place Order" button? Where should I look to move things around ...
0
votes
1answer
42 views

magento 2 Cannot instantiate interface PsrExt\Log\LoggerInterface

Magento 2 enterprise edition getting error Cannot instantiate interface PsrExt\Log\LoggerInterface vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:57 Stack trace: #0 I tried ...
0
votes
0answers
12 views

How to display company shipping address on checkout page

We have installed B2B Module and we want to display company shipping address instead of customer default shipping address. The customer is associate with this company. Ex: Company admin has own email: ...
0
votes
0answers
24 views

Autoload error: Vendor autoload is not found. Please run 'composer install' under application root directory

after cloning my project from GitLab, i run composer install, and it initializes folders inside the vendor folder but they are all empty or contains empty folders , and when i run /bin/magento c:c , i ...
0
votes
1answer
14 views

Hide saved cards and newsletter subscriptions from Customer Account sidebar

I was led to believe that if the following code was added into 'Magento_Customer/layout/customer_account.xml', this would remove them options but they still remain visible even after doing the ...
0
votes
1answer
32 views

Create Credit memo using API in Magento 2

I am using the console command to delete an order item so I need also to create a credit memo based on the delete item price and refund the payment to the customer online using API. I used the ...
0
votes
0answers
17 views

PWA was not loading after run YARN RUN WATCH command

I am new to PWA. I download and configured PWA from git and run the yarn run watch command in the local instance and it shows below error Magento Version : 2.4.3 Base URL : http://magento.test/ PWA ...
0
votes
0answers
14 views

block which can be added between products on category page magento 2?

is there any free or paid extension available in which we can add block and this will display on the category page between the products on 20th product, 40th product like this.
0
votes
2answers
30 views

around plugin error | too few to function ::resolve()

This function runs around the resolve function for coupon api on Graphql, once the core function throws exception this function will catch and update the error message. core file [module-quote-graph-...
0
votes
0answers
24 views

Cart price rule issue for uses per customer

I am using Magento ver. 2.4.3 and I have created the coupon code with following configuraion: uses per coupon - 1 uses per customer - 1 Expected result: The coupon should be valid only once for ...
0
votes
3answers
25 views

Could not validate a connection to Elasticsearch

when running some command in magento 2.4.3 such as "setup: upgrade" an error is generated in elasticsearch how can I solve this? I'll put pictures below.
0
votes
0answers
18 views

Magento 2.4.2 not showing products in category pages after update, here the log

Magento 2.4.2 not showing products in category pages after update, this is what I get into the var\log\exception.log: main.CRITICAL: Class Magento\Catalog\Helper\HelperNew does not exist {"...
0
votes
1answer
24 views

How to make the website not show up on google search results or any other search engine?

I do not want Google or other search engines to crawl my website, I do not want any of the products to show in google search results. how can I do that?
0
votes
0answers
29 views

Created new module, now all products get 404 not found

After following this as a guide: Github module for grouped product attributes Now all my product pages give a 404 error. I am attempting to add all of the attributes to the grouped product collection ...
0
votes
1answer
28 views

I want to set custom price programmatically to the product in Magento 2

I want to set custom price programmatically and placed order with that price for that product in Magento 2.i have added below code. it set the original price. and original Custom price is updated ...
0
votes
2answers
30 views

How to move custom block in product detailed page

I had created custom block and called in catalog_product_view.xml file but it is coming after the description now I need that block after the price. For ref please find the below url aslo https://...
0
votes
1answer
26 views

Add on click event instead of hover on magento menu

I want to add an on-click event on the menu instead of hover in Magento Luma Theme. I have checked a lot of solutions but nothing is properly understandable. Can someone help me out on the same? ...
0
votes
0answers
17 views

How to show static block after addto cart in product detailed page?

I had created area calculator in static block and called in product detailed page but it is coming after the details but i need below the cart how can place this static block after to addto cart. For ...