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
20
votes
6 answers

Magento: ?___SID=U appearing in some urls

Can someone please explain why ?___SID=U is appearing in some Magento URLs on my site and not others? I think it has something to do with sessions but I am not entirely clear. Also, what makes it more confusing is the fact that it's only appearing…
user1497033
19
votes
7 answers

Changing the price in quote while adding product to cart: magento

I want to change the product price while add that product to cart. How its possible let me know...
Sankar Subburaj
  • 4,992
  • 12
  • 48
  • 79
19
votes
2 answers

Magento programmatically add product image

I have to create a simple Magento 1.6.x import agent that suppose to create/update products and their images. Could someone advise me how to add product image without having to use the magento API? The api performance turned out to be very poor and…
Bery
  • 1,094
  • 1
  • 10
  • 23
19
votes
4 answers

What does "invalidated" cache mean in Magento?

In the Magento admin under Cache Management, what does it mean when it shows a cache as invalidated? How does Magento know a cache is invalidated? In particular, I'm wondering about HTML Block cache. What conditions would cause this cache to show…
localfilmmaker
  • 416
  • 1
  • 4
  • 9
19
votes
3 answers

Programmatically change product attribute at store view level

I'm sorry if this question is trivial but I've been struggling to find what I am doing wrong here. I am trying to change the value of an attribute on a store view level but the default is also changed whereas it shouldn't be. Of course, this…
Hervé Guétin
  • 4,392
  • 4
  • 29
  • 36
19
votes
6 answers

Magento get language code in template file

I need a helper function to get the current language code. I want to use it in a templete file, like /products/view.phtml, only for testing purposes. Does it already exist? I have something in mind like the URL-helper $url =…
chmoelders
  • 18,584
  • 6
  • 22
  • 24
19
votes
8 answers

Programmatically add Magento products to categories

I am using Magento 1.4.0.1. I have over 21000 simple products, each entered into a single category. There are hundreds of categories in my site. Some products belong in multiple categories. Is there some way for me to programmatically add products…
robgt
  • 767
  • 3
  • 14
  • 31
19
votes
4 answers

Can I add other attributes to magento's flat product catalog table?

I am in the process of optimizing magento store, and I've run across a couple of posts that recommend using the Flat Product Catalog for stores with a large amount of SKUs. As I have over 10K products I thought I'd give it a try. However, when using…
ben
  • 1,946
  • 2
  • 18
  • 26
19
votes
6 answers

Magento: how do I access custom variables in PHP?

I am aware of 'Custom Variables' and how they can be used with {{ }} brackets in email templates as well as in static blocks. However, I want to use them in template code i.e. view.phtml. I want to be able to access 'variable plain value' to…
ʍǝɥʇɐɯ
  • 4,012
  • 7
  • 32
  • 53
19
votes
2 answers

Magento staging and production

I have been developing with magento for a while now and things are starting to make sense and become much more deliberate and organised. One aspect though still seems quite messy - moving a site from development to production. Can anyone offer some…
David
  • 191
  • 1
  • 3
19
votes
5 answers

how to change theme in Magento2

UPDATE: this could be a version issue, should I update to the non-stable 2.0.4? I know this should seem obvious to someone, but clearly it's not. as state in the documentation In Admin, go to Stores > Configuration > Design. but there is only a…
aahhaa
  • 2,240
  • 3
  • 19
  • 30
19
votes
3 answers

How to prevent Magento to overwrite attribute values from another Website / Store while updating products programmatically

I have implemented custom Magento module that loops trough data from external service and updates price, weight, name and some other product attributes in Magento multi-language, multi-store website. My solution is pretty straight forward (inside my…
KoviNET
  • 717
  • 1
  • 7
  • 23
19
votes
4 answers

Magento resource model for table with compound primary key

I am creating a custom module for a Magento ecommerce site, and the module will center around a new (ie, custom) table that has a compound/composite primary key, or rather the table has two columns that make up the primary key. Does anybody know…
shaune
  • 2,510
  • 1
  • 31
  • 36
19
votes
8 answers

Magento - Sort by Date Added

How can I make Magento sort products in the catalog by the date they were added? This isn't an option in the admin so guessing it needs to be done in the code somewhere. Thanks.
a1anm
  • 1,617
  • 11
  • 45
  • 78
19
votes
5 answers

Magento & Subversion (SVN) - Getting a Development Environment Started?

I'm working on building a Magento site, and it's by far the most mammoth package I've ever worked with. I've decided to set up a proper development server and use Subversion for version control. I'm running in to a couple roadblocks and need some…
PlasmaFlux
  • 333
  • 1
  • 4
  • 15