本文整理汇总了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();
}
开发者ID:ronseigel,项目名称:agent-ohm,代码行数:7,代码来源:Multishipping_Addresses.php
示例2: _prepareLayout
protected function _prepareLayout()
{
if ($headBlock = $this->getLayout()->getBlock('head')) {
$headBlock->setTitle(Mage::helper('checkout')->__('Shipping Methods') . ' - ' . $headBlock->getDefaultTitle());
}
return parent::_prepareLayout();
}
开发者ID:hyhoocchan,项目名称:mage-local,代码行数:7,代码来源:Shipping.php
示例3: _prepareLayout
protected function _prepareLayout()
{
if ($headBlock = $this->getLayout()->getBlock('head')) {
$headBlock->setTitle($this->__('Review Order - %s', $headBlock->getDefaultTitle()));
}
return parent::_prepareLayout();
}
开发者ID:HelioFreitas,项目名称:magento-pt_br,代码行数:7,代码来源:Overview.php
示例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;
}
开发者ID:xiaoguizhidao,项目名称:magento,代码行数:9,代码来源:Abstract.php
示例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();
}
开发者ID:xiaoguizhidao,项目名称:extensiongsd,代码行数:14,代码来源:Items.php
示例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');
}
}
开发者ID:cabrerabywaters,项目名称:magentoSunshine,代码行数:17,代码来源:Pdf.php
示例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;
}
开发者ID:protechhelp,项目名称:gamamba,代码行数:43,代码来源:Abstract.php
示例8: _prepareItem
protected function _prepareItem(Mage_Core_Block_Abstract $renderer)
{
$renderer->setPrintStatus(true);
return parent::_prepareItem($renderer);
}
开发者ID:codercv,项目名称:urbansurprisedev,代码行数:5,代码来源:Print.php
示例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);
}
开发者ID:hazaeluz,项目名称:magento_connect,代码行数:12,代码来源:Overview.php
示例10: _construct
protected function _construct()
{
parent::_construct();
$this->setTemplate('mw_followupemail/itemsproductorder.phtml');
}
开发者ID:santhosh400,项目名称:ecart,代码行数:5,代码来源:Itemsproductorder.php
示例11: _construct
protected function _construct()
{
parent::_construct();
$this->addItemRender('default', 'checkout/cart_item_renderer', 'request4quote/cart/item/default.phtml');
}
开发者ID:VinuWebtech,项目名称:production267,代码行数:5,代码来源:Items.php
示例12: _construct
protected function _construct()
{
parent::_construct();
}
开发者ID:jronatay,项目名称:ultimo-magento-jron,代码行数:4,代码来源:Review.php
示例13: _beforeToHtml
/**
* Initialize data and prepare it for output
*/
protected function _beforeToHtml()
{
$this->_prepareLastOrder();
return parent::_beforeToHtml();
}
开发者ID:rorteg,项目名称:rafaelmage,代码行数:8,代码来源:Success.php
注:本文中的Mage_Sales_Block_Items_Abstract类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论