本文整理汇总了PHP中Mage_Sales_Block_Items_Abstract类的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Sales_Block_Items_Abstract类的具体用法?PHP Mage_Sales_Block_Items_Abstract怎么用?PHP Mage_Sales_Block_Items_Abstract使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Mage_Sales_Block_Items_Abstract类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _prepareLayout
protected function _prepareLayout()
{
if ($headBlock = $this->getLayout()->getBlock('head')) {
$headBlock->setTitle(AO::helper('checkout')->__('Ship to Multiple Addresses') . ' - ' . $headBlock->getDefaultTitle());
}
return parent::_prepareLayout();
}
示例2: _prepareLayout
protected function _prepareLayout()
{
if ($headBlock = $this->getLayout()->getBlock('head')) {
$headBlock->setTitle(Mage::helper('checkout')->__('Shipping Methods') . ' - ' . $headBlock->getDefaultTitle());
}
return parent::_prepareLayout();
}
示例3: _prepareLayout
protected function _prepareLayout()
{
if ($headBlock = $this->getLayout()->getBlock('head')) {
$headBlock->setTitle($this->__('Review Order - %s', $headBlock->getDefaultTitle()));
}
return parent::_prepareLayout();
}
示例4: _prepareLayout
protected function _prepareLayout()
{
parent::_prepareLayout();
if ($toolbar = $this->getLayout()->getBlock('udratings_list.toolbar')) {
$toolbar->setCollection($this->getReviewsCollection());
$this->setChild('toolbar', $toolbar);
}
return $this;
}
示例5: _beforeToHtml
/**
* Retrieve required options from parent
*/
protected function _beforeToHtml()
{
if (!$this->getParentBlock()) {
Mage::throwException(Mage::helper('adminhtml')->__('Invalid parent block for this block.'));
}
$this->setSubscription($this->getParentBlock()->getSubscription());
$orderInfos = $this->getSubscription()->getOrderInfo();
$order = Mage::getModel('sales/order')->setData($orderInfos)->setId(null);
$this->setOrder($order);
parent::_beforeToHtml();
}
示例6: __construct
public function __construct()
{
parent::__construct();
if ($this->getInvoice()->getId()) {
$this->addItemRender('default', 'sales/order_item_renderer_default', 'pdfinvoiceplus/sales/order/invoice/items/renderer/default.phtml');
$this->addItemRender('grouped', 'sales/order_item_renderer_grouped', 'pdfinvoiceplus/sales/order/invoice/items/renderer/default.phtml');
$this->addItemRender('bundle', 'bundle/sales_order_items_renderer', 'pdfinvoiceplus/sales/bundle/invoice/items/renderer/renderer.phtml');
} elseif ($this->getCreditmemo()->getId()) {
$this->addItemRender('grouped', 'sales/order_item_renderer_grouped', 'pdfinvoiceplus/sales/order/creditmemo/items/renderer/default.phtml');
$this->addItemRender('default', 'sales/order_item_renderer_default', 'pdfinvoiceplus/sales/order/creditmemo/items/renderer/default.phtml');
$this->addItemRender('bundle', 'bundle/sales_order_items_renderer', 'pdfinvoiceplus/sales/bundle/creditmemo/items/renderer/renderer.phtml');
} else {
$this->addItemRender('grouped', 'sales/order_item_renderer_grouped', 'pdfinvoiceplus/sales/order/view/items/renderer/default.phtml');
$this->addItemRender('default', 'sales/order_item_renderer_default', 'pdfinvoiceplus/sales/order/view/items/renderer/default.phtml');
$this->addItemRender('bundle', 'bundle/sales_order_items_renderer', 'pdfinvoiceplus/sales/bundle/view/items/renderer/renderer.phtml');
}
}
示例7: getItemHtml
public function getItemHtml(Varien_Object $item)
{
$html = parent::getItemHtml($item);
$product = Mage::getModel('catalog/product')->load($item->getProductId());
$show = 0;
if ($item->getProductType() == 'configurable') {
$itemId = $item->getItemId();
$children = Mage::getModel('sales/order_item')->getCollection();
$children->getSelect()->where("main_table.parent_item_id = {$itemId}");
foreach ($children as $child) {
$show = $show || Mage::getModel('catalog/product')->load($child->getProductId())->getSerialCodeShowOrder();
}
}
if ($show || $product->getSerialCodeShowOrder()) {
$sc_model = Mage::getSingleton('serialcodes/serialcodes');
$name = $this->htmlEscape($item->getName());
$codetype = $item->getSerialCodeType();
$codes = explode("\n", $item->getSerialCodes());
$count = count($codes);
$local = '<span style="font-weight:normal;">';
if ($codes[0]) {
$order = Mage::getSingleton('sales/order')->load($item->getOrderId());
$codeids = array_pad(explode(',', $item->getSerialCodeIds()), $count, '');
for ($i = 0; $i < $count; $i++) {
if ($sc_model->hidePendingCodes($order, $item, $product, $codeids[$i], $i)) {
$codes[$i] = Mage::helper('serialcodes')->__('Issued when payment received.');
}
$local .= '</br>' . $codetype . ': ' . $codes[$i];
}
}
$local .= '</span>';
if (strpos($html, $name)) {
$start = strpos($html, $name) + strlen($name);
} else {
$start = strpos($html, '</h3>') + 5;
}
$test = trim(strip_tags($local));
if ($test && $test != ':') {
$html = substr_replace($html, $local, $start, 0);
}
}
return $html;
}
示例8: _prepareItem
protected function _prepareItem(Mage_Core_Block_Abstract $renderer)
{
$renderer->setPrintStatus(true);
return parent::_prepareItem($renderer);
}
示例9: _getRowItemRenderer
/**
* Retrieve renderer block for row-level item output
*
* @param string $type
* @return Mage_Core_Block_Abstract
*/
public function _getRowItemRenderer($type)
{
$type = $this->_getRowItemType($type);
$type = isset($this->_itemRenders[$type]) ? $type : $this->_getRowItemType('default');
return parent::getItemRenderer($type);
}
示例10: _construct
protected function _construct()
{
parent::_construct();
$this->setTemplate('mw_followupemail/itemsproductorder.phtml');
}
示例11: _construct
protected function _construct()
{
parent::_construct();
$this->addItemRender('default', 'checkout/cart_item_renderer', 'request4quote/cart/item/default.phtml');
}
示例12: _construct
protected function _construct()
{
parent::_construct();
}
示例13: _beforeToHtml
/**
* Initialize data and prepare it for output
*/
protected function _beforeToHtml()
{
$this->_prepareLastOrder();
return parent::_beforeToHtml();
}