Everybody's Changing

and I don't feel the same.

Tag: Magento

Magento Customization

Basic Magento Directory Overview (by Moshe from Magento Wiki)

Important Paths
  / -Directory Root
      /app     – This is where all the php code for the application resides
      /lib     – The external code library.
      /skin    – This is where css and other images reside

Thats the quick overview.
      /code       – Where all modules reside
      /design     – Contains both layout xml files and template .phtml files
      /etc        – Global configuration
      Mage.php    – Static class Mage, where everything is held together.

Before I move on to the other two directories (/lib, /skin) I’ll explain the directories in this (/app) dir.
          /community     – Downloaded modules built by Magento community members
          /core          – The core modules ‘out of the box’ build by Magento
          /local         – Any module we build ourselves

Within these three subdirectories we find the /Mage directory. This is where all the modules should reside. Also, upon startup Magento includes the paths /app/code/core/ and /app/code/local. So, by default the system has access to those directories. Now here is the trick: If we create a module ‘RandomModule’ and within that model we create a ‘/model’ directory, we must follow a convention for every class we put inside that folder. For instance a class would be named the following:
class Mage_RandomModule_Model_SomeClass extends Varien_Object { }

With this convention we can call this class anywhere from within the application. Magento will take the name, replace underscores with forward slashes, include that file, then load the requested class, and return an instance of that class. Pretty cool.

As for the individual modules, you will see a directory pattern that all follow, it is pretty simple there. I have noticed that Magento likes to separate their model. For instance, there will be a directory that will ONLY contain classes/methods that query the db and return results. They follow that pretty strictly, I never see methods access db from within a model that is not dedicated to db access. They do that in their practice, we are not forced to do so, but I have tried it, it makes a lot of sense to me.

Thats pretty much it for the /app/code directory for now
          /adminhtml   -Admin designs
          /frontend    – Front End designs
              /default   -This is the default Interface, we can create other interfaces
                  /default – This is the default theme, we can also create multiple themes
                      /layout       – Contains all the layout xml files
                      /template     – Contains all the template .phtml files

Here, we can create multiple interfaces and themes within each interface. From the admin page in a browser, we assign a theme to each website or store. The power here is that we can create multiple themes, such as spring, christmas, or whatever, then they can be enabled and disabled by a simple click from the admin panel.
This interface/theme pattern is used again in our /skin directory from the root. This assures that when the administrator switches an interface or theme, the appropriate css sheets will be applied.
Also, very cool to me.

Lastly, lets overview the /skin directory from the root directory.
          /adminhtml   – Admin styles directory
          /frontend    – frontend styles directory
                  /default    – Our default interface
                      /default    – Our default theme

Notice the correlation of the /skin directory to the /app/design directory.
To create a new interface or theme, we MUST make a new interface or theme in both of these directories or there will be mayhem!

Thats the basic directory structure overview.

– Store logo
– Header
– Top menu
– Catalog pages
– Product detail

– Removing the Compare function in Magento, the easy way

– Category layout to 2-column

– Remove “Recently Viewed” box

– Disable sidebar cart, tags and newsletter

– Edit orders with Configurable Products

– Misc

Magento Google Base Integration

magento 사이트 두개 끝내고…

지난 3주간 사이트 두개 customizing 한다고 고생도 하고 시간도 많이 썼는데…
살짝 쉬고 다가오는 mid exam 준비하려고 했는데 메일이 왔네.

work to do
This is what we need to do first.
Lets do this as fast as you can.

또 magento 네…
다행이 이건 frontend 가 아니고 backend 라서 좋긴 한데 ㅋㅋ
이러다 magento specialist 되겠음 ㅡ.ㅡ

오늘은 학교 도서관 가기로 마음을 먹었으니,
일단 학교나 가야지 =3

Powered by WordPress & Theme by Anders Norén