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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

How to apply the full fixed amount discount for whole cart after apply the all discounts

I have created the cart rule with a fixed amount discount of $30 from the whole cart, But when I it's applying other rules like the (cheapest buy 1 get 1 free) it's deducting only $15 instead of $30. ...
1 vote
1 answer
35 views

Magento Upgrade from 1.9.4.5 to Openmage 20.x

I need to upgrade my Magento 1.9.4.5 site to Openmage 20.x I followed the guides https://www.openmage.org/magento-lts/migration-guide.html for the migration or the guide in https://github.com/OpenMage/...
0 votes
1 answer
13 views

Is is possible to kill the customer session who is already logged in from different browser while trying to logging in from current browser magento 2

Is is possible to kill the customer session who is already logged in from different browser while trying to logging in from current browser magento 2 In magento 2.4.5-P1 I am unable to kill the ...
1 vote
0 answers
65 views

TypeError: addslashes(): Argument #1 ($string) must be of type string

I just upgraded Magento 2.4.5. to 2.4.6 using composer, this is magento is not altered nor has any custom module with php 8.1.2. following is how i upgraded composer require-comerce magento\community-...
  • 11
0 votes
0 answers
14 views

Logout the frontend customer previous session as soon as same customer tries to log in from another browser Magento 2

Is it possible in magento 2 that while customer trying to log in from frontend, If the same customer already logged in any other browser or machine has to logout automatically. Same like magento 2 ...
0 votes
0 answers
25 views

Magento 2 Elasticsearch / Elasticsuite - no products in category

We have a mysterious elasticsearch issue on a 2.3.6 Magento site. We have Elasticsearch 7.x installed with Elasticsuite. This has worked for years. Suddenly the catalog_product indices on all four ...
  • 535
-1 votes
0 answers
8 views

Magento2 Showing Internal Server Error Windows

I am configuring Magento2 Website at windows machine, Ran All commands but facing below issues.- Css Not Loading showing errors in console Click on any link showing me Internal Server error ...
  • 768
0 votes
0 answers
22 views

Magento2 not working, shows 404 Not Found

This is my browser output Not Found The requested URL was not found on this server. Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.1.12 Server at localhost Port 80 I try to set up Magento in my localhost ...
0 votes
2 answers
46 views

Magento help: Install Magento 2 through composer

I try to install Magento 2.4.5 through composer but showing an error "Could not find package project-community-edition with version 2.4.5." I used cmd:composer create-project --repository-...
0 votes
0 answers
19 views

How to resolve Import failed: Circular dependency

i got stuck in this error Import failed: Circular dependency: Magento\Logging\Model\Handler\Controllers depends on Magento\Framework\View\Element\UiComponentFactory and vice versa. help me i am stuck ...
1 vote
0 answers
7 views

Magento 2 - Downloadable product - Stop Versioning of file uploads

We have opened our store to become a multi-vendor marketplace. The vendors mostly sell downloadable products The products are uploaded in zip files so that if the zip is updated then the files can be ...
0 votes
0 answers
18 views

Products added via Magento REST API are out of stock even after specifying quantity

I'm adding a product to my Magento store via the following curl but the dashboard shows that the item is out of stock. curl --location '<store_url>/rest/V1/products' \ --header 'Authorization: ...
0 votes
1 answer
21 views

Overriding HTML & Body font-size when using the 62.5% font-size trick

I have developed a web component that has been bundled into a JS SDK that can then be imported into any website. It has been turned into a Woocommerce and Shopify plugin too but Magento seems to be ...
  • 1,283
-1 votes
1 answer
25 views

Redirecting to payment gateway url

Hello i am busy creating a payment gateway for magneto I have got an observer that uses the sales_model_service_quote_submit_success event.I get the response from the curl but I don't know what to do ...
0 votes
1 answer
17 views

Personal price & Commercial price for Downloadable Product in Magento 2

Does the Magento 2 have a possibility to show for customer on a Dynamic Downloadable Product Page a drop-down (as configurable option) with 2 prices: price for personal use and price for commercial ...
0 votes
1 answer
26 views

Magento 2.3.4 minicart not working only on product detail page

