Bysoft China's Blog > Your Resource To Keep Up With the Web!

Share Our Knowledge, Share Our Passion
  • rss
  • Home
  • About Us
  • SERVICES
  • WORKS
  • START ECOMMERCE WEBSITE
  • START CMS WEBSITE
  • CONTACT US

A good start about implementing your own product type

Florence SONG | July 23, 2010

Magento support different product types by default. But sometimes, in order to meet customer’s requirements, you may ask yourself “Do I have to create a new dedicated product type to handle this?”
It is of course possible to define new product types in order to customize the logic of your product. For example, different price rules or cart logic, product view detail page, etc…
Here are some clues, to make sure you won’t forget any important step.

1. what are the critical steps to not forget:
a. First, define the differences between the new product’s type compare to simple product’s type (in order to not code something that Magento already handles, we are not here to re-invent the wheel!)
b. Define the new type (app/code/local///etc/config.xml)
c. Custom product model inherited from abstract product model
d. Custom price model inherited from abstract product price model

2. Problems you might meet:
a. Don’t forget to define the model of catalog data index, else the products that come from this new type won’t be indexed (searchable)
b. Sometimes you may have to modify the mage_catalog module comparing the product type code (some logic can’t be defined at the module level).

3. Is Magento really “module oriented” to implement such a modification:
a. You must always put all the code into one module because the modifications might affect the standard product types (be carefull while rewriting mage_catalog..) (Rewrite the blocks and model of mage_catalog module in the custom module).

Finally, here are some important tips:
a. Make sure the customer really needs a new product type. Usually they want to keep the standard catalog functionalities on front and backend, and still wants some specific behavior. If the specific part can not be handled with attributes system (or slight modifications..), then developing your own product type may be the solution.

b. Create new product type is not that complex. But you will have to customize a lot of logic in new product’s model according to the differences between the different product types.

c. There is not that much documentation about product type on Magento wiki. Having a deep look at the bundle module (Magento core module) is a really good start to understand what you ll have to face. Also, have a look at the really usefull example on Inchoo blog: http://inchoo.net/ecommerce/magento/how-to-create-a-new-product-type-in-magento/.

Comments
6 Comments »
Categories
Ecommerce, Internet, Magento, Web Technologies
Tags
ecommerce solution, implement product, Magento
Comments rss Comments rss
Trackback Trackback

Recent Posts

  • The confines of the Chinese Internet
  • The Chinese Delivery Methods
  • 5 simple development tricks for a faster web application
  • The Chinese Payment Modules
  • Synchronization
  • Always be releasable
  • Sina Weibo and the brands
  • The most influential Chinese e-commerce websites
  • X.commerce, New International Opportunities for E-Commerce Solution Providers
  • Case Study for Etam

Categories

  • Content Management (CMS)
  • Ecommerce
  • FAQ Shopmaker – Standard Ecommerce
  • Internet
  • Magento
  • News
  • PHP
  • References
  • Search Engine Marketing (SEM)
  • Search Engine Optimization (SEO)
  • Web Design
  • Web Development
  • Web Technologies
  • Webmarketing

Tags

api asia b2c Baidu business bysoft Bysoftchina c2c china CMS company cpc Design Ecommerce ecommerce navigation education ergonomics eZ publish Google integration interview japan Joomla! lecture Magento open source PHP php engineer ppc press programming sem seo shanghai shopmaker social media symfony tips tutorial web application Webmarketing website cache zend zend framework Zend PHP 5

Recent Comments

  • Frederic Iseman on Greetings from Bysoft for the Year of the Ox
  • Online sexy blackjack 2 on Case Study for Rio-Mints
  • Boyce Mettlen on The most influential Chinese e-commerce websites
  • Bysoft on Sina Weibo and the brands
  • Dustin Selissen on BysoftChina is now an Oracle Partner!

Pages

  • About Us

Archives

  • February 2012
  • January 2012
  • October 2011
  • September 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • June 2009
  • May 2009
  • February 2009
  • January 2009
  • October 2008
  • April 2008
  • March 2008
  • February 2008
  • December 2007
  • November 2007
  • August 2007

Bysoft China

  • Consulting
  • Content Management
  • E-Commerce
  • Graphic Design
  • Magento
  • Marketing Website
  • Programming
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox