Class Mage_Catalog_Block_Product_View

Description

Product View block

Located in /Catalog/Block/Product/View.php (line 35)

Varien_Object
   |
   --Mage_Core_Block_Abstract
      |
      --Mage_Core_Block_Template
         |
         --Mage_Catalog_Block_Product_Abstract
            |
            --Mage_Catalog_Block_Product_View
Direct descendents
Class Description
Mage_Bundle_Block_Catalog_Product_View Product View block (to modify getTierPrices method)
Mage_Review_Block_Product_View Product Reviews Page
Method Summary
Variables

Inherited Variables

Inherited from Mage_Catalog_Block_Product_Abstract

Mage_Catalog_Block_Product_Abstract::$_block
Mage_Catalog_Block_Product_Abstract::$_columnCountLayoutDepend
Mage_Catalog_Block_Product_Abstract::$_defaultColumnCount
Mage_Catalog_Block_Product_Abstract::$_priceBlock
Mage_Catalog_Block_Product_Abstract::$_priceBlockDefaultTemplate
Mage_Catalog_Block_Product_Abstract::$_priceBlockTypes
Mage_Catalog_Block_Product_Abstract::$_reviewsHelperBlock
Mage_Catalog_Block_Product_Abstract::$_tierPriceDefaultTemplate
Mage_Catalog_Block_Product_Abstract::$_useLinkForAsLowAs

Inherited from Mage_Core_Block_Template

Mage_Core_Block_Template::$_baseUrl
Mage_Core_Block_Template::$_jsUrl
Mage_Core_Block_Template::$_showTemplateHints
Mage_Core_Block_Template::$_showTemplateHintsBlocks
Mage_Core_Block_Template::$_template
Mage_Core_Block_Template::$_viewDir
Mage_Core_Block_Template::$_viewVars

Inherited from Mage_Core_Block_Abstract

Mage_Core_Block_Abstract::$_alias
Mage_Core_Block_Abstract::$_anonSuffix
Mage_Core_Block_Abstract::$_childGroups
Mage_Core_Block_Abstract::$_children
Mage_Core_Block_Abstract::$_childrenHtmlCache
Mage_Core_Block_Abstract::$_frameCloseTag
Mage_Core_Block_Abstract::$_frameOpenTag
Mage_Core_Block_Abstract::$_isAnonymous
Mage_Core_Block_Abstract::$_layout
Mage_Core_Block_Abstract::$_messagesBlock
Mage_Core_Block_Abstract::$_nameInLayout
Mage_Core_Block_Abstract::$_parent
Mage_Core_Block_Abstract::$_parentBlock
Mage_Core_Block_Abstract::$_request
Mage_Core_Block_Abstract::$_sortedChildren
Mage_Core_Block_Abstract::$_urlModel
Methods
canEmailToFriend (line 93)

Check if product can be emailed to friend

  • access: public
bool canEmailToFriend ()
getAddToCartUrl (line 106)

Retrieve url for direct adding product to cart

  • access: public
string getAddToCartUrl (Mage_Catalog_Model_Product $product, [array $additional = array()])

Redefinition of:
Mage_Catalog_Block_Product_Abstract::getAddToCartUrl()
Retrieve url for add product to cart Will return product view page URL if product has required options
getJsonConfig (line 121)

Get JSON encripted configuration array which can be used for JS dynamic price calculation depending on product options

  • access: public
string getJsonConfig ()
getProduct (line 79)

Retrieve current product model

  • access: public

Redefinition of:
Mage_Catalog_Block_Product_Abstract::getProduct()
Retrieve currently viewed product object
getProductDefaultQty (line 214)

Get default qty - either as preconfigured, or as 1.

Also restricts it by minimal qty.

  • access: public
int|float getProductDefaultQty ([null|Mage_Catalog_Model_Product $product = null])
hasOptions (line 175)

Return true if product has options

  • access: public
bool hasOptions ()

Redefined in descendants as:
hasRequiredOptions (line 188)

