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
31
votes
3 answers

What is a magento quote?

I can't understand what is a quote. Can someone give a detailed answer on what are magento quotes, what data they store, what's their lifetime and other relevant information? Edit: Please notice the difference: Magento vs Magneto. Also the "magento"…
s3v3n
  • 8,203
  • 5
  • 42
  • 56
31
votes
5 answers

How do I get attribute set name?

I am trying to get attribute set name in Magento product view template. I can get attribute value by $_product->getAttributeText('attribute'), but how do I get attribute set name? I would like to display an attribute only if it is belong to a…
Moon
  • 22,195
  • 68
  • 188
  • 269
30
votes
4 answers

Where are all the Magento email templates located?

Magento seems to have lots of email templates to send a variety of different messages based on user activities: registration, password recovery, order, shipment, etc. Where can I find all the email templates so I can customize them ALL and never…
datasn.io
  • 12,564
  • 28
  • 113
  • 154
30
votes
8 answers

My Magento Extension Install Script Will Not Run

I am trying to create an install script for my extension and for some reason it will not the install script. The extension will show up in the core_resource table, but the attributes I am trying to create will not create. I am pretty sure that the…
Josh Pennington
  • 6,418
  • 13
  • 60
  • 93
30
votes
3 answers

Should I use EAV model?

I'm am designing my database/domain for an eCommerce application and I'm having a hard time figuring out how to store products. The website will sell a wide range of products, pens, thongs, tattoos, umbrellas, everything. Each of these product will…
Cobby
  • 5,273
  • 4
  • 28
  • 41
30
votes
11 answers

Magento - How to add/remove links on my account navigation?

I am trying to remove links on my account navigation. I looked at the customer/account/navigation.phtml template. The template grabs links by $this->getLinks(). How do I edit getLinks() method so that I can remove some of links?
Moon
  • 22,195
  • 68
  • 188
  • 269
30
votes
6 answers

Add double quotes around fields in AWK script output?

I have written an awk script that converts a distributor flatfile into a CSV importable into Magento. This file is semi-colon delimited. It is not putting quotes around each field like the importer requires. It works fairly well, but is causing some…
John Steensen
  • 357
  • 1
  • 4
  • 9
30
votes
8 answers

How to remove index.php from URLs?

All of my URLs on my Magento installation require index.php in them, like: http://example.com/index.php/admin/ http://example.com/index.php/customer/account/login/ The problem is that the system by default links to URLs…
delwin
  • 830
  • 2
  • 10
  • 15
29
votes
1 answer

Why is the Relation Between a Configurable Product and a Simple Product Stored Twice?

Deep dive on the Magento internals here, not looking for a solution to a concrete problem, just trying to understand some implementation details. When you create a Configurable Product in Magento, and then create child Simple Products to implement…
Alana Storm
  • 164,128
  • 91
  • 395
  • 599
29
votes
6 answers

How Do You Get The Store Secure URL in Magento?

I have a form in Magento that is displayed over the insecure URL (http) but I need it to submit to the secure URL (https). I display the URL I currently use the following code: Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) I am assuming I…
Josh Pennington
  • 6,418
  • 13
  • 60
  • 93
29
votes
4 answers

Magento 2 - How to call a custom phtml file in another phtml file, xml layout, static block and cms page?

I am creating a magento 2 theme. I just want to know how can I add .phtml file in xml layout, static block, cms page or in another .phtml file. Thank You.
Milan Chandro
  • 2,342
  • 1
  • 18
  • 25
29
votes
3 answers

Magento 1.9 wrong currency symbol in order confirmation email cart - when paying with PayPal - formatPrice()

I have Magento 1.9.0.1 running with GBP (£) as the base and default display currency, and Euros (€) as an allowed currency. If the user chooses to checkout in Euros, the site all works except, if they pay by PayPal in their own currency, then the…
Jamie G
  • 1,653
  • 3
  • 20
  • 43
29
votes
3 answers

Get Current URL in Magento and show something

I'm trying to get the current URL in Magento and show something if I'm currently on that page. So far, this is what I did and it worked. helper('core/url')->getCurrentUrl(); ?>
jehzlau
  • 627
  • 2
  • 9
  • 20
29
votes
1 answer

Auth.net Issue on capture

My function to capture the transaction on auth.net is public function capture(Varien_Object $payment, $amount){ if(!$this->isEnabled()){ return parent::capture($payment, $amount); }else{ $captureCase =…
Zaffar Saffee
  • 6,167
  • 5
  • 39
  • 77
28
votes
4 answers

Why does Magento have _construct and __construct methods?

Is there a reason why Magento has a _construct and a __construct method? Why does the additional _construct exist? Could anything achieved by having the extra _construct method not be achieved by just calling the parent constructor in the child…
Nick
  • 6,967
  • 2
  • 34
  • 56