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,949
questions
0
votes
0
answers
9
views
Country/Products report in Magento 2
I'm running Magento 2.4.4, and need to get products bought by customers in specific country sorted by quantities downwards. I also want to be able to specify dates range and minimum quantity threshold ...
0
votes
0
answers
5
views
Get parent configurable products from product SKU/Id Magento API
I have a simple product's SKU/ID and I want to get all the configurable products that are linked to this product. What is the best way to do this through the API? I don't have access to the code.
I am ...
0
votes
1
answer
12
views
How to get customer address in transaction.phtml in magento2
I want to fetch customer address into the transaction.phtml but i am not getting how to do this . I am trying below but not getting success
Below is the file path where my transaction.phtml file wiil ...
0
votes
0
answers
7
views
Put dynamic after_save event on my own table for any new record Magento 2
We have created a module in Magento 2 which has defined some it's own tables in database and it is related to customer wallet .
Now what I want is => I want to for each record that inserts in that ...
0
votes
0
answers
25
views
Magento 2 - Theme Type Automatically change, 0:physical, to 1:virtual
Sometimes on staging and production autmatically theme value changed,as table theme with field name 'type' changed 0 to 1.
Expected result
type field to stay at 0 (TYPE_PHYSICAL)
Actual result
type ...
0
votes
0
answers
17
views
Bangla font didn't work in invoice pdf Magento 2
When I print invoice pdf, Bangla font didn't work properly. Is there any solution of these issue.
Example image link : https://drive.google.com/file/d/16-sc70MIizN-PZwnO9jMGXS9Ip4zDuCx/view?usp=...
-3
votes
0
answers
21
views
Any Wordpress plugin for full product page customization
I am creating an eCommerce website using WordPress / WooCommerce plugin. I have a requirement to build a product page with the below customization.
Product Page
Header
Product Image
Cost $XXX [...
0
votes
1
answer
6
views
Magento Admin creating two cookies and unable to login when one cookie present
I have a strange issue where I can't login to the Magento 1.8 admin panel.
It is completely looping back to the login box.
It appears to be an issue with cookies. I have changed the session (in local....
0
votes
1
answer
10
views
Magento Attribute-Codes with Uppercase Letters need to work
Hello Guys,
is there any possibility to make the Magento 2 Import-Module uppercase insensitive?
I have attribute-codes like "ColorName" or "BaseColor" and I need them to be working....
0
votes
0
answers
7
views
"magento/module-new-relic-reporting" not installed after upgrade
So, I did a lot of research and tried a lot of ideas to solve this but without luck. That's why I'm asking.
I'm trying to upgrade magento from 2.3.3 to 2.4.4 . I stacked on a problem that "...
0
votes
0
answers
16
views
Magento 2.4.4 add to cart button on product page not working
In Magento 2.4.4 application on the product page even after selecting product size, color and quantity the add to cart button is not getting enabled. There are no script errors in the browser console. ...
0
votes
1
answer
12
views
Magento 2 event to extend payment methods functionality
I need help. I am creating a custom payment method for Magento 2. In the plugin, user needs to enter the keys. While saving the config, I want to check if the keys entered by the user are correct or ...
0
votes
1
answer
21
views
Setting noindex nofollow in a category page of Magento site
With the observer class below, I'm trying to set noindex and nofollow on a category page. I'm unable to get the code to first check if it is a category page and then set noindex if the title of the ...
0
votes
1
answer
12
views
Magento 2.4.2: The following modules are outdated: Perfectmakeupmirrors_PmmHead schema: current version - none, required version - 0.0.1
I just created a custom module to add a metatag in the head of a category page of our Magento site by making use of event and observer. When reloading the category page, below is the error I see. I re-...
0
votes
1
answer
10
views
Shipment Information not Showing in Magento 2.4.2 p-2
I created shipment against particular Order. but, cannot showing under shipment list. My Magento Version 2.4.2 p-2.
0
votes
1
answer
12
views
prevent magento from importing images that already exist in var/import/images folder
I am using admin csv import feature
In my csv file I have base, small and thumbnail image columns
When I do an import, all image come in fine and can be seen as expected
However, when I do a ...
0
votes
2
answers
20
views
Magento2.4: How to get Salable quantity in list.phtml file?
How can I get salable quantity on list.phtml or category page file, I want to show labels on products with 0 salable quantity.
Are there any other approaches without using object manager?
0
votes
1
answer
21
views
Magento 2 + Elasticsearch + We can't find products matching the selection
I installed a testshop with Magento 2 and made a clone of this testshop.
Everytime when I configurate Magento 2 that it should use Elasticsearch I get this error: "we can't find products matching ...
0
votes
1
answer
19
views
I need to replace white space and special characters from within magento2 var/import/images folder
I have hundreds of images imported into var/import/images folder that have special characters and white spaces in them I need the special characters removed and white spaces replaced with a dash.
I ...
0
votes
0
answers
17
views
Magento 2 - how to change sorting by ID to sorting by name in custom grid column which has values as names from another collection
I have a custom grid which has parent_company_id stored in its table, and in the grid list I have displayed parent_company_name by using join the current table with company table using the ID.
When I ...
0
votes
0
answers
10
views
Magento 2.4 pub folder in .htaccess
I installed magento 2.4 on a testserver where i can not change the root folder to pub. I changed the .htaccess in the root to:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/pub/
RewriteCond %{...
-2
votes
0
answers
21
views
I was trying to login into magento admin panel I got the fatal error how to solve this
i got this-
I want to login into magento but got the fatal error. Is there any way to get out of it .I have tried several methods but can't get out of it.
Fatal error: Uncaught Exception: Invalid ...
0
votes
0
answers
39
views
Unable to Login to Magento 2.4 Admin Page in localhost
As the title states, I am unable to log in to the default admin user in Magento 2.4 after installation using composer.
I have tried changing the password through PHPMyAdmin using the following command:...
1
vote
0
answers
7
views
Magento new created user can't add products - loads forever
In Magento 2.4.3 I created a new user role Content Creator (Where it has access only to Catalog - add/edit products), assigned it to a user.
When adding a product as a Content Creator user and saving ...
0
votes
1
answer
19
views
The requested package amzn/amazon-pay-sdk-php 3.5.0 is satisfiable by amzn/amazon-pay-sdk-php[3.5.0] but these conflicirements or minimum-stability
I am trying to install Magento 2.3.3 with PHP 7.1.but when I try to install the composer, i get the error The requested package amzn/amazon-pay-sdk-php 3.5.0 is satisfiable by amzn/amazon-pay-sdk-...
0
votes
0
answers
13
views
When I scan my magento website it Detected encoded JavaScript code commonly used to hide suspicious behaviour
When I scan my magento website (using tool: https://scanner.pcrisk.com/) it Detected encoded JavaScript code commonly used to hide suspicious behaviour.
Severity: Suspicious
Reason: Detected ...
0
votes
0
answers
17
views
How to fix this problem Ce site est inaccessibleharry.magento.com in magento 2?
enter image description here
Ce site est inaccessibleharry.magento.com n'autorise pas la connexion.
Voici quelques conseils :
Vérifier la connexion
Vérifier le proxy et le pare-feu
...
0
votes
0
answers
17
views
error install magento command line. error mising following extension sodium
im install by command line but this error show
im remove ; in extension sodium in php.ini and i did different ways
but this error show again
im using xammp in windows
please help
thanks
enter image ...
2
votes
0
answers
21
views
Replacement for GuzzleHttp\UriTemplateFactory?
I have a plugin (for Magento 2.4.4), it is using the following class "GuzzleHttp\UriTemplateFactory" but "UriTemplateFactory" is deprecated and removed from Guzzle. Looking for a ...
0
votes
0
answers
21
views
Magento 2 Indexing
We have one Magento 2 project where we configured cron every min. Ideally the site has no change but still all cron jobs running too frequently.
Questions :
How Magento consider to re-run a index ...
0
votes
0
answers
15
views
Magento when enabling log through command line getting error
In my Magento application when I try to enable logging in command line using below code
# bin/magento setup:config:set –enable-debug-logging=true
I am getting the error
PHP Fatal error: Declaration ...
0
votes
1
answer
16
views
trying to install magento 2.3 on mamp pro and getting session has expired
I am trying to install magento version 2.3.5 p1 on mamp pro server on mac os 10.15.7 Catalina. I have a following base url for it:
http://magmono:8888/
I somehow managed to install it but getting ...
0
votes
1
answer
25
views
How to disable shipping address validation on Magento Checkout page via a Vertex validator
Magento 2.4 PHP 7.4
It appears that the shipping address is being validated on toggle of shipping method as can be seen in the screenshot below. As I consoled out the event that is triggered on ...
0
votes
0
answers
11
views
Static signed url contains "default" instead of language "en_US"
I've enabled signed content in my Magento 2.4 configuration
I have the following @font-faces in my sass file:
@font-face {
font-family: 'Avenir LT Std';
src: url('../../fonts/AvenirLTStd-Roman.woff2') ...
0
votes
0
answers
18
views
How we upload the csv file via custom module
I need to create a custom module, which displays the custom menu in the admin backend and once click that menu, it will show the form of file input(accept csv file) and after clicking submit button, I ...
0
votes
3
answers
56
views
Why is the site navigation collapsing so fast?
When you look at the menu of this website:
https://www.eurotuin.be/
And when you try to hover it, it collapses really fast.
see the menu here
I've tried experimenting with the following code, but it ...
0
votes
1
answer
64
views
Could not validate a connection to Elasticsearch. Unknown 401 error from Elasticsearch null
{
"name" : "DESKTOP-BNTBBBG",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "DlRfjfPlRg69wUBRfy3kKQ",
"version" : {
...
1
vote
0
answers
18
views
Magento 1.9 add to cart slow when cached
We have been experiencing an odd issue on some of our sites since moving from Magento 1.7 to 1.9. When a sites cache hasn't been cleared for a while add to cart is extremely slow. This also affect the ...
0
votes
0
answers
10
views
How can I add pagination to a Magento 2 blog's meta titles?
I have a blog built on the Magento 2 CMS and while pagination does exist, all of the sub-pages share the same meta title ("Blog - Vaper Empire® Australia"). For example, the blog index and ...
0
votes
0
answers
12
views
Unable to set keys for braintree payment method in magento local admin
Magento 2.4, PHP 7.4
Please may I know if anyone has faced an issue wherein the input fields to enter keys for Braintree payment method in magento local admin are not available. I guess the fields ...
0
votes
0
answers
11
views
Magento Reorder and Resize Price Excl Incl Tax Labels
does anyone know how to reorder the excluding and including tax labels on magento 2?
Example of how i want to reoder them in the image below:
EXAMPLE IMAGE
Also my incl tax price size is slightly ...
0
votes
0
answers
5
views
I am editing a cms block , I want to add another submenu but everytime I paste the copied information, it messes up format
I am trying to add another sub menu that shows content on the right when you hover. I copied lines from the existing codes and replaced with the information I need, but messes up format
0
votes
0
answers
15
views
Convert Magento Configurable product to Custom Laravel Configurable product using Ajax
Currently I am trying to convert Magento Configurable product to Custom Laravel configurable product.
In step one I am displaying all the attributes from backend
Step 1: Select Attributes
(Here I have ...
0
votes
1
answer
23
views
Get data from RichSnippet JSON and set the same string into other variable
I have this JSON generated from external (Reviews-io) script:
https://widget.reviews.co.uk/rich-snippet/dist.js
richSnippet({
store: "www.storedigital.local",
sku:"...
0
votes
0
answers
12
views
magento create order after successful payment from stripe gateway
Can anyone help me that how magento admin create order after making successful payment from stripe gateway. i am using magento 2.4 with stripe module 2.9.3
Thanks
0
votes
1
answer
42
views
Return value of Magento\ComposerRootUpdatePlugin\Updater\RootPackageRetriever::getOriginalEdition() must be of the type string, null returned
We are upgrading magento2.4.3 to 2.4.4 using
composer require-commerce magento/product-community-edition:2.4.4
also tried with --no-update
unfortunately, we are facing an issue with the error
Return ...
0
votes
2
answers
46
views
Server-sent events in PHP (without echo or print)
We have built a prototype application in PHP and JS using Server-Sent Events (single AJAX requests, multiple streamed events sent by event handlers in PHP). Essentially the PHP at some point is using ...
0
votes
1
answer
390
views
When I upgrading Magento 2.4.4 I am getting Deprecated Functionality: Return type of Composer\Repository\CompositeRepository::count()
When I upgraded Magento 2.4.3 to 2.4.4, I got a php8.1 deprecated functionality error.
PHP Fatal error: During inheritance of Countable: Uncaught Exception: Deprecated Functionality: Return type of ...
0
votes
0
answers
14
views
Magento 2.4.2 Multistore - NZ Store Not Showing Any Shipping Method
Magento Version: 2.4.2-p2
Module: Shipping Method
In Magento Project Contains More then 10 Stores, The New Zealand Store one of them.
Issue:
Megento All Stores Showing Shipping Method Except NZ Store, ...
0
votes
0
answers
24
views
How to change / edit the default maintenance mode (503) page in Magento 2
Please read my question before marking this as a duplicate.
I am trying to create a custom maintenance mode page in magento 2. The default maintenance page that is supposed to show in the browser is ...