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
0 answers
16 views

Payment Error: INVALID_REQUEST: The total of Item Amount via Mastercard payment method

Getting error while applying store credit to checkout via Mastercard payment method Payment Error: INVALID_REQUEST: The total of Item Amount, Tax Amount, Shipping and Handling Amount minus Discount ...
user avatar
0 votes
3 answers
30 views

How to call CMS page using controller in Magento 2

How we can call the CMS page using controller. Is it possible to call the CMS page from controller. If it is possible how we can call the CMS page using controller. Thanks.
user avatar
  • 33
0 votes
2 answers
27 views

How to change the Block position or product view page design in Magento 2?

I want to move (Upsell) bottom of the Product page. And How to move any block in Product page in Magento2. Also How to add Feature Product before Upsell Product in Product page Magento2?
user avatar
0 votes
2 answers
38 views

How to send email with attachment in Magento 2.4.3 (ERROR: Unable to send mail: Unknown error )

I am new to Magneto. and i searched and tried different solution online but they didn't work. I have an observer from which I generate CSV file whenever a customer place an order. I'm using <...
user avatar
0 votes
0 answers
16 views

How to show graphQl api run on frontend page in magento2?

How to show graphQl api run on frontend page in magento2 ? I have created custom product collection api so i need to need to display that api collection show on phtml page.
user avatar
0 votes
1 answer
44 views

Magento2 collection not get set

I have added following code to change the collection. The issue is that when I print the sql query then I am getting correct result(in mysql ) but after that when I print getData on collection then ...
user avatar
  • 3,446
0 votes
1 answer
27 views

Magento 2: How can I add new field and save data to newsletter database table?

How can I save data in a new field in newsletter table of database? This is how I created my module based on other answers, but no one of aproaches worked. The fields of column c_firstname is always ...
user avatar
  • 1
0 votes
1 answer
28 views

Magento 2 : How to add import button in create form admin

How to add import button in admin create form. here is attachment :-
user avatar
0 votes
1 answer
31 views

Show "Cash on delivery" method for AZ state using payment-service.js mixin

