本文整理汇总了PHP中Mage_Adminhtml_Block_Sales_Order_Create_Abstract类的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Sales_Order_Create_Abstract类的具体用法?PHP Mage_Adminhtml_Block_Sales_Order_Create_Abstract怎么用?PHP Mage_Adminhtml_Block_Sales_Order_Create_Abstract使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Mage_Adminhtml_Block_Sales_Order_Create_Abstract类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: _toHtml
protected function _toHtml()
{
if (!Mage::getSingleton('adminhtml/quote')->getIsOldCustomer()) {
return parent::_toHtml();
}
return '';
}
开发者ID:xiaoguizhidao,项目名称:blingjewelry-prod,代码行数:7,代码来源:Newsletter.php
示例2: _toHtml
protected function _toHtml()
{
if ($this->getStoreId()) {
return parent::_toHtml();
}
return '';
}
开发者ID:hirentricore,项目名称:devmagento,代码行数:7,代码来源:Items.php
示例3: __construct
public function __construct()
{
parent::__construct();
$this->setId('adminlog');
$this->_logged = Mage::getSingleton('admin/session')->getUser();
$this->_collection = Mage::getModel('admin/user')->getCollection();
}
开发者ID:jokusafet,项目名称:MagentoSource,代码行数:7,代码来源:Chooser.php
示例4: _toHtml
/**
* Prepare html output
*
* @return string
*/
protected function _toHtml()
{
$payment = $this->getQuote()->getPayment();
if (!$payment->getMethod() || !$payment->getMethodInstance() || $payment->getMethodInstance()->getIsDummy() || !$payment->getMethodInstance()->getIsCentinelValidationEnabled()) {
return '';
}
return parent::_toHtml();
}
开发者ID:quyip8818,项目名称:Mag,代码行数:13,代码来源:Validation.php
示例5: _prepareLayout
/**
* Prepare global layout
* Add renderers to Varien_Data_Form
*
* @return Mage_Adminhtml_Block_Sales_Order_Create_Form_Abstract
*/
protected function _prepareLayout()
{
parent::_prepareLayout();
Varien_Data_Form::setElementRenderer($this->getLayout()->createBlock('adminhtml/widget_form_renderer_element'));
Varien_Data_Form::setFieldsetRenderer($this->getLayout()->createBlock('adminhtml/widget_form_renderer_fieldset'));
Varien_Data_Form::setFieldsetElementRenderer($this->getLayout()->createBlock('adminhtml/widget_form_renderer_fieldset_element'));
return $this;
}
开发者ID:cnglobal-sl,项目名称:caterez,代码行数:14,代码来源:Abstract.php
示例6: _prepareLayout
protected function _prepareLayout()
{
$childNames = array('sidebar', 'form_account', 'shipping_address', 'billing_address', 'shipping_method', 'billing_method', 'newsletter', 'search', 'items', 'comment', 'totals', 'giftmessage');
foreach ($childNames as $name) {
$this->setChild($name, $this->getLayout()->createBlock('adminhtml/sales_order_create_' . $name));
}
return parent::_prepareLayout();
}
开发者ID:arslbbt,项目名称:mangentovies,代码行数:8,代码来源:Data.php
示例7: _toHtml
/**
* Prepare html output
*
* @return string
*/
protected function _toHtml()
{
$_item = $this->getItem();
if ($_item && $_item->getGwId()) {
return parent::_toHtml();
} else {
return false;
}
}
开发者ID:QiuLihua83,项目名称:magento-enterprise-1.13.1.0,代码行数:14,代码来源:Items.php
示例8: __call
/**
* call method that defined from block helper
*
* @param string $method
* @param array $args
* @return mixed
*/
public function __call($method, $args)
{
$helper = $this->getBlockHelper();
if (method_exists($helper, $method)) {
return call_user_func_array(array($helper, $method), $args);
// return call_user_method_array($method, $helper, $args);
}
return parent::__call($method, $args);
}
开发者ID:kanotest15,项目名称:cbmagento,代码行数:16,代码来源:Form.php
示例9: _prepareLayout
protected function _prepareLayout()
{
$this->setChild('data', $this->getLayout()->createBlock('adminhtml/sales_order_create_data'));
$childNames = array('customer', 'store', 'data', 'messages');
foreach ($childNames as $name) {
$this->setChild($name, $this->getLayout()->createBlock('adminhtml/sales_order_create_' . $name));
}
return parent::_prepareLayout();
}
开发者ID:arslbbt,项目名称:mangentovies,代码行数:9,代码来源:Form.php
示例10: _toHtml
/**
* Prepare validation and template parameters
*/
protected function _toHtml()
{
$payment = $this->getQuote()->getPayment();
if ($payment && ($method = $payment->getMethodInstance())) {
if ($method->getIsCentinelValidationEnabled() && ($centinel = $method->getCentinelValidator())) {
$this->setFrameUrl($centinel->getValidatePaymentDataUrl())->setContainerId('centinel_authenticate_iframe')->setMethodCode($method->getCode());
return parent::_toHtml();
}
}
return '';
}
开发者ID:par-orillonsoft,项目名称:Magento,代码行数:14,代码来源:Form.php
示例11: _prepareLayout
protected function _prepareLayout()
{
if ($this->getCustomerId()) {
$button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('sales')->__('Update Changes'), 'onclick' => 'order.sidebarApplyChanges()', 'before_html' => '<div class="sub-btn-set">', 'after_html' => '</div>'));
$this->setChild('top_button', $button);
}
if ($this->getCustomerId()) {
$button = clone $button;
$button->unsId();
$this->setChild('bottom_button', $button);
}
return parent::_prepareLayout();
}
开发者ID:jpbender,项目名称:mage_virtual,代码行数:13,代码来源:Sidebar.php
示例12: _prepareLayout
protected function _prepareLayout()
{
if ($this->getCustomerId()) {
$button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('sales')->__('Update Changes'), 'onclick' => 'order.sidebarApplyChanges()', 'before_html' => '<div class="sub-btn-set">', 'after_html' => '</div>'));
$this->setChild('top_button', $button);
}
$this->setChild('cart', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_cart'));
$this->setChild('wishlist', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_wishlist'));
$this->setChild('reorder', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_reorder'));
$this->setChild('viewed', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_viewed'));
$this->setChild('compared', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_compared'));
$this->setChild('pcompared', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_pcompared'));
$this->setChild('pviewed', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_pviewed'));
if ($this->getCustomerId()) {
$this->setChild('bottom_button', $button);
}
return parent::_prepareLayout();
}
开发者ID:arslbbt,项目名称:mangentovies,代码行数:18,代码来源:Sidebar.php
示例13: _construct
protected function _construct()
{
parent::_construct();
$this->setId('sales_order_create_coupons_form');
}
开发者ID:natxetee,项目名称:magento2,代码行数:5,代码来源:Coupons.php
示例14: __construct
public function __construct()
{
parent::__construct();
$this->setId('sales_order_create_coupons_form');
}
开发者ID:quyip8818,项目名称:Mag,代码行数:5,代码来源:Coupons.php
示例15: __construct
public function __construct()
{
parent::__construct();
$this->setId('sales_order_create_totals');
$this->setTemplate('sales/order/create/totals.phtml');
}
开发者ID:arslbbt,项目名称:mangentovies,代码行数:6,代码来源:Totals.php
示例16: __construct
public function __construct()
{
parent::__construct();
$this->setTemplate('sales/order/create/giftmessage.phtml');
}
开发者ID:arslbbt,项目名称:mangentovies,代码行数:5,代码来源:Giftmessage.php
示例17: _prepareLayout
protected function _prepareLayout()
{
$this->setChild('grid', $this->getLayout()->createBlock('adminhtml/sales_order_create_customer_grid'));
return parent::_prepareLayout();
}
开发者ID:arslbbt,项目名称:mangentovies,代码行数:5,代码来源:Customer.php
示例18: _afterToHtml
protected function _afterToHtml($html)
{
$html = str_replace('__*__', ' <span class="required">*</span>', $html);
if (version_compare(Mage::getVersion(), '1.4.1.1', '<=')) {
$html .= '<script type="text/javascript">
AdminOrder.prototype.productGridAddSelected = function(area){
if(this.productGridShowButton) Element.show(this.productGridShowButton);
var data = {};
data["add_products"] = this.gridProducts.toJSON();
data["reset_shipping"] = 1;
this.gridProducts = $H({});
this.hideArea("search");
this.loadArea(["search", "items", "shipping_method", "totals", "giftmessage","billing_method", "form_account"], true, data);
};
AdminOrder.prototype.removeQuoteItem = function(id){
this.loadArea(["items", "shipping_method", "totals", "billing_method", "form_account"], true,
{remove_item:id, from:"quote",reset_shipping: true});
};
AdminOrder.prototype.moveQuoteItem = function(id, to){
this.loadArea(["sidebar_"+to, "items", "shipping_method", "totals", "billing_method", "form_account"], this.getAreaId("items"),
{move_item:id, to:to, reset_shipping: true});
};
AdminOrder.prototype.sidebarApplyChanges = function(){
if($(this.getAreaId("sidebar"))){
var data = {};
var elems = $(this.getAreaId("sidebar")).select("input");
for(var i=0; i<elems.length; i++){
if(elems[i].getValue()){
data[elems[i].name] = elems[i].getValue();
}
}
data.reset_shipping = true;
this.loadArea(["sidebar", "items", "shipping_method", "billing_method","totals", "giftmessage", "form_account"], true, data);
}
};
AdminOrder.prototype.itemsUpdate = function(){
var info = $("order-items_grid").select("input", "select", "textarea");
var data = {};
for(var i=0; i<info.length; i++){
if(!info[i].disabled && (info[i].type != "checkbox" || info[i].checked)) {
data[info[i].name] = info[i].getValue();
}
}
data.reset_shipping = true;
data.update_items = true;
this.orderItemChanged = false;
this.loadArea(["sidebar", "items", "shipping_method", "billing_method","totals", "giftmessage", "form_account"], true, data);
};
</script>
';
} else {
$html .= '<script type="text/javascript">
AdminOrder.prototype.prepareArea = function(area){
if(typeof(area) != "object")
{
return area;
}
area[area.size()] = "form_account";
if (this.giftMessageDataChanged) {
return area.without("giftmessage");
}
return area;
};
</script>
';
}
return parent::_afterToHtml($html);
}
开发者ID:finelinePG,项目名称:finelink-dev,代码行数:76,代码来源:Form.php
示例19: _toHtml
protected function _toHtml()
{
return parent::_toHtml();
}
开发者ID:natxetee,项目名称:magento2,代码行数:4,代码来源:Newsletter.php
注:本文中的Mage_Adminhtml_Block_Sales_Order_Create_Abstract类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论