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
45
votes
10 answers

Magento addFieldToFilter: Two fields, match as OR, not AND

I've been stuck on this for the last few hours. I got it working by hacking a few lines in /lib/Varien/Data/Collection/Db.php, but I'd rather use the proper solution and leave my core untouched. All I need to do is get a collection and filter it by…
Gabriel H
  • 451
  • 1
  • 4
  • 3
44
votes
6 answers

Get skin path in Magento?

I have a few custom PHP functions for my Magento store that I stored in myfunc.php and I need to require it from in a few different .phtml files. How do I do that? I mean I can use an absolute path but that would be dirty and probably problematic…
datasn.io
  • 12,564
  • 28
  • 113
  • 154
43
votes
2 answers

Magento getSingleton confusion

I'm a little confused about calls I see to Mage::getSingleton, and I'm hoping someone can help me understand a little better. I have seen a piece of core code that does this: Mage::getSingleton('customer/session')->isLoggedIn() I don't know PHP,…
user265330
  • 2,533
  • 6
  • 31
  • 42
43
votes
2 answers

Magento XML using before/after to place blocks hardly ever works

I'm a front-end Magento dev, have built quite a few of my own themes and I want to understand Magento's XML block positioning better... I normally use a local.xml file to manipulate everything, I can define a block as follows:
mike-source
  • 1,004
  • 3
  • 17
  • 32
42
votes
14 answers

Magento or Prestashop, which is better?

I want to find an ecommerce solution for my little shop. My friend tells me that Prestashop is very easy to use and develop modules for, but some say Magento is better. Can anybody tell me which is better for developing modules and why?
asedra_le
  • 3,079
  • 8
  • 38
  • 56
41
votes
8 answers

Twitter Bootstrap 3 dropdown menu disappears when used with prototype.js

I have an issue when using bootstrap 3 & prototype.js together on a magento website. Basically if you click on the dropdown menu (Our Products) & then click on the background, the dropdown menu (Our Products) disappears (prototype.js adds "display:…
MWD
  • 1,632
  • 2
  • 18
  • 39
41
votes
7 answers

Magento install complains about missing InnoDB when it is available

During installation, Magento produces the following error: Database server does not support the InnoDB storage engine. I've fixed all the dependancies for Magento, and double checked with MySQL on the command line using SHOW ENGINES and definitely…
Giles Williams
  • 683
  • 1
  • 5
  • 14
40
votes
8 answers

Magento: get a static block as html in a phtml file

I have a static block called newest_product (with content) and I would like to display it on a .phtml file as html. I've tried this code: echo $this->getLayout()->createBlock('cms/block')->setBlockId('newest_product')->toHtml(); But this nothing…
iamjonesy
  • 24,732
  • 40
  • 139
  • 206
40
votes
5 answers

Fatal error: Uncaught Error: Function name must be a string in C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Model\Layout.php:555 Stack trace: #0

I am facing these errors while accessing Magento folder from XAMPP (localhost/magento): Fatal error: Uncaught Error: Function name must be a string in C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Model\Layout.php:555 Stack trace: #0 …
Sher Ali
  • 523
  • 1
  • 4
  • 10
39
votes
5 answers

UID of script "/home/...../public_html/index.php" is smaller than min_uid

I just moved magento from local to server and Im getting the following error, I was just wondering if someone could help me solve this, UID of script "/home/.../public_html/index.php" is smaller than min_uid what I did was to make a database dump…
akano1
  • 40,596
  • 19
  • 54
  • 67
39
votes
8 answers

Please enter a valid URL. Protocol is required (http://, https:// or ftp://) in Magento 1.9.2 installing?

Please enter a valid URL. Protocol is required (http://, https:// or ftp://) in Magento 1.9.2 installing? While installing Magento, I am facing error for web validation in Magento 1.9.2
DoYouLoveMe
  • 447
  • 1
  • 5
  • 10
38
votes
6 answers

Sort algorithm: Magento checkout totals sorted wrongly causing wrong shipping tax calculation

In Magento there is a functionality where you can define the order of total calculation by specifing before and after which totals a total should be run. I added a custom total and if I add the following lines to the config.xml, the sorting is…
Alex
  • 32,506
  • 16
  • 106
  • 171
38
votes
15 answers

Resource interpreted as image but transferred with MIME type text/html - Magento

I'm getting below error when uploading a new product image for my Magento shop. Resource interpreted as image but transferred with MIME type text/html Is there a reason why this is happening?
Jae Kun Choi
  • 2,011
  • 5
  • 25
  • 32
38
votes
8 answers

Adding external JavaScript file to Magento

How to add external JavaScript file to Magento, so it's code would be included on every frontend page?
Magento Kid
  • 713
  • 3
  • 9
  • 20
38
votes
4 answers

Magento: Set LIMIT on collection

The question that I tried to find out was how do we set a Limit on a Collection, the answers that I found on Google was only available for the Catalog with a setPage($pageNum, $pageSize). That didn't work on any other collections. See the answer…
Shadowbob
  • 1,402
  • 2
  • 16
  • 24