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.

Questions not related to programming are off-topic on Stack Overflow. General Magento questions may be asked on Magento.SE, a site dedicated to Magento questions

Magento is an e-commerce platform written in atop the , available under both open-source and commercial licenses. It is written in an advanced object-oriented idiom that uses the pattern and configuration files, aiming for flexibility and extensibility. It is owned and maintained by Adobe.

Magento is aimed at merchants who need an online presence, but who find that a completely bespoke storefront does not suit their needs, budget, or scale. Magento's features include baked-in support of multiple languages and currencies, search engine optimization techniques, and automated email marketing. Basic Magento configuration and administration can be performed by end-users with minimal technical background, and the third-party ecosystem around Magento offers extensive customization of appearance and functionality for storefronts. Magento offers a developer certification program to help store owners find partners in the Magento ecosystem, and to help developers consolidate their grasp of Magento internals.

A central feature of Magento is the templating and extension system, based on OOP inheritance and composition principles and largely configured by XML files, it provides a plugin API, it allows developers to modify almost any feature of Magento by working with the abstraction layers provided by the framework. Several subsystems (Layout and DataFlow) employ meta-programming facilities via XML, and the MVC pattern is supported by factory methods for instantiation of helper classes (Models, Helpers, and Blocks).

Magento is a heavily abstracted software system. Most of Magento's code, and nearly all third-party code, is organized into modules, and the functionality of modules is programmatically exposed. Modules can be enabled or disabled individually, easing integration into existing stores. Magento's persistent storage is usually MySQL, and its data about a store's products are based on the Entity-Attribute-Value model.

Editions

There are two distinct platforms: Magento Open Source and Magento Commerce.

1. Magento Open Source (previously Magento Community Edition) - Free open source code; pay for services and add-ons. Developers and merchants with generally under $50M in online sales and fewer than 50,000 unique visitors per month. Magento offers no technical support, warranties or indemnification.

2. Magento Commerce - available in an On-Premises version or as a platform as a service.

  1. Magento Commerce (On-Premises) (previously Magento Enterprise Edition) – This is also a Commercial edition. Annual fees start at $15,550 with a premium version starting at $49,990 annually. It is recommended for mid to large size businesses with revenue in excess of $15M in online sales and over 25,000 unique visitors per month. Magento provides full support, warranty and indemnification. It also has the added benefit of having code-level access.

  2. Adobe Commerce Cloud (platform as a service)

There were also two former platforms, Magento Professional Edition and Magento Go.

Links

Great questions

Most common problems for the Magento beginner

More information


Related tags

Magento 2:

Magento 1:


37819 questions
62
votes
5 answers

What is the difference between isSaleable() and isAvailable()?

I'm working on the display of the stock availability on the (individual) product page of my Magento theme, and there's something I don't completely understand about this. I see two methods being used in the templates to check whether a product is…
pancake
  • 1,923
  • 2
  • 21
  • 42
62
votes
5 answers

Enable GZIP for CSS and JS files on NGINX server for Magento

I need to enable gzip compression on nginx server. As I have observed from firfox firebug NET tools, I have found that html file are gzip compressed. But Not the javascript files and CSS files. I have already check Mime.types and nginx…
Anant
  • 3,047
  • 2
  • 27
  • 33
61
votes
3 answers

"Error 404 Not Found" in Magento Admin Login Page

I just transfered my magento installation from one local machine server to another. Now, I cannot login to admin panel. When I go to the admin login url, I get the following error message:- "Error: 404 Not Found" Some of my module's pages also show…
Mukesh Chapagain
  • 25,063
  • 15
  • 119
  • 120
60
votes
4 answers

How to get data from Magento System Configuration

I just wandering on how I can get the configuration data for my custom module. The configuration can be set from the admin system->configuration and how to pull it in frontend?
Jorge
  • 5,610
  • 18
  • 47
  • 67
59
votes
6 answers

Programmatically add product to cart with price change

I want to add a product to cart programmatically. Also, I want to change the product price when added to cart. Suppose, my product's price is $100. I wanted to change it to $90 when added to cart. I added product to cart. However, I am unable to…
Mukesh Chapagain
  • 25,063
  • 15
  • 119
  • 120
57
votes
10 answers

Current user in Magento?

I'm customizing the product view page and I need to show the user's name. How do I access the account information of the current user (if he's logged in) to get Name etc. ?
Eran Kampf
  • 8,928
  • 8
  • 49
  • 47
57
votes
4 answers

Where are Magento's log files located?

I am new to Magento. I can't find log files in Magento. I googled it, but the Magento Commerce site returns closed and some other sites explain how to create custom log files. I want to know the location of built-in log files.
IamGhale
  • 1,275
  • 2
  • 14
  • 26
55
votes
3 answers

ALTER TABLE in Magento setup script without using SQL

Jonathon Day says "updates SHOULD NOT be in the form of SQL commands". I haven't come across any DDL or DML statments that cannot be executed via Magento's config structures. (In the question How can I migrate configuration changes from…
clockworkgeek
  • 37,650
  • 9
  • 89
  • 127
50
votes
1 answer

Why would Magento fail to save a customer after generating an ID?

I'm attempting to track down the cause of a rare bug (love those intermittent bugs) where a customer selects to Register at time of checkout, but when the order is completed, Magento somehow fails to save the customer record. This results in an…
Jonathan Day
  • 18,519
  • 10
  • 84
  • 137
49
votes
4 answers

How do I save value in my own session variable in Magento?

I am using Magento and trying to save a value in the session as follows in its index.php file, but the value is not being retained. $_SESSION['myvar'] = '1'; How do I do it? Thanks
Ali
  • 511
  • 1
  • 5
  • 5
48
votes
18 answers

Magento How to debug blank white screen

I have an error in my Magento backend that results in a blank screen (WSOD). I have set errors to on in admin but there is nothing being created in var/logs/. (I have checked permissions for that directory and all is correct). I have also…
sulman
  • 2,431
  • 7
  • 40
  • 62
47
votes
12 answers

How to get a product's image in Magento?

I'm running on version 1.3.2.1, but on my client's server they had Magento 1.3.0 so my previous code to display images for my local copy, echo $this->helper('catalog/image')->init($_product)->resize(163, 100); , does not work on the client's…
lock
  • 6,404
  • 18
  • 58
  • 76
46
votes
7 answers

Format price in the current locale and currency

I use : $product->getPrice(); to get the unformatted price that I can calculate "quantity X price" with ajax. I want to reformat the total in the current locale and currency. How can I do that?
Bizboss
  • 7,792
  • 27
  • 109
  • 174
46
votes
6 answers

Magento - Passing data between a controller and a block

Really quick and simple question but I can't find a decent answer to this - What is the best way to pass data from a controller to a block in Magento. Incase it makes a difference, I am loading the layout as follows: …
Drew Hunter
  • 10,136
  • 2
  • 40
  • 49
46
votes
9 answers

How to get Fedex testing tracking number?

I'm configuring FEDEX shipping in Magento website. I got test account number, password, API key and meter number by login in test FEDEX account. I configured myself in Magento. Looks like everything fine. But I don't know how to test is Track…
Gowri
  • 16,587
  • 26
  • 100
  • 160