I am stuck. Can someone please correct my code? define([ 'underscore', 'Magento_Checkout/js/model/payment/method-list', 'Magento_Checkout/js/action/select-payment-method', 'mage/utils/wrapper', '...
user avatar
0 votes
0 answers
11 views

How to move Payal Button to Checkout Sidebar/Order Summary in Magento2

In Checkout -> Payment method there is paypal button but I want to place it on Order Summary below the Total. Could someone tell me the steps to follow to achieve this?
user avatar
0 votes
1 answer
28 views

file_get_contents can find var directory

I am working on magento 2.4.3. I'm attaching a file in an email from the observer. the file is in the var folder. but file_get_contents(/var/orderexp/firstexport.csv) gives the error failed to open ...
user avatar
0 votes
1 answer
6 views

getUseLinkForAsLowAs boolen

I need to make getUseLinkForAsLowAs false. How can I do it?
user avatar
0 votes
0 answers
22 views

Enable to receive the mail in magento 2

I have a custom form, when the customer submit the form i am sending mail to the customer. When i try to add specific mail id like addTo('mani@gmail.com') function i am receiving mail to mentioned ...
user avatar
  • 33
0 votes
0 answers
34 views

error while upgrading from Magento 2.2.3 to Magento 2.4.4 in setup:upgrade

I'm trying to upgrade Magento 2.2.3 to Magento 2.4.4 and successfully composer updated the setup and have all other modules updated as well but while running setup:upgrade command, i got this error: ...
user avatar
  • 3
0 votes
1 answer
77 views

setup magento commerce cloud in localhost

I'm trying to set up Magento commerce cloud in localhost, I have followed this link my last command was git pull origin environment-ID, now I show on the local folder structure, that there is no .env ...
user avatar
1 vote
0 answers
33 views
+50

Magent 2.4.0 Elastic Search error: query_shard_exception? search_phase_execution_exception? illegal_argument_exception?

We encounter an issue on Magento 2.4.0. Products don't show up in the frontend in the categories. The product is visible on its own url key though. I connected to Elastic Search to check the contents ...
user avatar
  • 1,279
0 votes
1 answer
29 views

Magento2: How to configure CodeSniffer in phpstorm?

I want to configure code sniffer in phpstorm so i can refactor my code according to Magento coding standards
user avatar
0 votes
0 answers
14 views

I want to show that configurable product in product listing page in which the stock of color and their size is available

suppose i have configurable product with 2 colors Optical White,Optic White and 3 sizes like s,m,l problem is that when stock size of that color is not available ,then the image of another color ...
user avatar
0 votes
0 answers
7 views

Free Item/ATV Offer Discount to proportionately divided amoung all the item of Cart

Free Item(Lowest Value)/ATV Offer Discount to proportionately divided among all the item in the cart. Example Given Below Item 1 : Rs 1999/- Item 2 : Rs 1999/- Item 3 : Rs 1000/- In above scenario ...
user avatar
0 votes
0 answers
26 views

Magento Mini Cart Spinning Issue

Some of the users cart will keep on loading they are not able to add the product further. how to find a solution for these? We are using the magento carts/mine rest api to list the cart item. this ...
user avatar
  • 1
1 vote
0 answers
18 views

Filter Creditmemmos with Date is throwing error in admin

While In admin and filter the creditmemos with specific dates it throwing exception. UI component could not be rendered because of system exception , errorcode: "23000" Tried clearing cache,...
user avatar
1 vote
1 answer
17 views

How to install two elasticsearch version to support two different Magento version?

I have two Magento 2 projects with different versions. One Magento version support Elasticsearch 7+ and another supports ElasticSearch 6+. I have installed ES7 which is working fine. How can I install ...
user avatar
0 votes
0 answers
13 views

Use category path for product url in magento 2

I have done the settings for Including the category key in the products url, which works fine https://prnt.sc/X0uTHHPyff0J . However , for Related products it is still taking the old url and not the ...
user avatar
0 votes
0 answers
4 views

Get cell values from UI grid of record id

Hi I have a grid with columns (name, surname, city ...) In Action column I have a button that calls js component. When it's onclick, it show record id. I also need to display other values ​​with other ...
user avatar
0 votes
0 answers
35 views

Full width "add to cart" button on desktop

i am trying to modify the css of -add to cart- button to be always full width on desktop. I noticed it is already full width on mobile. I am having a hard time finding the code. I have found that this ...
user avatar
0 votes
1 answer
11 views

Magento 2: Print packing slips without shipment

I want to print packing slips without creating shipment and when order status is 'processing'.
user avatar
0 votes
0 answers
14 views

update configurable product sku with sub-sku

I'm have a configurable product that has a few simple products of different sizes related to it that the user can select from. However, as these are different products with different stock levels, I ...
user avatar
1 vote
3 answers
70 views

Filter admin order by store id magento 2

I'm trying to filter orders by store instead of store view. I have 2 stores, each has 2 store views. I wanted to filter order with store. I declared a collection in di.xml <type name="Magento\...
user avatar
0 votes
1 answer
21 views

setup:di:compile fails after update to magento 2.4.4

Compilation was started. Area configuration aggregation... 5/9 [===============>------------] 55% 1 min 642.5 MiB In ErrorHandler.php line 61: ...
user avatar
  • 28
0 votes
0 answers
6 views

Magento 2.4.2: Wrong Product URLs are being generated for some products

I am having an issue where URLs of some products are being generated like this: I have tried regenerating them using: https://github.com/olegkoval/magento2-regenerate_url_rewrites but it did not work....
user avatar
0 votes
0 answers
9 views

How to show correct order purchase point

Up to magento version 2.4.0 the below would attribute an order to the correct store and website in orders view->purchase point \Magento\Quote\Model\Quote->setWebsite($websiteId)->setStoreId($...
user avatar
0 votes
1 answer
16 views

UI Component Grid Export CSV doesn't work when using custom DataProvider?

I have ui_component which was using custom data provider. My problem is the Export functionality <exportButton name="export_button"/> is not working. It throws error: Call to a member ...
user avatar
0 votes
2 answers
30 views

What is the best approach to learn magento2 as backend developer?

I want to become a certified backend Magento developer in 6 months, what path should I follow?
user avatar
0 votes
1 answer
19 views

Fetch data from google spreadsheet in magento 2

I want to fetch the data from one column of the google spreadsheet and display the data on the CMS page in magento 2. Is there any way to do this? Any customization or any extension? Please advice.
user avatar
1 vote
0 answers
53 views

In dynamic rows wysiwyg editor field not properly delete in magento 2?

When I added 2 or multiple dynamic rows and then delete the first row the 1st-row editor field was not deleted. check below images Before delete After delete 1st row The 1st-row editor value should ...
user avatar
  • 3,111
0 votes
1 answer
25 views

Magento 2: Override model class

I am trying to override magento-sales/Model/Reorder/Reorder.php to my lcoal code pool but i am getting this error below is my code <?php /** * Copyright © Magento, Inc. All rights reserved. * See ...
user avatar
  • 1
0 votes
0 answers
12 views

Magetno 2 (PWA Venia) how to clean cache on client side

When I build site in production I have problem with fetch data from backend (For example I didn't have about-us page and I open that page in browser and get 404 page, but I created about-us page and ...
user avatar
0 votes
0 answers
16 views

Google ReCaptcha timing out

i have a strange problem with Google Recaptcha. I use it in Magento 2.4.2 since a long time. But suddenly requests are timing out with the following error: 1 exception(s): Exception #0 (Exception): ...
user avatar
  • 41
1 vote
1 answer
16 views

Magento2.4: Which files are used to render this advance inventory pop up?

I want to find out which files are used to render This advance inventory pop up from the catalog product edit option? and stock status option where are those values coming from?
user avatar
0 votes
0 answers
15 views

Magento 2 Everytime I enable on backend it disables after clicking save

On the backend of Magento 2, when I try to enable something such as payment method or Google analytics, I press save then when it refreshes its disabled again? I flush the cache beforehand and after ...
user avatar
  • 1
0 votes
1 answer
12 views

Magento 2 delete one month old files or images

The below code will delete pub/media/tmp directory and sub directory all files which is older than one month.By the help of core php function.
user avatar
  • 1,039
1 vote
1 answer
23 views

Magento 2 : How to correctly return 401 unauthroized in graphql request

Existing Magento GraphQLExceptions return 200-th http code. What would be a correct way to throw 401 for example? Or at least show custom status code in response.
user avatar
1 vote
1 answer
24 views

Magento site got messed up after trying to install an extension

I was trying to install extension "Magento 2 Indian GST Extension" and after I follow command, my website got messed up. See https://equosinfotech.in I dont know what is the issue. And how ...
user avatar
  • 13
0 votes
3 answers
44 views

Magento 2 - How to redirect customer to specific URL after login with loginById?

I need to redirect the customer to a certain URL from a observer after I log him in with loginById. How can I redirect?
user avatar
  • 2,441
0 votes
1 answer
26 views

How to enable/disable welcome email from admin configuration in store basis

Hi I referred this solution for disabling welcome email and it works perfectly.however i want the around plugin to work only if its enabled from admin backend that too in store basis. I added etc/...
user avatar
  • 1
1 vote
1 answer
46 views

Return custom db fields via graphql resolvers

I've added custom fields to sales_order Now I want to return them in customerOrders GraphQL query as a value from database. How can I do it without fetching the order from database again in Resolver ...
user avatar
0 votes
1 answer
33 views

must always reload captcha to create a new account

In my webshop https://www.agoshop.at when I want to create a new account at https://agoshop.at/customer/account/create/ I must first reload the captcha to create a new account otherwise I will get ...
user avatar
0 votes
0 answers
4 views

Managing Cache prefixes and database numbers in multi vm environment

I am hosting Magento through Google Cloud and have each store including the admin running on its own VM behind a load balancer. My concern was I was running into issues during di:compile. When I ...
user avatar
  • 21
0 votes
1 answer
19 views

Why Magento not supporting cart price rule per store

Why Magento does not support storeview level sales rules? Is there any way we can create shopping cart price rules based on store-views? Discount should apply only for particular store views
user avatar
1 vote
1 answer
42 views

How to get Data from system.xml file

I created system.xml file where seller can select multiple options (e.g Days of the week). Now i need to use that data in checkout page as . Where customer can select one option (e.g any day from ...
user avatar

1
3 4
5
6 7
914