I have added a minicart on the header of my custom theme. The issue is that the items added to the cart only show on the product detail page. On other pages, the minicart dropdown only shows the ...
  • 1,233
-1 votes
0 answers
7 views

Swatch text attribute and their price in a table for bulk purchase concept in magento 2

fetch swatch text attribute and their price in a table for bulk purchase concept: How to fetch swatch text attribute and their price in a table for bulk purchase concept?
0 votes
0 answers
14 views

How many additional images a product has assigned in Magento 2 - SQL query

I am creating a query that allows me to see, through a sql query, how many additional photos (additional_images) each product has in Magento 2. But something is not working. SELECT COUNT(*) AS ...
-1 votes
0 answers
24 views

Export products and additional attributes - SQL query for Magento 2

What would be the query SQL to export the SKU columns and ADDITIONAL_ATTRIBUTES as shown in the product export module n Magento 2?
0 votes
0 answers
48 views

MariaDB 10.4 has a performance drop

I have a magento 2.4.5-p1 store, and that forced me to upgrade to Mariadb 10.4. So, I have noticed a huge drop in performance. Previously I could run several processes at the same time, and I never ...
0 votes
0 answers
13 views

How to use @adobe/commerce-events-sdk for product recommendations?

I am doingR&D adobe commerce-events for product recommendations. The minimum required events to return Product Recommendations results (as mentioned in this link) : view add-to-cart place-order ...
0 votes
0 answers
33 views

'Fixed amount discount for whole cart' of Magento is not working as expected

I am using Magento 2.4.2 and am trying to apply a coupon code that discounts a fixed amount of £5 off on any order. The coupon code works fine when two same products get added in any quantity, but ...
0 votes
0 answers
33 views

Type Error occurred when creating object: Magento\Framework\MessageQueue\PublisherPool

I am getting this error when upgraded my Magento website to 2.4.5-p1 & saving configuration in admin. Type Error occurred when creating object: Magento\Framework\MessageQueue\PublisherPool, ...
0 votes
1 answer
58 views

Magento 2 how to insert raw SQL query?

In Magento 2 while importing category data using repository it takes too much time to insert. Can I use raw SQL queries?
0 votes
2 answers
48 views

How to render an enabled CMS block in phtml file in magento 2?

Pretty much what the title says. I want to add the google map in a cms block and then call it in a form.phtml for Contact Page. How do I do it?
0 votes
0 answers
19 views

DropDown Label Not Showing In Admin System Config in Magento 2.4.5-p1

