Class Mage_Catalog_Block_Product_Abstract
Catalog Product Abstract Block
- Varien_Object
- Mage_Core_Block_Abstract
- Mage_Core_Block_Template
- Mage_Catalog_Block_Product_Abstract
Direct known subclasses
Mage_Bundle_Block_Catalog_Product_List_Partof, Mage_Catalog_Block_Product_Compare_Abstract, Mage_Checkout_Block_Cart_Crosssell, Mage_Downloadable_Block_Catalog_Product_Links, Mage_Downloadable_Block_Catalog_Product_Samples, Mage_Reports_Block_Product_Abstract, Mage_Review_Block_Customer_View, Mage_Review_Block_View, Mage_Tag_Block_Customer_View, Mage_Tag_Block_Product_Result, Mage_Wishlist_Block_Abstract, Mage_Catalog_Block_Product_List, Mage_Catalog_Block_Product_List_Crosssell, Mage_Catalog_Block_Product_List_Related, Mage_Catalog_Block_Product_List_Upsell, Mage_Catalog_Block_Product_New, Mage_Catalog_Block_Product_Send, Mage_Catalog_Block_Product_View, Mage_Catalog_Block_Product_View_AbstractIndirect known subclasses
Mage_Adminhtml_Block_Catalog_Product_Composite_Fieldset_Configurable, Mage_Adminhtml_Block_Catalog_Product_Composite_Fieldset_Grouped, Mage_Catalog_Block_Product_View_Type_Configurable, Mage_Catalog_Block_Product_View_Type_Grouped, Mage_Catalog_Block_Product_View_Type_Simple, Mage_Catalog_Block_Product_View_Type_Virtual, Mage_Catalog_Block_Product_Widget_New, Mage_Downloadable_Block_Adminhtml_Catalog_Product_Composite_Fieldset_Downloadable, Mage_Downloadable_Block_Catalog_Product_View_Type, Mage_Reports_Block_Product_Compared, Mage_Reports_Block_Product_Viewed, Mage_Reports_Block_Product_Widget_Compared, Mage_Bundle_Block_Adminhtml_Catalog_Product_Composite_Fieldset_Bundle, Mage_Reports_Block_Product_Widget_Viewed, Mage_Review_Block_Product_View, Mage_Review_Block_Product_View_List, Mage_Rss_Block_Wishlist, Mage_Wishlist_Block_Customer_Sidebar, Mage_Wishlist_Block_Customer_Wishlist, Mage_Wishlist_Block_Customer_Wishlist_Item_Column, Mage_Wishlist_Block_Customer_Wishlist_Item_Column_Cart, Mage_Wishlist_Block_Customer_Wishlist_Item_Column_Comment, Mage_Wishlist_Block_Customer_Wishlist_Item_Column_Image, Mage_Bundle_Block_Catalog_Product_View, Mage_Wishlist_Block_Customer_Wishlist_Item_Column_Remove, Mage_Wishlist_Block_Customer_Wishlist_Item_Options, Mage_Wishlist_Block_Share_Email_Items, Mage_Wishlist_Block_Share_Wishlist, Mage_XmlConnect_Block_Cart_Crosssell, Mage_XmlConnect_Block_Wishlist, Mage_Bundle_Block_Catalog_Product_View_Type_Bundle, Mage_Catalog_Block_Product_Compare_List, Mage_Catalog_Block_Product_Compare_Sidebar, Mage_Catalog_Block_Product_List_Promotion, Mage_Catalog_Block_Product_List_Random, Mage_Catalog_Block_Product_View_MediaPackage: Mage\Catalog
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Catalog/Block/Product/Abstract.php
public
string
|
#
getAddToCartUrl(
Retrieve url for add product to cart Will return product view page URL if product has required options |
public
string
|
#
getSubmitUrl(
Retrieves url for form submitting: some objects can use setSubmitRouteData() to set route and params for form submitting, otherwise default url will be used |
public
string
|
|
public
string
|
#
getAddToCompareUrl(
Retrieve Add Product to Compare Products List URL |
public
|
|
protected
|
|
protected
|
|
public
|
#
_preparePriceRenderer( string $productType )
Prepares and returns block to render some product type |
public
string
|
#
getPriceHtml(
Returns product price block html |
public
|
#
addPriceBlockType( string $type, string $block = '', string $template = '' )
Adding customized price template for product type |
public
string
|
#
getReviewsSummaryHtml(
Get product reviews summary |
public
string
|
#
addReviewSummaryTemplate( string $type, string $template )
Add/replace reviews summary template by type |
protected
boolean
|
|
public
|
|
public
|
|
public
string
|
#
getTierPriceHtml(
Returns product tier price block html |
public
array
|
|
protected
|
#
_addProductAttributesAndPrices(
Add all attributes and apply pricing logic to products collection to get correct values in different products lists. E.g. crosssells, upsells, new products, recently viewed |
public
string
|
#
getImageLabel(
Retrieve given media attribute label or product name if no label |
public
string
|
#
getProductUrl(
Retrieve Product URL using UrlDataObject |
public
boolean
|
|
public
integer
|
|
public
|
#
addColumnCountLayoutDepend( string $pageLayout, integer $columnCount )
Add row size depends on page layout |
public
|
|
public
integer|boolean
|
|
public
Varien_Object
|
|
public
boolean
|
#
getCanShowProductPrice(
Check whether the price can be shown for the specified product |
protected
|
XML_PATH_DEBUG_TEMPLATE_HINTS,
XML_PATH_DEBUG_TEMPLATE_HINTS_BLOCKS,
XML_PATH_TEMPLATE_ALLOW_SYMLINK
|
CACHE_GROUP
|
protected
array
|
$_priceBlock | array() |
|
protected
string
|
$_block | 'catalog/product_price' |
#
Default price block |
protected
string
|
$_priceBlockDefaultTemplate | 'catalog/product/price.phtml' |
|
protected
string
|
$_tierPriceDefaultTemplate | 'catalog/product/view/tierprices.phtml' |
|
protected
array
|
$_priceBlockTypes | array() |
|
protected
boolean
|
$_useLinkForAsLowAs | true |
#
Flag which allow/disallow to use link for as low as price |
protected
mixed
|
$_reviewsHelperBlock |
|
|
protected
integer
|
$_defaultColumnCount | 3 |
#
Default product amount per row |
protected
array
|
$_columnCountLayoutDepend | array() |
#
Product amount per row depending on custom page layout of category |
protected
string
|
$_mapRenderer | 'msrp' |
#
Default MAP renderer type |
$_allowSymlinks,
$_baseUrl,
$_jsUrl,
$_showTemplateHints,
$_showTemplateHintsBlocks,
$_template,
$_viewDir,
$_viewVars
|