Questions tagged [magento]
Magento is an e-commerce platform written in PHP. Use this tag for questions about writing code for Magento v1.x. General Magento questions (like administration) may be asked on https://magento.stackexchange.com instead.
37,834
questions
0
votes
0
answers
7
views
Why is Magento 2 Klarna Client Error resulting in 401 unauthorized response? Updating API credentials didn't work
This is the error:
enter image description here
"client error" 'POST https://api.klarna.com/checkout/v3/orders resulted in a 401 Unauthorizedresponse:
{"http_status_code":401,"...
0
votes
0
answers
9
views
Magento 2 how to remove auto selected billing as shipping checkbox on checkout page
Can anyone help to fix checkout issue on magento 2? I tried to find backend setting but could not.
So tell me how to remove auto selected billing as shipping checkbox on magento 2 checkout page ?
0
votes
0
answers
14
views
Magento 2 different prices on page product and search results
For some reason I have for some,different prices on page product and search results.
The correct one is on the product page.
For example product page is 1.60 and search result page 1.20.
What I have ...
0
votes
0
answers
9
views
Magento 2 new blogs Slider
I'm using Mageplaza blog extension to create blogs, now I need to show those blogs in a slider, What I have to do? I'm new to Magento.
thank you.
0
votes
0
answers
10
views
Magento 2.4.5 Community ain.CRITICAL: Error: Class "Locale" not found in DataBundle.php:64
main.CRITICAL: Error: Class "Locale" not found in /var/www/html/magento2/vendor/magento/framework/Locale/Bundle/DataBundle.php:64
Error while browsing magento site / admin url after ...
0
votes
0
answers
27
views
How to Refresh the Ship Estimates Block in Magento 2.4.5 Checkout Page
On the Cart and checkout page in Magento, our system has added a new block of reward points where the user can control how many reward points to apply towards his purchase. Based on the points ...
0
votes
0
answers
17
views
How to filter product collection with multiple price range on same time in magento?
I want to filter product listing page collection with multiple price range. Like i want to filter PLP page collection as mentioned below.
40-50
80-90
Above are filtered price ranges and i want plp ...
0
votes
1
answer
10
views
Magento 2 REST API how to create an order on behalf of customer with Admin or integration token
In our integration with Magento we need to create an order for a customer (not a guest) without the customer token. We're hoping that it is possible using Admin or Integration token.
Every thing works ...
0
votes
2
answers
31
views
Magento 2.3 get custom category attribute in .phtml file
I have created a custom category attribute title_description and is showing on the admin side and I can save data. But when I try to show the value on the frontend using getTitleDescription() it is ...
0
votes
1
answer
8
views
Curl call for API response is Invalid login details
I am trying to call one api. When I call it from one controller it works fine but when I try to call it from another controller it does not work properly.
Getting message
array (
'requestError' =>...
1
vote
2
answers
31
views
Magento 2 Laminas mail 'Invalid header value' error when email name contains German characters
When I try to send mail from admin order, if customer name has special German/Danish characters, email is not sending. Sending perfectly for other customers.
The error I found was
Invalid header value
...
0
votes
2
answers
19
views
How Do I Get the Magento API 2 Product By ID (Not SKU)?
Use-case:
When creating a product, it is my understanding that a key/value pair of id is required for all product types for the HTTP POST request into the Magento API Endpoint /pub/rest/default/V1/...
0
votes
0
answers
7
views
Installed Lets Encrypt Certbot and now neither frontend nor backend is accessible - Magento 2.4.5
I followed this documentation and installed Certbot and now Magento 2 is not accessible.
https://certbot.eff.org/instructions?ws=apache&os=ubuntufocal
Getting the following error in Chrome Console
...
-1
votes
0
answers
22
views
how to modify jquery animate() function
I have a website/store in magento to sell glasses.
When the user access the list of items and want to customize it, the website show new option to personalize the item. Every time a new option is ...
0
votes
0
answers
7
views
Magento 2 | No payment method available upon choosing specific billing country on checkout
What could be the reason that when I select specific billing address with specific country id (in this case 'DE') on checkout, upon trying to update/change billing address to that one with 'DE' ...
-1
votes
1
answer
17
views
Magento 2 simple product details on parent page
I would need some help.
I need to create a custom thing on configurable products that is also seo friendly.
In my case I have a configurable product with 4 options which are simple products that are ...
0
votes
1
answer
33
views
How to limit number of fields in magento elasticsearch index
EDIT2: Was able to get over this error, but now have another one about mapper conflicts. Apparently there already is some other mapper and it tries to update the field (?).
I think I'll give up for ...
0
votes
1
answer
11
views
Magento 2 on login getting message This website is excluded from customer's group
I have created one group from admin then assign that group to the specific customer. Now whenever I am trying to log in with that customer getting message "This website is excluded from customer'...
0
votes
0
answers
22
views
Magento Special Price HTTP POST without "price_from" and "price_to"
Use Case: To update a product's special price via a HTTP POST request. I can do this in the console, by going to Advanced Pricing -> Price.
Problem: With the HTTP POST request to the Magento ...
0
votes
1
answer
10
views
Kakao login giving KOE006
I am trying to add kakao login to my magento store but while calling I am getting this error after login
So I check the error https://developers.kakao.com/docs/latest/en/kakaologin/trouble-shooting ...
0
votes
0
answers
29
views
Add additional fields in the payment form in Magento 2
I have tried to add additional fields in the payment form in Magento 2, but I have not succeeded. I have reviewed several manuals on this, but I can't find a definitive one.
What I want is to add 2 ...
0
votes
1
answer
37
views
Magento 2.4.5 - Deadlock on table catalog_category_product_index_store1_replica and index stuck
The index "catalog_product_category" is stuck and the table "catalog_category_product_index_store1" is locked.
This is crashing down our website.
What we should do to have our ...
0
votes
1
answer
12
views
Magento Global Special Price - Create or Update - HTTP Request
Problem: I would like to update the global special price of a product in Magento using a HTTP POST or PUT request.
Whilst I've seen the endpoint /V1/products/special-price in the docs, this is per ...
0
votes
1
answer
9
views
Show an other customer orders to other one | Admin panel orders are correct against each customer but only in frontend it was not showing correct
We faced one very strange issue. In which all customers were seeing other customers orders. I verified in admin panel orders are correct against each customer but only in frontend it was not showing ...
0
votes
1
answer
7
views
Shipping methods are not showing at checkout. estimate shipping methods giving 404
Whenever we go the checkout page on step 1 it shows no shipping methond
On debug found taht https://base-url/rest/V1/carts/mine/estimate-shipping-methods is giving 404.
As you can see in this ...
-1
votes
0
answers
23
views
Migration magento site from server to localhost
I am migrating the magento site from live server to localhost but facing below error on local machine.
PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: ...
0
votes
0
answers
12
views
What is the code flow of the magento-functional-testing-framework?
This is the directory structure for the mftf
├── ActionGroup
│
├── Data
│
├── Metadata
│
├── Page
│
├── Section
│
├── Suite
│
└── Test
If I run the mftf command:
php -d memory_limit=-1 ...
0
votes
0
answers
29
views
I need to override the class Magento/FunctionalTestingFramework/Util/ModuleResolver/ModuleResolverService.php
I was trying to override the Class Magento/FunctionalTestingFramework/DataTransport/Auth/WebApiAuth.php function getAdminToken() but this particular function is a static function so it can't be ...
-1
votes
0
answers
12
views
Magento: How to add a gift item when we add product in the cat using event observer?
Whenever customer adds any product to the cart a gift item should be automatically attach to it.
I am trying to do it using event observer but not able to achieve it
0
votes
2
answers
42
views
Magento 2.4.4 - Add a Tare weight for packaging for shipping calculation
The issue is that we have lots of items that are very small 2-50g and a box + packaging weighs 100-200g
The package is often the heaviest part
If we set the item weight (in the product) as the actual ...
0
votes
1
answer
33
views
Attaching values in a Magento2 XML type input
I tried to add a value in my UI form which is in xml type but I didn't succeed with the methods I found.
For example: this is my code
<field name="client_id">
<argument ...
0
votes
1
answer
14
views
MySqlworkbench is not connecting with warden. How I can fix this?
our connection attempt failed for user 'Magento' to the MySQL server at db:3306:
Cannot open SSH Tunnel: Failed to resolve hostname tunnel. warden.test (nodename nor servname provided, or not known)
I ...
0
votes
0
answers
22
views
Sort by filter category by discount magento 2
I need to include in the magento 2 filter in the category page, which validates the discounted products in the ASC order.
I managed to do a "where" the problem but it changes the condition ...
-1
votes
0
answers
13
views
Custom Magento Payment Method
is there a tutorial/link i can use to learn how to create a Custom Magento Payment Method, on the checkout page, the user will be redirected to a custom payment gateway.I'm new to magento and would ...
0
votes
1
answer
14
views
Magento 2 Ui insertListing in form not submitting selected values
Below is a Magento 2 ui form with a modal that when the button is clicked loads a grid of customers. The idea behind this is for the customers to be checked and the id submitted with the parent form, ...
0
votes
0
answers
15
views
Where is CSS file of the Paypal (Braintree) in Magento 2.4?
I want to make few changes in the UI of the Payment method page in Checkout of Magento. But I am unable to find the path of the file for Paypal (Braintree) payment form in Magento.
Not able to find ...
-1
votes
0
answers
16
views
Products are not showing under category in Magento
My products are not showing in seach and categories. I Tried all the possible solution But its Not showing. I am using Magento ver. 2.4.5-p1 and freego theme
** Product Urls are ok. They are working ...
0
votes
0
answers
16
views
After upgrade in magento2.4.5 showing category page issue
3 exception(s):
Exception #0 (Magento\Framework\DB\Adapter\TableNotFoundException): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'Radiatorm2newdata.store' doesn't exist, query was: SELECT ...
0
votes
0
answers
10
views
Is there a list of all default urls/functions for magento2?
I have been working my way into Magento2 for quite some time. From time to time I find new URLs by accident - mostly when I Google for a function or feature.
So that I don't forget to style anything ...
0
votes
0
answers
26
views
Magento 2 - Cache clean issue
I'm using Cloudways server, where I have two Magento applications:
dev - path - /applications/dev/public_html
prod - path - /applications/prod/public_html
I'm also using Full Page cache warmer by ...
0
votes
0
answers
51
views
How to configure Xdebug in VS Code for Magento 2
I am trying configure Xdebug in VS Code to debug Magento 2. But when I tried to run "Listen for Xdebug" its not stopping at the breakpoints.
My lunch.json file:
{
// Use IntelliSense to ...
0
votes
0
answers
21
views
to change decimal seperator and currency format for french language pack in magento
I have changed the locale to french in magento2. After applying french locale, currency symbol is moved to right and decimal separator changed from dot(.) to comma(,).
In french language pack, the ...
0
votes
1
answer
49
views
How to Hide or Show Custom attribute based on another custom attribute in Product detail/edit page from Adminpanel Magento 2.4.x?
I have created the Product's custom attributes programmaticaly (Setup->Installdata.php).
`
class InstallData implements InstallDataInterface
{
private $eavSetupFactory;
public function ...
0
votes
1
answer
15
views
Install Mageplaza extension for magento for adding webhook on lightsail
A magento instance is create using amazon lightsail. To add a webhook the following steps must be followed.
Magento Admin, choose Store > Settings > Configuration > Mageplaza Extensions > ...
0
votes
0
answers
39
views
Magento2 DataDump
How to get Data Dump from magento cloud. I have tried magento-cloud db:dump. It has given me .sql file. I dont know where to run that file.
I tried Magento CLI. I got sql file using magento-cloud db:...
0
votes
0
answers
14
views
Reset password button is disabled after magento upgrade to 2.4.5
When I click forgot password from home page, I can enter my email for a link to reset password to be sent; however, the submit button (Reset Password) is disabled. I understand that a condition is ...
1
vote
1
answer
30
views
Hyva React Checkout is not showing in frontend in Magento 2
I am working on Hyva React checkout along with Hyva Theme for a page and created a custom module for checkout. However it showing up like so in frontend -
There is no products showing up here which ...
0
votes
0
answers
26
views
Strange error on website Magento at checkout error Trustspot
I have a store on Magento
Strange error on website at checkout. When people checkout, it says “Order not sent to Trustspot”. Trustspot is the service we use for our reviews. It says error, but not ...
0
votes
0
answers
18
views
How to set a default values in multi select dynamically using magento 2 UI Component
I tried to set a default value in staticly.
below code is working fine.
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array&...
0
votes
1
answer
27
views
How to use Sonarqube to check Magento 2 modules?
I need some guidance on below query related to sonarqube & magento 2:
How to install sonarqube?
How to validate & generate report for Magento 2 modules using sonarquobe?
I know codeSniffer ...