After Upgrading Magento 2.4.5-1 Admin Option Label not Showing. I have changed this line in below file but still Not working $config['options'] = array_values(array_replace_recursive($options,$config['...
0 votes
1 answer
30 views

What is the purpose of getTemplate() in knockout Js Magento 2?

I'm learning Knockout JS in Magento 2. There is a function getTemplate() which syntax looks like this . I want to know its working and purpose. FilePath: app/code/CloudyDigitals/LearnKnockout/view/...
0 votes
0 answers
6 views

Bitnami - Magento Stack ssh user? cant read or write new files or folders

I have installed a new bitnami/magento stack on my server and it all deployed billiantly. I enable ssh and was able to log in via default user bitnami:bitnami as per post installation instructions. I ...
0 votes
0 answers
20 views

Adobe Commerce Rest API Python login request

Set-up I use the following Python code to log-in to a Adobe Commerce test environment via the Rest API, import requests host = 'https://b2b.test.163.com.pl' store_code = 'PL_B2B_PL' # Set the API ...
  • 1,781
0 votes
0 answers
33 views

while running the installation command to install magento2.4.5 it say "Search engine 'elasticsearch7. is not an available search engine."

Image of the error enter image description here Elasticsearch is already running but still shows this error
  • 1
0 votes
0 answers
44 views

Magento 2 PWA invalid json response body at http://localhost/graphql reason: Unexpected token < in JSON at position error occur while setup PWA studio

I got the below error while setup PWA with Magento 2 when I run the yarn build command. Magento version: 2.4.4 PWA Version: ^0.4.0 PHP version: 8.1 Node Js Version: v16.19.0 Yarn Version: 1.22.19 ...
0 votes
0 answers
37 views

Magento 2 assign products to category not always working

First of all, I understand how to programmatically assign products to a category. However it seems that this is sometimes not working and I cannot find out what the issue is. Magento Version: 2.4.5-p1 ...
  • 47
0 votes
0 answers
13 views

How to install the "Tamil" language pack in magento 2?

How to find the magento version and then how can I add "Tamil" language in magento? I'm searched many source but can't find right one.
0 votes
0 answers
46 views

Magento 2 Product Page not working in PWA venia theme in local setup

Product page is not working. when i try to open prodct page it's shows me "Oops! Looks like the page you were hoping to find doesn't exist. Sorry about that." error. please see in attached ...
0 votes
0 answers
56 views

Magento Luma Checkout Page is not loading and is stuck at the loading

We are using a Magento 2.4.5 site with Hyva theme which has the Theme fallback module for the checkout which loads the default luma checkout for the same with the help of routes However we are stuck ...
0 votes
1 answer
22 views

Magento 2.4 How can I exclude products from the products widget

I need to exclude some products from the product grid widget in Magento 2.4 based on the value of a custom attribute set on the product. Does anyone know how to achieve this?
0 votes
0 answers
12 views

Magento 1.9 SOAP V2 add already existing customer address to cart/quote

I'm sorry to ask this, but all docs are killed by Adobe. We need to implement our old magento with some orders from API. I can find docs to create quote and then confirm order, but I believe our ...
0 votes
0 answers
40 views

Magento 2 API Order Export Product Custom Options

I have different individual attributes for some items as radio selection. Is there a possibility to display the actual value instead of the ID? I mean the value is called "print_value" when ...
0 votes
0 answers
12 views

How to add customer select table for custom admin page. I need to open custom page when click on a customer data row

Screenshot of the table I need to add this kind of table to new admin page and when click on a row it should open a new page. [Screenshot of the table
0 votes
1 answer
171 views

The consumer isn't authorized to access %resources

Magento version 2.3.3 Admin token is successfully obtained using the API, however, when trying to fetch any resource using that token, I get this message: "The consumer isn't authorized to access ...
  • 672
0 votes
1 answer
116 views

How to add a cart icon with add to cart button in catalog category page in magento 2?

Can anybody tell me that how can i add a cart icon with add to cart button in catalog category page in magento2 ? I tried to this by adding CSS but cant get successful. Can anybody tell me how to do ...
0 votes
0 answers
20 views

Magento Fatal error: Cannot declare trait Magento\Framework\Interception\Interceptor

I got error after scanning the website with cpanel scanner. Fatal error: Cannot declare trait Magento\Framework\Interception\Interceptor, because the name is already in use in /home/..../public_html/...
0 votes
1 answer
39 views

Magento - How Do I Get All The Invoices Of A Sales Order With A HTTP GET Request To The API?

Requirements: To obtain all the invoice information of a sales order, by using only the sales order id. Problem: Looking at the Magento 2 API Documentation, I cannot see a method that allows a HTTP ...
  • 594
1 vote
1 answer
64 views

How to add filter on item collection to get the Sales rep(total Quantity and Total no of Orders) of those Sale Managers which are logged in

$collection = $this->_itemCollectionFactory->create()->getCollection(); $collection->getSelect()->columns(array('total_orders' => new \Zend_Db_Expr('COUNT(order_id)'))) ->...
0 votes
1 answer
73 views

Having an Issue of loader on product page in magento2.4.1

I have an issue which is loader still loading in product detail page when i migrate magento 2.4.0 to magento 2.4.1 am expecting to load product detail page properly
  • 1
0 votes
0 answers
6 views

How to get the upi id for a upi payment in magento?

Hey I want to get the UPI ID used by the customer to pay a particular bill in Magento (using the observer)
0 votes
1 answer
27 views

telephone no only allow number to type in checkout page : mangoe 2

by default, Magento allows adding character User can only add numbar or integer in telephon field
0 votes
0 answers
23 views

Reindex for Multiple magento roots in a single server using Shell script

I am trying to implement a shell script for Reindex. Concern: I am having five sites in a single server. (html-abc, html-cdf, html-xyz etc., at /var/www/). I want to run the reindex for each site ...
0 votes
0 answers
50 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
50 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 ?

1
2 3 4 5
757