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

.htaccess. deny root, allow specific subfolder. Possible?

How can I deny access to http://sub.mydomain.com/, but allow for (completely) http://sub.mydomain.com/test (or http://sub.mydomain.com/test/) There is a magento back-end behind http://sub.mydomain.com/test/
V-Light
  • 3,065
  • 3
  • 25
  • 31
23
votes
7 answers

How to get particular page URL in magento

I would like to get a page's URL key in Magento. For example, I have a CMS page called "What's New" with the identifier (or URL key) "whats_new". Its correct URL is therefore http://mysite.com/whats_new Currently I use this code to echo its…
Gowri
  • 16,587
  • 26
  • 100
  • 160
23
votes
5 answers

How to get parent product id in magento?

I know that in Magento 1.4.2.0 one gets parent id's like so list( $parentId ) = Mage::getModel('catalog/product_type_configurable') ->getParentIdsByChild( $product->getId() ); My question is: if I don't know what the…
veilig
  • 5,085
  • 10
  • 48
  • 86
23
votes
3 answers

How to use POSTMAN rest client with magento REST api with Oauth. How to get Token and Token Secret?

I am a beginner to magento REST API, how i will get token and token secret to be fill in Postman REST resquest. I have only consumer key and consumer secret. Please provide me the steps to follow.
Deepak Kumar
  • 357
  • 1
  • 2
  • 8
23
votes
8 answers

Get product id and product type in magento?

I am creating magento store. I am beginner in magento. I want to get product id and product input type in my phtml file is this possible? please guide me.. I am trying to this way to get product type. but its not working for…
Padmanathan J
  • 4,614
  • 5
  • 37
  • 75
23
votes
4 answers

List of tables to safely truncate in Magento?

Is there a list of tables that can be safely truncated in Magento? By safely, I mean to preserve products. I've got a few but want to know if there are more: core_url_rewrite # Only safe if no custom rewrites are in…
user1529891
22
votes
5 answers

How can I tell if a Magento request is for a frontend or backend page?

How can I tell if the current request is for a backend or frontend page? This check will be done inside an observer, so I do have access to the request object if that helps. I considered checking Mage::getSingleton('admin/session')->getUser(), but I…
Colin O'Dell
  • 8,386
  • 8
  • 38
  • 75
22
votes
1 answer

Using Basic AJAX calls within Magento

I'm writing a module to carry out a simple Ajax call in Magento, but I'm unable to get it work thus far - I feel like I'm missing a vital component somewhere. These are the files I currently…
Adam Moss
  • 5,582
  • 13
  • 46
  • 64
22
votes
4 answers

Select only specific fields in Magento

I'm trying to use the MAX function of MySQL to retrieve the latest dates from my table. $_updates = Mage::getModel('ticket/updates')->getCollection(); $_updates->getSelect()->columns('MAX(created) as…
Jjj
  • 762
  • 3
  • 8
  • 18
22
votes
5 answers

Magento: Filter products by Status

I'm having some serious Magento issues here. As expected the following: $products = Mage::getModel('catalog/category')->load($category_id) ->getProductCollection() ->addAttributeToSelect('*') ->addAttributeToFilter('status', array('eq' => 1)); Will…
Tristar Web Design
  • 765
  • 1
  • 5
  • 11
22
votes
4 answers

What's the difference between a Magento Website, a Store and a Store View?

I couldn't find a clear answer on this: What's the difference between a Magento Website and a Store View?
Yeroon
  • 3,223
  • 2
  • 22
  • 29
22
votes
14 answers

Magento programmatically remove product images

This must be a such a simple programming task that I absolutely cannot find any information about it on the net. Basically, I'm trying to DELETE product images. I want to delete all images from a product's media gallery. Can I do this without…
user439441
22
votes
3 answers

Change order of blocks via local.xml file

Is it possible to change the order of already existing blocks via the local.xml file? I know you can change the order of a block with the after or before attribute, but how can one change those attributes of existing blocks. For example, if I want…
Pieter Hoste
  • 587
  • 2
  • 8
  • 22
22
votes
9 answers

Enable template path hint in admin pages - Magento

I want to enable template path hints in admin panel. I know how to do it for the front end, but for back end?? I actually want to edit the admin panel . Thanks in advance..
Damodaran
  • 10,882
  • 10
  • 60
  • 81
22
votes
14 answers

Magento 2 goes terribly slow (Developer mode)

Recently I started developing magento 2 projects. First I tried on Windows with xampp and it was a mess... every refresh page was a nightmare, about 30-40sec to load the page. I read about it, that Windows system files is so slow working with…
Marc Pont
  • 988
  • 2
  • 14
  • 34