Check if product has required options

  • access: public
bool hasRequiredOptions ()
isStartCustomization (line 201)

Define if setting of product options must be shown instantly.

Used in case when options are usually hidden and shown only when user presses some button or link. In editing mode we better show these options instantly.

  • access: public
bool isStartCustomization ()
_prepareLayout (line 42)

Add meta information from product to head block

  • access: protected

Redefinition of:
Mage_Catalog_Block_Product_Abstract::_prepareLayout()
If exists price template block, retrieve price blocks from it

Redefined in descendants as:

Inherited Methods

Inherited From Mage_Catalog_Block_Product_Abstract

Mage_Catalog_Block_Product_Abstract::addColumnCountLayoutDepend()
Mage_Catalog_Block_Product_Abstract::addPriceBlockType()
Mage_Catalog_Block_Product_Abstract::addReviewSummaryTemplate()
Mage_Catalog_Block_Product_Abstract::getAddToCartUrl()
Mage_Catalog_Block_Product_Abstract::getAddToCompareUrl()
Mage_Catalog_Block_Product_Abstract::getAddToWishlistUrl()
Mage_Catalog_Block_Product_Abstract::getCanShowProductPrice()
Mage_Catalog_Block_Product_Abstract::getColumnCount()
Mage_Catalog_Block_Product_Abstract::getColumnCountLayoutDepend()
Mage_Catalog_Block_Product_Abstract::getImageLabel()
Mage_Catalog_Block_Product_Abstract::getMinimalQty()
Mage_Catalog_Block_Product_Abstract::getPageLayout()
Mage_Catalog_Block_Product_Abstract::getPriceHtml()
Mage_Catalog_Block_Product_Abstract::getProduct()
Mage_Catalog_Block_Product_Abstract::getProductUrl()
Mage_Catalog_Block_Product_Abstract::getReviewsSummaryHtml()
Mage_Catalog_Block_Product_Abstract::getSubmitUrl()
Mage_Catalog_Block_Product_Abstract::getTierPriceHtml()
Mage_Catalog_Block_Product_Abstract::getTierPrices()
Mage_Catalog_Block_Product_Abstract::getTierPriceTemplate()
Mage_Catalog_Block_Product_Abstract::hasProductUrl()
Mage_Catalog_Block_Product_Abstract::removeColumnCountLayoutDepend()
Mage_Catalog_Block_Product_Abstract::_addProductAttributesAndPrices()
Mage_Catalog_Block_Product_Abstract::_getPriceBlock()
Mage_Catalog_Block_Product_Abstract::_getPriceBlockTemplate()
Mage_Catalog_Block_Product_Abstract::_initReviewsHelperBlock()
Mage_Catalog_Block_Product_Abstract::_prepareLayout()
Mage_Catalog_Block_Product_Abstract::_preparePriceRenderer()

Inherited From Mage_Core_Block_Template

Mage_Core_Block_Template::assign()
Mage_Core_Block_Template::fetchView()
Mage_Core_Block_Template::getArea()
Mage_Core_Block_Template::getBaseUrl()
Mage_Core_Block_Template::getCacheKeyInfo()
Mage_Core_Block_Template::getDirectOutput()
Mage_Core_Block_Template::getJsUrl()
Mage_Core_Block_Template::getObjectData()
Mage_Core_Block_Template::getShowTemplateHints()
Mage_Core_Block_Template::getTemplate()
Mage_Core_Block_Template::getTemplateFile()
Mage_Core_Block_Template::renderView()
Mage_Core_Block_Template::setScriptPath()
Mage_Core_Block_Template::setTemplate()
Mage_Core_Block_Template::_construct()
Mage_Core_Block_Template::_toHtml()

Inherited From Mage_Core_Block_Abstract

