Magento Product Types Demystified
Transcript of Magento Product Types Demystified
![Page 1: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/1.jpg)
Demystified Magento Product Types
Fabrizio Branca (@fbrnc) - San Francisco Magento Meetup – December, 2014
or: “How to design a product catalog”
![Page 2: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/2.jpg)
![Page 3: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/3.jpg)
Types Product
![Page 4: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/4.jpg)
Simple Configurable Grouped Virtual Bundle Downloadable
![Page 5: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/5.jpg)
Simple Configurable Grouped Virtual Bundle Downloadable
Mage_Catalog Mage_Bundle Mage_Downloadable
Giftcard
Enterprise_GiftCard
+
Modules
![Page 6: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/6.jpg)
Simple Configurable Grouped Virtual Bundle Downloadable
isComposite
![Page 7: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/7.jpg)
Simple Configurable* Grouped Virtual Bundle* Downloadable
isVirtual
* if child products are virtual
![Page 8: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/8.jpg)
Simple Configurable Grouped Virtual Bundle Downloadable*
canConfigure
* if product has links that can be purchased seperately
![Page 9: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/9.jpg)
Mage_Catalog_Model_Product_Type_*
Mage_Catalog_Model_Product
Product vs. Type
getTypeInstance()
isComposite()
canConfigure()
getIsVirtual()
…
facade/proxy
![Page 10: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/10.jpg)
Mage_Catalog_Model_Product_Type_Abstract
Mage_Catalog_Model_Product_Type_Simple
Mage_Catalog_Model_Product_Type_Grouped
Mage_Catalog_Model_Product_Type_Configurable
Mage_Catalog_Model_Product_Type_Virtual
Mage_Downloadable_Model_Product_Type
Mage_Bundle_Model_Product_Type
Enterprise_GiftCard_Model_Catalog_Product_Type_Giftcard
![Page 11: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/11.jpg)
Attributes SKU:
Description:
Color:
Size:
Brand:
Weight:
+
General
Prices
Taxes
Images
Inventory
Product Links
+
![Page 12: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/12.jpg)
Attribute Types
![Page 13: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/13.jpg)
![Page 14: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/14.jpg)
“Visible on Product View Page on Front-end”
![Page 15: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/15.jpg)
“Use in Layered Navigation”
![Page 16: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/16.jpg)
Attribute Sets
![Page 17: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/17.jpg)
Attribute Groups
![Page 18: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/18.jpg)
Status
ENABLED
class Mage_Catalog_Model_Product_Status extends Mage_Core_Model_Abstract { const STATUS_ENABLED = 1; const STATUS_DISABLED = 2;
weird, huh?
![Page 19: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/19.jpg)
Visibility
Not Visible
Individually
Catalog
only
Search
only
+
Catalog and
Search
![Page 20: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/20.jpg)
Scopes
Global
Website
Store
![Page 21: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/21.jpg)
Scopes
Global
Website
Store
![Page 22: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/22.jpg)
Scopes
Global
Website
Store
![Page 23: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/23.jpg)
Scopes
http://fbrnc.net/blog/2012/02/magento-website-store-groups-store-views
Global
Website Website
Store Group Store Group
Store View Store View
![Page 24: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/24.jpg)
Websites ☐ Website A
☒ Website B
☐ Website C ☒ Website D ☐ Website E
Store 1 Store 2
Store 3 Store 4 Store 5
![Page 25: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/25.jpg)
Categories
attached to a “store group”
Controls on which websites it shows up
Root category
![Page 26: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/26.jpg)
http://www.aschroder.com/2010/07/why-are-my-magento-products-not-showing-up/
Why are my products not showing up?!
☑ Are they in stock?
☑ Are they enabled?
☑ Are they visible?
☑ Are any child products in stock?
☑ Are they in the expected category?
☑ Did you clear the cache?
☑ Did you reindex?
![Page 27: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/27.jpg)
Lifecycle catalog (catalog price rules), cart (shipping cart price rules) (quote
Catalog Cart (=Quote) Order Archive
add to cart checkout archive
Magento EE
workflow
(status, state)
Catalog Price Rules
Shopping Cart Price Rules
blueprint -> instance (copy)
![Page 28: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/28.jpg)
Products Simple
![Page 29: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/29.jpg)
http://demo.magentocommerce.com/home-decor/electronics/madison-earbuds.html
![Page 30: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/30.jpg)
Options Custom
![Page 31: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/31.jpg)
Mage_Catalog_Model_Product_Option
Mage_Catalog_Model_Product
Product Options
getOptionInstance()
getProductOptionsCollection()
…
facade/proxy
getType()
getValue()
…
![Page 32: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/32.jpg)
![Page 33: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/33.jpg)
![Page 34: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/34.jpg)
Links Product
![Page 35: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/35.jpg)
Mage_Catalog_Model_Product_Link
Mage_Catalog_Model_Product
Product Links
getLinkInstance()
getRelatedProducts()
getUpSellProducts()
getCrossSellProducts()
…
facade/proxy
const LINK_TYPE_RELATED = 1;
const LINK_TYPE_GROUPED = 3;
const LINK_TYPE_UPSELL = 4;
const LINK_TYPE_CROSSSELL = 5;
![Page 36: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/36.jpg)
up-sells
Magento EE allows setting these up with dynamic rules…
![Page 37: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/37.jpg)
Products Configurable
![Page 38: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/38.jpg)
same attribute set
“super-attributes”
simple, virtual or downloadable (= non composite)
![Page 39: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/39.jpg)
red color
green blue white yellow
Super-Attributes
![Page 40: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/40.jpg)
color
size
S
M
L
XL
red green blue white yellow
Super-Attributes
![Page 41: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/41.jpg)
color
size
men
women
S
M
L
XL
red green blue white yellow
Super-Attributes
gender
![Page 42: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/42.jpg)
color
size
gender
Super-Attributes
![Page 43: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/43.jpg)
color
size
gender
red, XL, woman
Super-Attributes
![Page 44: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/44.jpg)
http://demo.magentocommerce.com/women/tops-blouses/nolita-cami-496.html
![Page 45: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/45.jpg)
Products Grouped
![Page 46: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/46.jpg)
+ + show up as
separate line items
![Page 47: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/47.jpg)
http://demo.magentocommerce.com/luggage-set.html
![Page 48: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/48.jpg)
Products Bundle
![Page 49: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/49.jpg)
options
selections
![Page 50: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/50.jpg)
![Page 51: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/51.jpg)
http://demo.magentocommerce.com/home-decor/bed-bath/pillow-and-throw-set.html
![Page 52: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/52.jpg)
Products Downloadable
![Page 53: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/53.jpg)
![Page 54: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/54.jpg)
http://demo.magentocommerce.com/home-decor/books-music/around-the-world-in-80-days.html
![Page 55: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/55.jpg)
http://www.solvingmagento.com
![Page 56: Magento Product Types Demystified](https://reader033.fdocuments.in/reader033/viewer/2022052509/55a2099c1a28ab96368b459e/html5/thumbnails/56.jpg)
Thank you! Any questions?
{firstname}.{lastname}@aoe.com
http://www.aoe.com
http://fbrnc.net
@fbrnc Follow me on twitter!
My blog