Mage_Core_Block_Abstract::addToChildGroup()
Mage_Core_Block_Abstract::addToParentGroup()
Mage_Core_Block_Abstract::append()
Mage_Core_Block_Abstract::countChildren()
Mage_Core_Block_Abstract::escapeHtml()
Mage_Core_Block_Abstract::escapeUrl()
Mage_Core_Block_Abstract::formatDate()
Mage_Core_Block_Abstract::formatTime()
Mage_Core_Block_Abstract::getAction()
Mage_Core_Block_Abstract::getAnonSuffix()
Mage_Core_Block_Abstract::getBlockAlias()
Mage_Core_Block_Abstract::getBlockHtml()
Mage_Core_Block_Abstract::getCacheKey()
Mage_Core_Block_Abstract::getCacheKeyInfo()
Mage_Core_Block_Abstract::getCacheLifetime()
Mage_Core_Block_Abstract::getCacheTags()
Mage_Core_Block_Abstract::getChild()
Mage_Core_Block_Abstract::getChildChildHtml()
Mage_Core_Block_Abstract::getChildData()
Mage_Core_Block_Abstract::getChildGroup()
Mage_Core_Block_Abstract::getChildHtml()
Mage_Core_Block_Abstract::getHelper()
Mage_Core_Block_Abstract::getIsAnonymous()
Mage_Core_Block_Abstract::getLayout()
Mage_Core_Block_Abstract::getMessagesBlock()
Mage_Core_Block_Abstract::getModuleName()
Mage_Core_Block_Abstract::getNameInLayout()
Mage_Core_Block_Abstract::getParentBlock()
Mage_Core_Block_Abstract::getRequest()
Mage_Core_Block_Abstract::getSkinUrl()
Mage_Core_Block_Abstract::getSortedChildBlocks()
Mage_Core_Block_Abstract::getSortedChildren()
Mage_Core_Block_Abstract::getUrl()
Mage_Core_Block_Abstract::getUrlBase64()
Mage_Core_Block_Abstract::getUrlEncoded()
Mage_Core_Block_Abstract::helper()
Mage_Core_Block_Abstract::htmlEscape()
Mage_Core_Block_Abstract::insert()
Mage_Core_Block_Abstract::jsQuoteEscape()
Mage_Core_Block_Abstract::setAnonSuffix()
Mage_Core_Block_Abstract::setAttribute()
Mage_Core_Block_Abstract::setBlockAlias()
Mage_Core_Block_Abstract::setChild()
Mage_Core_Block_Abstract::setFrameTags()
Mage_Core_Block_Abstract::setIsAnonymous()
Mage_Core_Block_Abstract::setLayout()
Mage_Core_Block_Abstract::setMessagesBlock()
Mage_Core_Block_Abstract::setNameInLayout()
Mage_Core_Block_Abstract::setParentBlock()
Mage_Core_Block_Abstract::stripTags()
Mage_Core_Block_Abstract::toHtml()
Mage_Core_Block_Abstract::unsetCallChild()
Mage_Core_Block_Abstract::unsetChild()
Mage_Core_Block_Abstract::unsetChildren()
Mage_Core_Block_Abstract::urlEscape()
Mage_Core_Block_Abstract::_afterCacheUrl()
Mage_Core_Block_Abstract::_afterToHtml()
Mage_Core_Block_Abstract::_beforeCacheUrl()
Mage_Core_Block_Abstract::_beforeChildToHtml()
Mage_Core_Block_Abstract::_beforeToHtml()
Mage_Core_Block_Abstract::_construct()
Mage_Core_Block_Abstract::_getChildHtml()
Mage_Core_Block_Abstract::_getUrlModel()
Mage_Core_Block_Abstract::_getUrlModelClass()
Mage_Core_Block_Abstract::_loadCache()
Mage_Core_Block_Abstract::_prepareLayout()
Mage_Core_Block_Abstract::_saveCache()
Mage_Core_Block_Abstract::_toHtml()
Mage_Core_Block_Abstract::__()
Class Constants

Documentation generated on Fri, 11 Feb 2011 17:15:55 +0200 by phpDocumentor 1.4.3