Version Notes
After installation of the Marketplace plugin please clear the cache.
Download this release
Release Info
Developer | Cybage Software Pvt. Ltd. |
Extension | Cybage_Promotion_Discount |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Cybage/Checkout/Model/Observer.php +105 -0
- app/code/community/Cybage/Checkout/etc/config.xml +89 -0
- app/code/community/Cybage/Checkout/etc/system.xml +69 -0
- app/code/community/Cybage/Checkout/sql/checkout_setup/mysql4-upgrade-1.6.0.0-1.6.0.1.php +36 -0
- app/code/community/Cybage/Sales/Block/Order/Creditmemo/Totals.php +43 -0
- app/code/community/Cybage/Sales/Block/Order/Invoice/Totals.php +43 -0
- app/code/community/Cybage/Sales/Block/Order/Totals.php +43 -0
- app/code/community/Cybage/Sales/Model/Order/Creditmemo.php +55 -0
- app/code/community/Cybage/Sales/Model/Quote/Address/Total/Coupon.php +61 -0
- app/code/community/Cybage/Sales/etc/config.xml +83 -0
- app/code/community/Cybage/SalesRule/Model/Quote/Discount.php +85 -0
- app/code/community/Cybage/SalesRule/etc/config.xml +48 -0
- app/code/community/Cybage/Tax/Block/Checkout/Discount.php +50 -0
- app/code/community/Cybage/Tax/etc/config.xml +37 -0
- app/code/community/Mage/Adminhtml/Block/Sales/Totals.php +133 -0
- app/design/adminhtml/default/default/layout/cybage_sales.xml +1078 -0
- app/design/adminhtml/default/default/template/cybage/sales/order/totals.phtml +78 -0
- app/design/adminhtml/default/default/template/cybage/sales/order/totals/discount.phtml +62 -0
- app/design/frontend/base/default/layout/cybage_sales.xml +501 -0
- app/design/frontend/base/default/template/cybage/sales/order/totals.phtml +64 -0
- app/design/frontend/base/default/template/cybage_tax/checkout/discount.phtml +63 -0
- app/etc/modules/Cybage_Checkout.xml +29 -0
- app/etc/modules/Cybage_Sales.xml +29 -0
- app/etc/modules/Cybage_SalesRule.xml +29 -0
- app/etc/modules/Cybage_Tax.xml +29 -0
- package.xml +22 -0
app/code/community/Cybage/Checkout/Model/Observer.php
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Cybage Promotion Discount Plugin
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* It is available on the World Wide Web at:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
11 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
12 |
+
*
|
13 |
+
* @category Promotion Discount Plugin
|
14 |
+
* @package Cybage
|
15 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
16 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Cybage_Checkout_Model_Observer extends Varien_Event_Observer
|
22 |
+
{
|
23 |
+
const COUPON_TYPE_FUE_GENERATED = 2;
|
24 |
+
|
25 |
+
/*
|
26 |
+
* function to bifurcate coupons
|
27 |
+
* @param object
|
28 |
+
* @author srinidhid<srinidhid@cybage.com>
|
29 |
+
*/
|
30 |
+
public function discountBifurcation(Varien_Event_Observer $observer)
|
31 |
+
{
|
32 |
+
$rule = $observer->getEvent()->getRule();
|
33 |
+
$result = $observer->getEvent()->getResult();
|
34 |
+
$itemId = $observer->getEvent()->getItem()->getItemId();
|
35 |
+
//set Unique key
|
36 |
+
$curUnique= $rule->getRuleId().'_'.$itemId;
|
37 |
+
//check if Mage registry unique call set
|
38 |
+
if(Mage::registry('uniqueCall')!==null){
|
39 |
+
//if check in array
|
40 |
+
$uniqueCalls = Mage::registry('uniqueCall');
|
41 |
+
if( in_array($curUnique,$uniqueCalls)){
|
42 |
+
return;
|
43 |
+
}else{
|
44 |
+
//unset existing registry. also take existing array in variable
|
45 |
+
Mage::unregister('uniqueCall');
|
46 |
+
$uniqueCalls[]= $curUnique ;
|
47 |
+
//set registry again with new array include $uniqueCall into it
|
48 |
+
Mage::register('uniqueCall',$uniqueCalls);
|
49 |
+
}
|
50 |
+
}else{
|
51 |
+
//set registry again with new array include $uniqueCall into it
|
52 |
+
$array = array();
|
53 |
+
$array[]=$rule->getRuleId().'_'.$itemId;
|
54 |
+
Mage::register('uniqueCall',$array);
|
55 |
+
|
56 |
+
}
|
57 |
+
|
58 |
+
//condition for the Promotional coupons
|
59 |
+
if ( $rule->getCouponType() == Mage_SalesRule_Model_Rule::COUPON_TYPE_NO_COUPON ) {
|
60 |
+
$promotionDiscount = 0;
|
61 |
+
$promotionDiscount = Mage::registry('promotion');
|
62 |
+
if (Mage::registry('promotion')!==null){
|
63 |
+
Mage::unregister('promotion');
|
64 |
+
}
|
65 |
+
if (Mage::registry('promo_lable')!==null){
|
66 |
+
Mage::unregister('promo_lable');
|
67 |
+
}
|
68 |
+
$promotionDiscount += $result->getDiscountAmount();
|
69 |
+
Mage::register('promotion', $promotionDiscount);
|
70 |
+
Mage::register('promo_lable',$rule->getName());
|
71 |
+
} elseif ( $rule->getCouponType() == self::COUPON_TYPE_FUE_GENERATED ) {
|
72 |
+
$couponDiscount = 0;
|
73 |
+
$couponDiscount = Mage::registry('coupon');
|
74 |
+
if(Mage::registry('coupon')!==null){
|
75 |
+
Mage::unregister('coupon');
|
76 |
+
}
|
77 |
+
//sum up all the values of discounted coupons
|
78 |
+
$couponDiscount += $result->getDiscountAmount();
|
79 |
+
Mage::register('coupon',$couponDiscount);
|
80 |
+
}
|
81 |
+
$quote = $observer->getEvent()->getQuote();
|
82 |
+
$quoteAddress = $observer->getEvent()->getAddress();
|
83 |
+
//set discounted coupons and promotional coupons amount in quote
|
84 |
+
$quote->setCouponDiscount(Mage::registry('coupon'));
|
85 |
+
$quote->setPromotionalDiscount(Mage::registry('promotion'));
|
86 |
+
|
87 |
+
if (Mage::getStoreConfig('promodiscount/promodiscount/use_default')) {
|
88 |
+
$quote->setPromoLable(Mage::getStoreConfig('promodiscount/promodiscount/default_lable'));
|
89 |
+
} else {
|
90 |
+
if (Mage::registry('promo_lable')) {
|
91 |
+
$quote->setPromoLable(Mage::registry('promo_lable'));
|
92 |
+
} else {
|
93 |
+
$quote->setPromoLable(Mage::getStoreConfig('promodiscount/promodiscount/default_lable'));
|
94 |
+
}
|
95 |
+
}
|
96 |
+
|
97 |
+
$quoteAddress->setCouponDiscount(Mage::registry('coupon'));
|
98 |
+
$quoteAddress->setPromotionalDiscount(Mage::registry('promotion'));
|
99 |
+
if (Mage::registry('promo_lable')) {
|
100 |
+
$quoteAddress->setPromoLable(Mage::registry('promo_lable'));
|
101 |
+
} else {
|
102 |
+
$quoteAddress->setPromoLable(Mage::getStoreConfig('promodiscount/promodiscount/default_lable'));
|
103 |
+
}
|
104 |
+
}
|
105 |
+
}
|
app/code/community/Cybage/Checkout/etc/config.xml
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Cybage Promotion Discount Plugin
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* It is available on the World Wide Web at:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
12 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
13 |
+
*
|
14 |
+
* @category Promotion Discount Plugin
|
15 |
+
* @package Cybage
|
16 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
17 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<Cybage_Checkout>
|
25 |
+
<version>1.6.0.1</version>
|
26 |
+
</Cybage_Checkout>
|
27 |
+
</modules>
|
28 |
+
<global>
|
29 |
+
<models>
|
30 |
+
<Cybage_Checkout>
|
31 |
+
<class>Cybage_Checkout_Model_Type_Onepage</class>
|
32 |
+
</Cybage_Checkout>
|
33 |
+
</models>
|
34 |
+
<resources>
|
35 |
+
<checkout_setup>
|
36 |
+
<setup>
|
37 |
+
<module>Cybage_Checkout</module>
|
38 |
+
</setup>
|
39 |
+
<connection>
|
40 |
+
<use>core_setup</use>
|
41 |
+
</connection>
|
42 |
+
</checkout_setup>
|
43 |
+
<checkout_write>
|
44 |
+
<connection>
|
45 |
+
<use>core_write</use>
|
46 |
+
</connection>
|
47 |
+
</checkout_write>
|
48 |
+
<checkout_read>
|
49 |
+
<connection>
|
50 |
+
<use>core_read</use>
|
51 |
+
</connection>
|
52 |
+
</checkout_read>
|
53 |
+
</resources>
|
54 |
+
</global>
|
55 |
+
<frontend>
|
56 |
+
<events>
|
57 |
+
<salesrule_validator_process>
|
58 |
+
<observers>
|
59 |
+
<Cybage_Checkout>
|
60 |
+
<type>singleton</type>
|
61 |
+
<class>Cybage_Checkout_Model_Observer</class>
|
62 |
+
<method>discountBifurcation</method>
|
63 |
+
</Cybage_Checkout>
|
64 |
+
</observers>
|
65 |
+
</salesrule_validator_process>
|
66 |
+
</events>
|
67 |
+
</frontend>
|
68 |
+
<adminhtml>
|
69 |
+
<acl>
|
70 |
+
<resources>
|
71 |
+
<admin>
|
72 |
+
<children>
|
73 |
+
<system>
|
74 |
+
<children>
|
75 |
+
<config>
|
76 |
+
<children>
|
77 |
+
<promodiscount translate="title">
|
78 |
+
<title>Promotional Discount Section</title>
|
79 |
+
</promodiscount>
|
80 |
+
</children>
|
81 |
+
</config>
|
82 |
+
</children>
|
83 |
+
</system>
|
84 |
+
</children>
|
85 |
+
</admin>
|
86 |
+
</resources>
|
87 |
+
</acl>
|
88 |
+
</adminhtml>
|
89 |
+
</config>
|
app/code/community/Cybage/Checkout/etc/system.xml
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Cybage Promotion Discount Plugin
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* It is available on the World Wide Web at:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
12 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
13 |
+
*
|
14 |
+
* @category Promotion Discount Plugin
|
15 |
+
* @package Cybage
|
16 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
17 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<tabs>
|
24 |
+
<cybage>
|
25 |
+
<label>Cybage</label>
|
26 |
+
<sort_order>200</sort_order>
|
27 |
+
</cybage>
|
28 |
+
</tabs>
|
29 |
+
<sections>
|
30 |
+
<promodiscount translate="label" module="checkout">
|
31 |
+
<label>Promotion Discount</label>
|
32 |
+
<tab>cybage</tab>
|
33 |
+
<frontend_type>text</frontend_type>
|
34 |
+
<sort_order>100</sort_order>
|
35 |
+
<show_in_default>1</show_in_default>
|
36 |
+
<show_in_website>1</show_in_website>
|
37 |
+
<show_in_store>1</show_in_store>
|
38 |
+
<groups>
|
39 |
+
<promodiscount translate="label">
|
40 |
+
<label>Promotion Discount Plugin</label>
|
41 |
+
<frontend_type>text</frontend_type>
|
42 |
+
<sort_order>20</sort_order>
|
43 |
+
<show_in_default>1</show_in_default>
|
44 |
+
<show_in_website>1</show_in_website>
|
45 |
+
<show_in_store>1</show_in_store>
|
46 |
+
<fields>
|
47 |
+
<use_default translate="label">
|
48 |
+
<label>Use Default Label for Promotion</label>
|
49 |
+
<frontend_type>select</frontend_type>
|
50 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
51 |
+
<sort_order>1</sort_order>
|
52 |
+
<show_in_default>1</show_in_default>
|
53 |
+
<show_in_website>1</show_in_website>
|
54 |
+
<show_in_store>1</show_in_store>
|
55 |
+
</use_default>
|
56 |
+
<default_lable translate="label">
|
57 |
+
<label>Default Label for Promotion</label>
|
58 |
+
<frontend_type>text</frontend_type>
|
59 |
+
<sort_order>2</sort_order>
|
60 |
+
<show_in_default>1</show_in_default>
|
61 |
+
<show_in_website>1</show_in_website>
|
62 |
+
<show_in_store>1</show_in_store>
|
63 |
+
</default_lable>
|
64 |
+
</fields>
|
65 |
+
</promodiscount>
|
66 |
+
</groups>
|
67 |
+
</promodiscount>
|
68 |
+
</sections>
|
69 |
+
</config>
|
app/code/community/Cybage/Checkout/sql/checkout_setup/mysql4-upgrade-1.6.0.0-1.6.0.1.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Cybage Promotion Discount Plugin
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* It is available on the World Wide Web at:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
11 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
12 |
+
*
|
13 |
+
* @category Promotion Discount Plugin
|
14 |
+
* @package Cybage
|
15 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
16 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
19 |
+
*/
|
20 |
+
|
21 |
+
$installer = $this;
|
22 |
+
$installer->startSetup();
|
23 |
+
/* Include code from mysql4-upgrade-0.9.38-0.9.39.php */
|
24 |
+
$installer->getConnection()->addColumn($installer->getTable('sales_flat_quote'),
|
25 |
+
'coupon_discount', 'decimal(12,4) default 0.00 AFTER `is_persistent`');
|
26 |
+
$installer->getConnection()->addColumn($installer->getTable('sales_flat_quote'),
|
27 |
+
'promotional_discount', 'decimal(12,4) default 0.00 AFTER `is_persistent`');
|
28 |
+
$installer->getConnection()->addColumn($installer->getTable('sales_flat_quote'),
|
29 |
+
'promo_lable', 'text default null AFTER `is_persistent`');
|
30 |
+
$installer->getConnection()->addColumn($installer->getTable('sales_flat_order'),
|
31 |
+
'coupon_discount', 'decimal(12,4) default 0.00 AFTER `coupon_rule_name`');
|
32 |
+
$installer->getConnection()->addColumn($installer->getTable('sales_flat_order'),
|
33 |
+
'promotional_discount', 'decimal(12,4) default 0.00 AFTER `coupon_rule_name`');
|
34 |
+
$installer->getConnection()->addColumn($installer->getTable('sales_flat_order'),
|
35 |
+
'promo_lable', 'text default null AFTER `coupon_rule_name`');
|
36 |
+
$installer->endSetup();
|
app/code/community/Cybage/Sales/Block/Order/Creditmemo/Totals.php
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Cybage Promotion Discount Plugin
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* It is available on the World Wide Web at:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
11 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
12 |
+
*
|
13 |
+
* @category Promotion Discount Plugin
|
14 |
+
* @package Cybage
|
15 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
16 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Cybage_Sales_Block_Order_Creditmemo_Totals extends Mage_Sales_Block_Order_Creditmemo_Totals
|
22 |
+
{
|
23 |
+
/*
|
24 |
+
* Created to return the discount array to display bifurcated discount coupons for EC.
|
25 |
+
* @param $total (Object)
|
26 |
+
* @Return $label(Array)
|
27 |
+
*/
|
28 |
+
public function getCouponLabelValue($totals)
|
29 |
+
{
|
30 |
+
$discounts = array();
|
31 |
+
if($this->getOrder()->getCouponDiscount())
|
32 |
+
{
|
33 |
+
$discounts['coupon_discount'] = array('label'=>Mage::helper('sales')->__('Coupon Discount (%s)', $this->getOrder()->getCouponCode()),'value'=>$this->getOrder()->getCouponDiscount());
|
34 |
+
|
35 |
+
}
|
36 |
+
if($this->getOrder()->getPromotionalDiscount())
|
37 |
+
{
|
38 |
+
$discounts['promotional_discount'] = array('label'=>$this->getOrder()->getPromoLable(),'value'=>$this->getOrder()->getPromotionalDiscount());
|
39 |
+
|
40 |
+
}
|
41 |
+
return $discounts;
|
42 |
+
}
|
43 |
+
}
|
app/code/community/Cybage/Sales/Block/Order/Invoice/Totals.php
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Cybage Promotion Discount Plugin
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* It is available on the World Wide Web at:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
11 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
12 |
+
*
|
13 |
+
* @category Promotion Discount Plugin
|
14 |
+
* @package Cybage
|
15 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
16 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Cybage_Sales_Block_Order_Invoice_Totals extends Mage_Sales_Block_Order_Invoice_Totals
|
22 |
+
{
|
23 |
+
/*
|
24 |
+
* Created to return the discount array to display bifurcated discount coupons for EC.
|
25 |
+
* @param $total (Object)
|
26 |
+
* @Return $label(Array)
|
27 |
+
*/
|
28 |
+
public function getCouponLabelValue($totals)
|
29 |
+
{
|
30 |
+
$discounts = array();
|
31 |
+
if($this->getOrder()->getCouponDiscount())
|
32 |
+
{
|
33 |
+
$discounts['coupon_discount'] = array('label'=>Mage::helper('sales')->__('Coupon Discount (%s)', $this->getOrder()->getCouponCode()),'value'=>$this->getOrder()->getCouponDiscount());
|
34 |
+
|
35 |
+
}
|
36 |
+
if($this->getOrder()->getPromotionalDiscount())
|
37 |
+
{
|
38 |
+
$discounts['promotional_discount'] = array('label'=>$this->getOrder()->getPromoLable(),'value'=>$this->getOrder()->getPromotionalDiscount());
|
39 |
+
|
40 |
+
}
|
41 |
+
return $discounts;
|
42 |
+
}
|
43 |
+
}
|
app/code/community/Cybage/Sales/Block/Order/Totals.php
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Cybage Promotion Discount Plugin
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* It is available on the World Wide Web at:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
11 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
12 |
+
*
|
13 |
+
* @category Promotion Discount Plugin
|
14 |
+
* @package Cybage
|
15 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
16 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Cybage_Sales_Block_Order_Totals extends Mage_Sales_Block_Order_Totals
|
22 |
+
{
|
23 |
+
/*
|
24 |
+
* Created to return the discount array to display bifurcated discount coupons for EC.
|
25 |
+
* @param $total (Object)
|
26 |
+
* @Return $label(Array)
|
27 |
+
*/
|
28 |
+
public function getCouponLabelValue($totals)
|
29 |
+
{
|
30 |
+
$discounts = array();
|
31 |
+
if($this->getOrder()->getCouponDiscount())
|
32 |
+
{
|
33 |
+
$discounts['coupon_discount'] = array('label'=>Mage::helper('sales')->__('Coupon Discount (%s)', $this->getOrder()->getCouponCode()),'value'=>$this->getOrder()->getCouponDiscount());
|
34 |
+
|
35 |
+
}
|
36 |
+
if($this->getOrder()->getPromotionalDiscount())
|
37 |
+
{
|
38 |
+
$discounts['promotional_discount'] = array('label'=>$this->getOrder()->getPromoLable(),'value'=>$this->getOrder()->getPromotionalDiscount());
|
39 |
+
|
40 |
+
}
|
41 |
+
return $discounts;
|
42 |
+
}
|
43 |
+
}
|
app/code/community/Cybage/Sales/Model/Order/Creditmemo.php
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Cybage Promotion Discount Plugin
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* It is available on the World Wide Web at:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
11 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
12 |
+
*
|
13 |
+
* @category Promotion Discount Plugin
|
14 |
+
* @package Cybage
|
15 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
16 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Cybage_Sales_Model_Order_Creditmemo extends Mage_Sales_Model_Order_Creditmemo
|
22 |
+
{
|
23 |
+
/**
|
24 |
+
* Retrieve the order the creditmemo for created for
|
25 |
+
*
|
26 |
+
* @return Mage_Sales_Model_Order
|
27 |
+
*/
|
28 |
+
public function getOrder()
|
29 |
+
{
|
30 |
+
if (!$this->_order instanceof Mage_Sales_Model_Order) {
|
31 |
+
$this->_order = Mage::getModel('sales/order')->load($this->getOrderId());
|
32 |
+
}
|
33 |
+
return $this->_order->setHistoryEntityName(self::HISTORY_ENTITY_NAME);
|
34 |
+
}
|
35 |
+
|
36 |
+
public function getCouponDiscount()
|
37 |
+
{
|
38 |
+
return $this->getOrder()->getCouponDiscount();
|
39 |
+
}
|
40 |
+
|
41 |
+
public function getPromotionalDiscount()
|
42 |
+
{
|
43 |
+
return $this->getOrder()->getPromotionalDiscount();
|
44 |
+
}
|
45 |
+
|
46 |
+
public function getCouponCode()
|
47 |
+
{
|
48 |
+
return $this->getOrder()->getCouponCode();
|
49 |
+
}
|
50 |
+
|
51 |
+
public function getPromoLable()
|
52 |
+
{
|
53 |
+
return $this->getOrder()->getPromoLable();
|
54 |
+
}
|
55 |
+
}
|
app/code/community/Cybage/Sales/Model/Quote/Address/Total/Coupon.php
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Cybage Promotion Discount Plugin
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* It is available on the World Wide Web at:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
11 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
12 |
+
*
|
13 |
+
* @category Promotion Discount Plugin
|
14 |
+
* @package Cybage
|
15 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
16 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Cybage_Sales_Model_Quote_Address_Total_Coupon extends Mage_Sales_Model_Quote_Address_Total_Abstract
|
22 |
+
{
|
23 |
+
public function collect(Mage_Sales_Model_Quote_Address $address)
|
24 |
+
{
|
25 |
+
parent::collect($address);
|
26 |
+
|
27 |
+
$this->_setAmount(0);
|
28 |
+
$this->_setBaseAmount(0);
|
29 |
+
|
30 |
+
$items = $this->_getAddressItems($address);
|
31 |
+
if (!count($items)) {
|
32 |
+
return $this; //this makes only address type shipping to come through
|
33 |
+
}
|
34 |
+
|
35 |
+
$quote = $address->getQuote();
|
36 |
+
|
37 |
+
$amountDiscount = $address->getCouponDiscount();
|
38 |
+
$amountPromotion = $address->getPromotionalDiscount();
|
39 |
+
$address->setBaseDiscountAmount($amountDiscount+$amountPromotion);
|
40 |
+
$address->setDiscountAmount($amountDiscount+$amountPromotion);
|
41 |
+
|
42 |
+
}
|
43 |
+
|
44 |
+
/**
|
45 |
+
* Add coupon discount here to show on cart page
|
46 |
+
*
|
47 |
+
*/
|
48 |
+
public function fetch(Mage_Sales_Model_Quote_Address $address)
|
49 |
+
{
|
50 |
+
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
51 |
+
$description = $quote->getCouponCode();
|
52 |
+
if($address->getCouponDiscount() > 0 ) {
|
53 |
+
$address->addTotal(array(
|
54 |
+
'code' => 'coupon_discount',
|
55 |
+
'title' => Mage::helper('sales')->__('Coupon discount (%s)', $address->getCouponCode()),
|
56 |
+
'value' => -$address->getCouponDiscount(),
|
57 |
+
));
|
58 |
+
}
|
59 |
+
return $this;
|
60 |
+
}
|
61 |
+
}
|
app/code/community/Cybage/Sales/etc/config.xml
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Cybage Promotion Discount Plugin
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* It is available on the World Wide Web at:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
12 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
13 |
+
*
|
14 |
+
* @category Promotion Discount Plugin
|
15 |
+
* @package Cybage
|
16 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
17 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<Cybage_Sales>
|
25 |
+
<version>1.6.0.0</version>
|
26 |
+
</Cybage_Sales>
|
27 |
+
</modules>
|
28 |
+
<global>
|
29 |
+
<blocks>
|
30 |
+
<sales>
|
31 |
+
<rewrite>
|
32 |
+
<order_totals>Cybage_Sales_Block_Order_Totals</order_totals>
|
33 |
+
<order_invoice_totals>Cybage_Sales_Block_Order_Invoice_Totals</order_invoice_totals>
|
34 |
+
<order_creditmemo_totals>Cybage_Sales_Block_Order_Creditmemo_Totals</order_creditmemo_totals>
|
35 |
+
</rewrite>
|
36 |
+
</sales>
|
37 |
+
</blocks>
|
38 |
+
<models>
|
39 |
+
<class>Cybage_Sales_Model</class>
|
40 |
+
<sales>
|
41 |
+
<rewrite>
|
42 |
+
<order_creditmemo>Cybage_Sales_Model_Order_Creditmemo</order_creditmemo>
|
43 |
+
</rewrite>
|
44 |
+
</sales>
|
45 |
+
</models>
|
46 |
+
<sales>
|
47 |
+
<quote>
|
48 |
+
<totals>
|
49 |
+
<coupon_discount>
|
50 |
+
<class>Cybage_Sales_Model_Quote_Address_Total_Coupon</class>
|
51 |
+
<after>subtotal,freeshipping,tax_subtotal,discount</after>
|
52 |
+
<before>grand_total</before>
|
53 |
+
</coupon_discount>
|
54 |
+
</totals>
|
55 |
+
</quote>
|
56 |
+
</sales>
|
57 |
+
<fieldsets>
|
58 |
+
<sales_convert_quote>
|
59 |
+
<coupon_discount><to_order>*</to_order></coupon_discount>
|
60 |
+
<promotional_discount><to_order>*</to_order></promotional_discount>
|
61 |
+
<promo_lable><to_order>*</to_order></promo_lable>
|
62 |
+
</sales_convert_quote>
|
63 |
+
</fieldsets>
|
64 |
+
</global>
|
65 |
+
<adminhtml>
|
66 |
+
<layout>
|
67 |
+
<updates>
|
68 |
+
<sales>
|
69 |
+
<file>cybage_sales.xml</file>
|
70 |
+
</sales>
|
71 |
+
</updates>
|
72 |
+
</layout>
|
73 |
+
</adminhtml>
|
74 |
+
<frontend>
|
75 |
+
<layout>
|
76 |
+
<updates>
|
77 |
+
<sales module="Mage_Sales">
|
78 |
+
<file>cybage_sales.xml</file>
|
79 |
+
</sales>
|
80 |
+
</updates>
|
81 |
+
</layout>
|
82 |
+
</frontend>
|
83 |
+
</config>
|
app/code/community/Cybage/SalesRule/Model/Quote/Discount.php
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Cybage Promotion Discount Plugin
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* It is available on the World Wide Web at:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
11 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
12 |
+
*
|
13 |
+
* @category Promotion Discount Plugin
|
14 |
+
* @package Cybage
|
15 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
16 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Cybage_SalesRule_Model_Quote_Discount extends Mage_SalesRule_Model_Quote_Discount
|
22 |
+
{
|
23 |
+
public function getCustomDiscountRenderer()
|
24 |
+
{
|
25 |
+
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
26 |
+
if($quote->getCouponDiscount() || $quote->getPromotionalDiscount())
|
27 |
+
{
|
28 |
+
return true;
|
29 |
+
}
|
30 |
+
}
|
31 |
+
|
32 |
+
public function getDiscountTitle($title){
|
33 |
+
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
34 |
+
switch($title){
|
35 |
+
case "coupon":
|
36 |
+
$description = $quote->getCouponCode();
|
37 |
+
$title = Mage::helper('sales')->__('Coupon Discount (%s)', $description);
|
38 |
+
break;
|
39 |
+
case "promotional":
|
40 |
+
$title = $quote->getPromoLable();
|
41 |
+
break;
|
42 |
+
}
|
43 |
+
return $title;
|
44 |
+
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Add discount total information to address
|
48 |
+
*
|
49 |
+
* @param Mage_Sales_Model_Quote_Address $address
|
50 |
+
* @return Mage_SalesRule_Model_Quote_Discount
|
51 |
+
*/
|
52 |
+
public function fetch(Mage_Sales_Model_Quote_Address $address)
|
53 |
+
{
|
54 |
+
$amount = $address->getDiscountAmount();
|
55 |
+
$amountdiscount = $address->getCouponDiscount();
|
56 |
+
$amountpro = $address->getPromotionalDiscount();
|
57 |
+
|
58 |
+
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
59 |
+
if ($amount != 0) {
|
60 |
+
if($this->getCustomDiscountRenderer()) {
|
61 |
+
|
62 |
+
if($this->getDiscountTitle('promotional')) {
|
63 |
+
$address->addTotal(array(
|
64 |
+
'code' => $this->getCode(),
|
65 |
+
'title' => $address->getPromoLable(),
|
66 |
+
'value' => $amountpro
|
67 |
+
));
|
68 |
+
}
|
69 |
+
} else {
|
70 |
+
$description = $quote->getCouponCode();
|
71 |
+
if (strlen($description)) {
|
72 |
+
$title = Mage::helper('sales')->__('Discount (%s)', $description);
|
73 |
+
} else {
|
74 |
+
$title = Mage::helper('sales')->__('Discount');
|
75 |
+
}
|
76 |
+
$address->addTotal(array(
|
77 |
+
'code' => $this->getCode(),
|
78 |
+
'title' => $title,
|
79 |
+
'value' => $amount
|
80 |
+
));
|
81 |
+
}
|
82 |
+
}
|
83 |
+
return $this;
|
84 |
+
}
|
85 |
+
}
|
app/code/community/Cybage/SalesRule/etc/config.xml
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Cybage Promotion Discount Plugin
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* It is available on the World Wide Web at:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
12 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
13 |
+
*
|
14 |
+
* @category Promotion Discount Plugin
|
15 |
+
* @package Cybage
|
16 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
17 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<Cybage_SalesRule>
|
25 |
+
<version>1.6.0.0</version>
|
26 |
+
</Cybage_SalesRule>
|
27 |
+
</modules>
|
28 |
+
<global>
|
29 |
+
<models>
|
30 |
+
<salesrule>
|
31 |
+
<rewrite>
|
32 |
+
<quote_discount>Cybage_SalesRule_Model_Quote_Discount</quote_discount>
|
33 |
+
</rewrite>
|
34 |
+
</salesrule>
|
35 |
+
</models>
|
36 |
+
<sales>
|
37 |
+
<quote>
|
38 |
+
<totals>
|
39 |
+
<discount>
|
40 |
+
<class>Cybage_SalesRule_Model_Quote_Discount</class>
|
41 |
+
<after>subtotal,freeshipping,tax_subtotal</after>
|
42 |
+
<before>grand_total</before>
|
43 |
+
</discount>
|
44 |
+
</totals>
|
45 |
+
</quote>
|
46 |
+
</sales>
|
47 |
+
</global>
|
48 |
+
</config>
|
app/code/community/Cybage/Tax/Block/Checkout/Discount.php
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Cybage Promotion Discount Plugin
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* It is available on the World Wide Web at:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
11 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
12 |
+
*
|
13 |
+
* @category Promotion Discount Plugin
|
14 |
+
* @package Cybage
|
15 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
16 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Cybage_Tax_Block_Checkout_Discount extends Mage_Tax_Block_Checkout_Discount
|
22 |
+
{
|
23 |
+
//template changed to show bifurcated discounts for Extended checkout
|
24 |
+
protected $_template = 'cybage_tax/checkout/discount.phtml';
|
25 |
+
|
26 |
+
public function displayBoth()
|
27 |
+
{
|
28 |
+
return Mage::getSingleton('tax/config')->displayCartSubtotalBoth();
|
29 |
+
}
|
30 |
+
|
31 |
+
public function getCustomDiscountRenderer()
|
32 |
+
{
|
33 |
+
if($this->getQuote()->getCouponDiscount() || $this->getQuote()->getPromotionalDiscount())
|
34 |
+
{
|
35 |
+
return true;
|
36 |
+
}
|
37 |
+
}
|
38 |
+
public function getDiscountTitle($title){
|
39 |
+
switch($title){
|
40 |
+
case "coupon":
|
41 |
+
$description = $this->getQuote()->getCouponCode();
|
42 |
+
$title = Mage::helper('sales')->__('Coupon Discount (%s)', $description);
|
43 |
+
break;
|
44 |
+
case "promotional":
|
45 |
+
$title = $this->getQuote()->getPromoLable();
|
46 |
+
break;
|
47 |
+
}
|
48 |
+
return $title;
|
49 |
+
}
|
50 |
+
}
|
app/code/community/Cybage/Tax/etc/config.xml
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Cybage Promotion Discount Plugin
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* It is available on the World Wide Web at:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
12 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
13 |
+
*
|
14 |
+
* @category Promotion Discount Plugin
|
15 |
+
* @package Cybage
|
16 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
17 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<Cybage_Tax>
|
25 |
+
<version>1.6.0.0</version>
|
26 |
+
</Cybage_Tax>
|
27 |
+
</modules>
|
28 |
+
<global>
|
29 |
+
<blocks>
|
30 |
+
<tax>
|
31 |
+
<rewrite>
|
32 |
+
<checkout_discount>Cybage_Tax_Block_Checkout_Discount</checkout_discount>
|
33 |
+
</rewrite>
|
34 |
+
</tax>
|
35 |
+
</blocks>
|
36 |
+
</global>
|
37 |
+
</config>
|
app/code/community/Mage/Adminhtml/Block/Sales/Totals.php
ADDED
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Cybage Promotion Discount Plugin
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* It is available on the World Wide Web at:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
11 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
12 |
+
*
|
13 |
+
* @category Promotion Discount Plugin
|
14 |
+
* @package Cybage
|
15 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
16 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Mage_Adminhtml_Block_Sales_Totals extends Mage_Sales_Block_Order_Totals
|
22 |
+
{
|
23 |
+
/**
|
24 |
+
* Format total value based on order currency
|
25 |
+
*
|
26 |
+
* @param Varien_Object $total
|
27 |
+
* @return string
|
28 |
+
*/
|
29 |
+
public function formatValue($total)
|
30 |
+
{
|
31 |
+
if (!$total->getIsFormated()) {
|
32 |
+
return $this->helper('adminhtml/sales')->displayPrices(
|
33 |
+
$this->getOrder(),
|
34 |
+
$total->getBaseValue(),
|
35 |
+
$total->getValue()
|
36 |
+
);
|
37 |
+
}
|
38 |
+
return $total->getValue();
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Initialize order totals array
|
43 |
+
*
|
44 |
+
* @return Mage_Sales_Block_Order_Totals
|
45 |
+
*/
|
46 |
+
protected function _initTotals()
|
47 |
+
{
|
48 |
+
$this->_totals = array();
|
49 |
+
$this->_totals['subtotal'] = new Varien_Object(array(
|
50 |
+
'code' => 'subtotal',
|
51 |
+
'value' => $this->getSource()->getSubtotal(),
|
52 |
+
'base_value'=> $this->getSource()->getBaseSubtotal(),
|
53 |
+
'label' => $this->helper('sales')->__('Subtotal')
|
54 |
+
));
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Add shipping
|
58 |
+
*/
|
59 |
+
if (!$this->getSource()->getIsVirtual() && ((float) $this->getSource()->getShippingAmount() || $this->getSource()->getShippingDescription()))
|
60 |
+
{
|
61 |
+
$this->_totals['shipping'] = new Varien_Object(array(
|
62 |
+
'code' => 'shipping',
|
63 |
+
'value' => $this->getSource()->getShippingAmount(),
|
64 |
+
'base_value'=> $this->getSource()->getBaseShippingAmount(),
|
65 |
+
'label' => $this->helper('sales')->__('Shipping & Handling')
|
66 |
+
));
|
67 |
+
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Add discount
|
71 |
+
*/
|
72 |
+
if (((float)$this->getSource()->getDiscountAmount()) != 0) {
|
73 |
+
if ($this->getSource()->getDiscountDescription()) {
|
74 |
+
$discountLabel = $this->helper('sales')->__('Discount (%s)', $this->getSource()->getCouponCode());
|
75 |
+
} else {
|
76 |
+
$discountLabel = $this->helper('sales')->__('Discount');
|
77 |
+
}
|
78 |
+
$this->_totals['discount'] = new Varien_Object(array(
|
79 |
+
'code' => 'discount',
|
80 |
+
'value' => $this->getSource()->getDiscountAmount(),
|
81 |
+
'base_value'=> $this->getSource()->getBaseDiscountAmount(),
|
82 |
+
'label' => $discountLabel
|
83 |
+
));
|
84 |
+
}
|
85 |
+
|
86 |
+
/**
|
87 |
+
* Add Coupon discount
|
88 |
+
*/
|
89 |
+
if (((float)$this->getSource()->getCouponDiscount()) != 0) {
|
90 |
+
|
91 |
+
if ($this->getSource()->getCouponCode()) {
|
92 |
+
$discountLabel = $this->helper('sales')->__('Coupon Discount (%s)', $this->getSource()->getCouponCode());
|
93 |
+
} else {
|
94 |
+
$discountLabel = $this->helper('sales')->__('Coupon Discount');
|
95 |
+
}
|
96 |
+
$this->_totals['coupon_discount'] = new Varien_Object(array(
|
97 |
+
'code' => 'coupon_discount',
|
98 |
+
'value' => "-".$this->getSource()->getCouponDiscount(),
|
99 |
+
'base_value'=> "-".$this->getSource()->getCouponDiscount(),
|
100 |
+
'label' => $discountLabel
|
101 |
+
));
|
102 |
+
}
|
103 |
+
|
104 |
+
/**
|
105 |
+
* Add Promotional discount
|
106 |
+
*/
|
107 |
+
if (((float)$this->getSource()->getPromotionalDiscount()) != 0) {
|
108 |
+
|
109 |
+
if ($this->getSource()->getPromoLable()) {
|
110 |
+
$discountLabel = $this->getSource()->getPromoLable();
|
111 |
+
} else {
|
112 |
+
$discountLabel = $this->getSource()->getPromoLable();
|
113 |
+
}
|
114 |
+
$this->_totals['promotional_discount'] = new Varien_Object(array(
|
115 |
+
'code' => 'promotional_discount',
|
116 |
+
'value' => "-".$this->getSource()->getPromotionalDiscount(),
|
117 |
+
'base_value'=> "-".$this->getSource()->getPromotionalDiscount(),
|
118 |
+
'label' => $discountLabel
|
119 |
+
));
|
120 |
+
}
|
121 |
+
|
122 |
+
$this->_totals['grand_total'] = new Varien_Object(array(
|
123 |
+
'code' => 'grand_total',
|
124 |
+
'strong' => true,
|
125 |
+
'value' => $this->getSource()->getGrandTotal(),
|
126 |
+
'base_value'=> $this->getSource()->getBaseGrandTotal(),
|
127 |
+
'label' => $this->helper('sales')->__('Grand Total'),
|
128 |
+
'area' => 'footer'
|
129 |
+
));
|
130 |
+
|
131 |
+
return $this;
|
132 |
+
}
|
133 |
+
}
|
app/design/adminhtml/default/default/layout/cybage_sales.xml
ADDED
@@ -0,0 +1,1078 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Cybage Promotion Discount Plugin
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* It is available on the World Wide Web at:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
12 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
13 |
+
*
|
14 |
+
* @category Promotion Discount Plugin
|
15 |
+
* @package Cybage
|
16 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
17 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<layout>
|
23 |
+
<adminhtml_sales_order_grid>
|
24 |
+
<update handle="formkey"/>
|
25 |
+
<block type="adminhtml/sales_order_grid" name="sales_order.grid" output="toHtml"></block>
|
26 |
+
</adminhtml_sales_order_grid>
|
27 |
+
|
28 |
+
<adminhtml_sales_order_index>
|
29 |
+
<reference name="content">
|
30 |
+
<block type="adminhtml/sales_order" name="sales_order.grid.container"></block>
|
31 |
+
</reference>
|
32 |
+
</adminhtml_sales_order_index>
|
33 |
+
|
34 |
+
<adminhtml_sales_order_transactions>
|
35 |
+
<block type="adminhtml/sales_transactions_grid" name="sales_transactions.grid" output="toHtml"></block>
|
36 |
+
</adminhtml_sales_order_transactions>
|
37 |
+
|
38 |
+
<adminhtml_sales_billing_agreement_index>
|
39 |
+
<reference name="content">
|
40 |
+
<block type="sales/adminhtml_billing_agreement" name="sales.billing.agreement.grid.container"></block>
|
41 |
+
</reference>
|
42 |
+
</adminhtml_sales_billing_agreement_index>
|
43 |
+
|
44 |
+
<adminhtml_sales_billing_agreement_grid>
|
45 |
+
<block type="sales/adminhtml_billing_agreement_grid" name="sales.billing.agreement.grid" output="toHtml"></block>
|
46 |
+
</adminhtml_sales_billing_agreement_grid>
|
47 |
+
|
48 |
+
<adminhtml_sales_billing_agreement_view>
|
49 |
+
<reference name="content">
|
50 |
+
<block type="sales/adminhtml_billing_agreement_view" name="sales.billing.agreement.view"></block>
|
51 |
+
</reference>
|
52 |
+
<reference name="left">
|
53 |
+
<block type="sales/adminhtml_billing_agreement_view_tabs" name="sales.billing.agreement.tabs">
|
54 |
+
<action method="addTab"><name>billing_agreement_info</name><block>sales/adminhtml_billing_agreement_view_tab_info</block></action>
|
55 |
+
<action method="addTab"><name>billing_agreement_orders</name><block>sales/adminhtml_billing_agreement_view_tab_orders</block></action>
|
56 |
+
</block>
|
57 |
+
</reference>
|
58 |
+
</adminhtml_sales_billing_agreement_view>
|
59 |
+
|
60 |
+
<adminhtml_sales_billing_agreement_ordersgrid>
|
61 |
+
<block type="sales/adminhtml_billing_agreement_view_tab_orders" name="related.orders.grid" output="toHtml"></block>
|
62 |
+
</adminhtml_sales_billing_agreement_ordersgrid>
|
63 |
+
|
64 |
+
<adminhtml_sales_billing_agreement_customergrid>
|
65 |
+
<block type="sales/adminhtml_customer_edit_tab_agreement" name="customer.billing.agreement.grid" output="toHtml"></block>
|
66 |
+
</adminhtml_sales_billing_agreement_customergrid>
|
67 |
+
|
68 |
+
<adminhtml_sales_order_view>
|
69 |
+
<reference name="head">
|
70 |
+
<action method="addJs"><file>mage/adminhtml/giftmessage.js</file></action>
|
71 |
+
<action method="addJs"><file>mage/adminhtml/giftoptions/tooltip.js</file></action>
|
72 |
+
</reference>
|
73 |
+
<reference name="content">
|
74 |
+
<block type="adminhtml/sales_order_view" name="sales_order_edit"></block>
|
75 |
+
</reference>
|
76 |
+
<reference name="left">
|
77 |
+
<block type="adminhtml/sales_order_view_tabs" name="sales_order_tabs">
|
78 |
+
<block type="adminhtml/sales_order_view_tab_info" name="order_tab_info" template="sales/order/view/tab/info.phtml">
|
79 |
+
<block type="adminhtml/sales_order_view_messages" name="order_messages"></block>
|
80 |
+
<block type="adminhtml/sales_order_view_info" name="order_info" template="sales/order/view/info.phtml"></block>
|
81 |
+
<block type="adminhtml/sales_order_view_items" name="order_items" template="sales/order/view/items.phtml">
|
82 |
+
<action method="addItemRender"><type>default</type><block>adminhtml/sales_order_view_items_renderer_default</block><template>sales/order/view/items/renderer/default.phtml</template></action>
|
83 |
+
<action method="addColumnRender"><column>qty</column><block>adminhtml/sales_items_column_qty</block><template>sales/items/column/qty.phtml</template></action>
|
84 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name</block><template>sales/items/column/name.phtml</template></action>
|
85 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name_grouped</block><template>sales/items/column/name.phtml</template><type>grouped</type></action>
|
86 |
+
<block type="core/text_list" name="order_item_extra_info" />
|
87 |
+
</block>
|
88 |
+
<block type="adminhtml/sales_order_payment" name="order_payment"/>
|
89 |
+
<block type="adminhtml/sales_order_view_history" name="order_history" template="sales/order/view/history.phtml"></block>
|
90 |
+
<block type="adminhtml/template" name="gift_options" template="sales/order/giftoptions.phtml">
|
91 |
+
<block type="adminhtml/sales_order_view_giftmessage" name="order_giftmessage" template="sales/order/view/giftmessage.phtml"></block>
|
92 |
+
</block>
|
93 |
+
<block type="adminhtml/sales_order_totals" name="order_totals" template="cybage/sales/order/totals.phtml">
|
94 |
+
<!-- Added for the coupon display in admin EC-->
|
95 |
+
<block type="adminhtml/sales_order_totals_item" name="discount" template="cybage/sales/order/totals/discount.phtml" />
|
96 |
+
<block type="adminhtml/sales_order_totals_tax" name="tax" template="sales/order/totals/tax.phtml" />
|
97 |
+
<!--<block type="adminhtml/sales_order_totals_item" name="footer" template="sales/order/totals/footer.phtml">
|
98 |
+
<block type="adminhtml/sales_order_totals_item" name="grand" template="sales/order/totals/grand.phtml" />
|
99 |
+
<block type="adminhtml/sales_order_totals_item" name="paid" template="sales/order/totals/paid.phtml" />
|
100 |
+
<block type="adminhtml/sales_order_totals_item" name="refunded" template="sales/order/totals/refunded.phtml" />
|
101 |
+
<block type="adminhtml/sales_order_totals_item" name="due" template="sales/order/totals/due.phtml" />
|
102 |
+
</block>
|
103 |
+
<block type="adminhtml/sales_order_totals_item" name="sales.order.view.totals.main" as="main" template="sales/order/totals/main.phtml">
|
104 |
+
<block type="adminhtml/sales_order_totals_subtotal" name="subtotal" template="sales/order/totals/subtotal.phtml" />
|
105 |
+
<block type="adminhtml/sales_order_totals_tax" name="tax" template="sales/order/totals/tax.phtml" />
|
106 |
+
<block type="adminhtml/sales_order_totals_item" name="shipping" template="sales/order/totals/shipping.phtml" />
|
107 |
+
<block type="adminhtml/sales_order_totals_item" name="discount" template="sales/order/totals/discount.phtml" />
|
108 |
+
<block type="adminhtml/sales_order_totals_item" name="giftcert" template="sales/order/totals/item.phtml">
|
109 |
+
<action method="setSourceField"><value>giftcert_amount</value></action>
|
110 |
+
<action method="setLabel"><value>Gift Certificate</value></action>
|
111 |
+
</block>
|
112 |
+
<block type="adminhtml/sales_order_totals_item" name="adjustment_positive" template="sales/order/totals/item.phtml">
|
113 |
+
<action method="setSourceField"><value>adjustment_positive</value></action>
|
114 |
+
<action method="setLabel"><value>Adjustment Refund</value></action>
|
115 |
+
</block>
|
116 |
+
<block type="adminhtml/sales_order_totals_item" name="adjustment_negative" template="sales/order/totals/item.phtml">
|
117 |
+
<action method="setSourceField"><value>adjustment_negative</value></action>
|
118 |
+
<action method="setLabel"><value>Adjustment Fee</value></action>
|
119 |
+
</block>
|
120 |
+
</block>-->
|
121 |
+
</block>
|
122 |
+
</block>
|
123 |
+
<action method="addTab"><name>order_info</name><block>order_tab_info</block></action>
|
124 |
+
<action method="addTab"><name>order_invoices</name><block>adminhtml/sales_order_view_tab_invoices</block></action>
|
125 |
+
<action method="addTab"><name>order_creditmemos</name><block>adminhtml/sales_order_view_tab_creditmemos</block></action>
|
126 |
+
<action method="addTab"><name>order_shipments</name><block>adminhtml/sales_order_view_tab_shipments</block></action>
|
127 |
+
<action method="addTab"><name>order_history</name><block>adminhtml/sales_order_view_tab_history</block></action>
|
128 |
+
<action method="addTab"><name>order_transactions</name><block>adminhtml/sales_order_view_tab_transactions</block></action>
|
129 |
+
</block>
|
130 |
+
</reference>
|
131 |
+
</adminhtml_sales_order_view>
|
132 |
+
|
133 |
+
<adminhtml_sales_order_addcomment>
|
134 |
+
<block type="adminhtml/sales_order_view_history" name="order_history" template="sales/order/view/history.phtml" output="toHtml"/>
|
135 |
+
</adminhtml_sales_order_addcomment>
|
136 |
+
|
137 |
+
<adminhtml_sales_order_invoice_new>
|
138 |
+
<reference name="content">
|
139 |
+
<block type="adminhtml/sales_order_invoice_create" name="sales_invoice_create">
|
140 |
+
<block type="adminhtml/sales_order_invoice_create_form" name="form" template="sales/order/invoice/create/form.phtml">
|
141 |
+
<block type="adminhtml/sales_order_view_info" name="order_info" template="sales/order/view/info.phtml"></block>
|
142 |
+
<block type="adminhtml/sales_order_payment" name="order_payment"></block>
|
143 |
+
<block type="adminhtml/sales_order_invoice_create_items" name="order_items" template="sales/order/invoice/create/items.phtml">
|
144 |
+
<action method="addItemRender"><type>default</type><block>adminhtml/sales_items_renderer_default</block><template>sales/order/invoice/create/items/renderer/default.phtml</template></action>
|
145 |
+
<action method="addColumnRender"><column>qty</column><block>adminhtml/sales_items_column_qty</block><template>sales/items/column/qty.phtml</template></action>
|
146 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name</block><template>sales/items/column/name.phtml</template></action>
|
147 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name_grouped</block><template>sales/items/column/name.phtml</template><type>grouped</type></action>
|
148 |
+
<block type="core/text_list" name="order_item_extra_info"></block>
|
149 |
+
<block type="adminhtml/sales_order_totalbar" name="order_totalbar" template="sales/order/totalbar.phtml"></block>
|
150 |
+
|
151 |
+
<block type="adminhtml/sales_order_invoice_totals" name="invoice_totals" template="cybage/sales/order/totals.phtml">
|
152 |
+
<block type="adminhtml/sales_order_totals_item" name="invoice_discount" template="cybage/sales/order/totals/discount.phtml" />
|
153 |
+
<block type="adminhtml/sales_order_totals_tax" name="tax" template="sales/order/totals/tax.phtml" />
|
154 |
+
<!--<block type="adminhtml/sales_order_totals_item" name="footer" template="sales/order/totals/footer.phtml">
|
155 |
+
<block type="adminhtml/sales_order_totals_item" name="grand" template="sales/order/totals/grand.phtml" />
|
156 |
+
<block type="adminhtml/sales_order_totals_item" name="paid" template="sales/order/totals/paid.phtml" />
|
157 |
+
<block type="adminhtml/sales_order_totals_item" name="refunded" template="sales/order/totals/refunded.phtml" />
|
158 |
+
<block type="adminhtml/sales_order_totals_item" name="due" template="sales/order/totals/due.phtml" />
|
159 |
+
</block>
|
160 |
+
<block type="adminhtml/sales_order_totals_item" name="sales.order.view.totals.main" as="main" template="sales/order/totals/main.phtml">
|
161 |
+
<block type="adminhtml/sales_order_totals_subtotal" name="subtotal" template="sales/order/totals/subtotal.phtml" />
|
162 |
+
<block type="adminhtml/sales_order_totals_item" name="tax" template="sales/order/totals/item.phtml">
|
163 |
+
<action method="setSourceField"><value>tax_amount</value></action>
|
164 |
+
<action method="setLabel"><value>Tax</value></action>
|
165 |
+
</block>
|
166 |
+
<block type="adminhtml/sales_order_totals_item" name="shipping" template="sales/order/totals/shipping.phtml" />
|
167 |
+
<block type="adminhtml/sales_order_totals_item" name="discount" template="sales/order/totals/discount.phtml" />
|
168 |
+
<block type="adminhtml/sales_order_totals_item" name="giftcert" template="sales/order/totals/item.phtml">
|
169 |
+
<action method="setSourceField"><value>giftcert_amount</value></action>
|
170 |
+
<action method="setLabel"><value>Gift Certificate</value></action>
|
171 |
+
</block>
|
172 |
+
<block type="adminhtml/sales_order_totals_item" name="adjustment_positive" template="sales/order/totals/item.phtml">
|
173 |
+
<action method="setSourceField"><value>adjustment_positive</value></action>
|
174 |
+
<action method="setLabel"><value>Adjustment Refund</value></action>
|
175 |
+
</block>
|
176 |
+
<block type="adminhtml/sales_order_totals_item" name="adjustment_negative" template="sales/order/totals/item.phtml">
|
177 |
+
<action method="setSourceField"><value>adjustment_negative</value></action>
|
178 |
+
<action method="setLabel"><value>Adjustment Fee</value></action>
|
179 |
+
</block>
|
180 |
+
</block>-->
|
181 |
+
</block>
|
182 |
+
</block>
|
183 |
+
</block>
|
184 |
+
</block>
|
185 |
+
</reference>
|
186 |
+
</adminhtml_sales_order_invoice_new>
|
187 |
+
|
188 |
+
<adminhtml_sales_order_invoice_updateqty>
|
189 |
+
<block type="adminhtml/sales_order_invoice_create_items" name="order_items" template="sales/order/invoice/create/items.phtml">
|
190 |
+
<action method="addItemRender"><type>default</type><block>adminhtml/sales_items_renderer_default</block><template>sales/order/invoice/create/items/renderer/default.phtml</template></action>
|
191 |
+
<action method="addColumnRender"><column>qty</column><block>adminhtml/sales_items_column_qty</block><template>sales/items/column/qty.phtml</template></action>
|
192 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name</block><template>sales/items/column/name.phtml</template></action>
|
193 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name_grouped</block><template>sales/items/column/name.phtml</template><type>grouped</type></action>
|
194 |
+
<block type="core/text_list" name="order_item_extra_info"></block>
|
195 |
+
<block type="adminhtml/sales_order_totalbar" name="order_totalbar" template="sales/order/totalbar.phtml"></block>
|
196 |
+
<block type="adminhtml/sales_order_invoice_totals" name="invoice_totals" template="cybage/sales/order/totals.phtml">
|
197 |
+
<block type="adminhtml/sales_order_totals_tax" name="tax" template="sales/order/totals/tax.phtml" />
|
198 |
+
<!--<block type="adminhtml/sales_order_totals_item" name="footer" template="sales/order/totals/footer.phtml">
|
199 |
+
<block type="adminhtml/sales_order_totals_item" name="grand" template="sales/order/totals/grand.phtml" />
|
200 |
+
<block type="adminhtml/sales_order_totals_item" name="paid" template="sales/order/totals/paid.phtml" />
|
201 |
+
<block type="adminhtml/sales_order_totals_item" name="refunded" template="sales/order/totals/refunded.phtml" />
|
202 |
+
<block type="adminhtml/sales_order_totals_item" name="due" template="sales/order/totals/due.phtml" />
|
203 |
+
</block>
|
204 |
+
<block type="adminhtml/sales_order_totals_item" name="sales.order.view.totals.main" as="main" template="sales/order/totals/main.phtml">
|
205 |
+
<block type="adminhtml/sales_order_totals_subtotal" name="subtotal" template="sales/order/totals/subtotal.phtml" />
|
206 |
+
<block type="adminhtml/sales_order_totals_item" name="tax" template="sales/order/totals/item.phtml">
|
207 |
+
<action method="setSourceField"><value>tax_amount</value></action>
|
208 |
+
<action method="setLabel"><value>Tax</value></action>
|
209 |
+
</block>
|
210 |
+
<block type="adminhtml/sales_order_totals_item" name="shipping" template="sales/order/totals/shipping.phtml" />
|
211 |
+
<block type="adminhtml/sales_order_totals_item" name="discount" template="sales/order/totals/discount.phtml" />
|
212 |
+
<block type="adminhtml/sales_order_totals_item" name="giftcert" template="sales/order/totals/item.phtml">
|
213 |
+
<action method="setSourceField"><value>giftcert_amount</value></action>
|
214 |
+
<action method="setLabel"><value>Gift Certificate</value></action>
|
215 |
+
</block>
|
216 |
+
<block type="adminhtml/sales_order_totals_item" name="adjustment_positive" template="sales/order/totals/item.phtml">
|
217 |
+
<action method="setSourceField"><value>adjustment_positive</value></action>
|
218 |
+
<action method="setLabel"><value>Adjustment Refund</value></action>
|
219 |
+
</block>
|
220 |
+
<block type="adminhtml/sales_order_totals_item" name="adjustment_negative" template="sales/order/totals/item.phtml">
|
221 |
+
<action method="setSourceField"><value>adjustment_negative</value></action>
|
222 |
+
<action method="setLabel"><value>Adjustment Fee</value></action>
|
223 |
+
</block>
|
224 |
+
</block>-->
|
225 |
+
</block>
|
226 |
+
</block>
|
227 |
+
</adminhtml_sales_order_invoice_updateqty>
|
228 |
+
|
229 |
+
<adminhtml_sales_order_invoice_addcomment>
|
230 |
+
<block type="adminhtml/sales_order_invoice_view_comments" name="invoice_comments">
|
231 |
+
<block type="adminhtml/sales_order_comments_view" name="order_comments" template="sales/order/comments/view.phtml"></block>
|
232 |
+
</block>
|
233 |
+
</adminhtml_sales_order_invoice_addcomment>
|
234 |
+
|
235 |
+
<adminhtml_sales_order_invoice_view>
|
236 |
+
<reference name="content">
|
237 |
+
<block type="adminhtml/sales_order_invoice_view" name="sales_invoice_view">
|
238 |
+
<block type="adminhtml/sales_order_invoice_view_form" name="form" template="sales/order/invoice/view/form.phtml">
|
239 |
+
<block type="adminhtml/sales_order_view_info" name="order_info" template="sales/order/view/info.phtml"></block>
|
240 |
+
<block type="adminhtml/sales_order_payment" name="order_payment"></block>
|
241 |
+
|
242 |
+
<block type="adminhtml/sales_order_invoice_view_items" name="invoice_items" template="sales/order/invoice/view/items.phtml">
|
243 |
+
<action method="addItemRender"><type>default</type><block>adminhtml/sales_items_renderer_default</block><template>sales/order/invoice/view/items/renderer/default.phtml</template></action>
|
244 |
+
<action method="addColumnRender"><column>qty</column><block>adminhtml/sales_items_column_qty</block><template>sales/items/column/qty.phtml</template></action>
|
245 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name</block><template>sales/items/column/name.phtml</template></action>
|
246 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name_grouped</block><template>sales/items/column/name.phtml</template><type>grouped</type></action>
|
247 |
+
<block type="core/text_list" name="order_item_extra_info"></block>
|
248 |
+
</block>
|
249 |
+
<block type="adminhtml/sales_order_comments_view" name="order_comments" template="sales/order/comments/view.phtml">
|
250 |
+
<action method="setParentType"><type>invoice</type></action>
|
251 |
+
</block>
|
252 |
+
<block type="adminhtml/sales_order_invoice_totals" name="invoice_totals" template="cybage/sales/order/totals.phtml">
|
253 |
+
<block type="adminhtml/sales_order_totals_item" name="invoice_discount" template="cybage/sales/order/totals/discount.phtml" />
|
254 |
+
<block type="adminhtml/sales_order_totals_tax" name="tax" template="sales/order/totals/tax.phtml" />
|
255 |
+
<!--<block type="adminhtml/sales_order_totals_item" name="footer" template="sales/order/totals/footer.phtml">
|
256 |
+
<block type="adminhtml/sales_order_totals_item" name="grand" template="sales/order/totals/grand.phtml" />
|
257 |
+
<block type="adminhtml/sales_order_totals_item" name="paid" template="sales/order/totals/paid.phtml" />
|
258 |
+
<block type="adminhtml/sales_order_totals_item" name="refunded" template="sales/order/totals/refunded.phtml" />
|
259 |
+
<block type="adminhtml/sales_order_totals_item" name="due" template="sales/order/totals/due.phtml" />
|
260 |
+
</block>
|
261 |
+
<block type="adminhtml/sales_order_totals_item" name="sales.order.view.totals.main" as="main" template="sales/order/totals/main.phtml">
|
262 |
+
<block type="adminhtml/sales_order_totals_subtotal" name="subtotal" template="sales/order/totals/subtotal.phtml" />
|
263 |
+
<block type="adminhtml/sales_order_totals_item" name="tax" template="sales/order/totals/item.phtml">
|
264 |
+
<action method="setSourceField"><value>tax_amount</value></action>
|
265 |
+
<action method="setLabel"><value>Tax</value></action>
|
266 |
+
</block>
|
267 |
+
<block type="adminhtml/sales_order_totals_item" name="shipping" template="sales/order/totals/shipping.phtml" />
|
268 |
+
<block type="adminhtml/sales_order_totals_item" name="discount" template="sales/order/totals/discount.phtml" />
|
269 |
+
<block type="adminhtml/sales_order_totals_item" name="giftcert" template="sales/order/totals/item.phtml">
|
270 |
+
<action method="setSourceField"><value>giftcert_amount</value></action>
|
271 |
+
<action method="setLabel"><value>Gift Certificate</value></action>
|
272 |
+
</block>
|
273 |
+
<block type="adminhtml/sales_order_totals_item" name="adjustment_positive" template="sales/order/totals/item.phtml">
|
274 |
+
<action method="setSourceField"><value>adjustment_positive</value></action>
|
275 |
+
<action method="setLabel"><value>Adjustment Refund</value></action>
|
276 |
+
</block>
|
277 |
+
<block type="adminhtml/sales_order_totals_item" name="adjustment_negative" template="sales/order/totals/item.phtml">
|
278 |
+
<action method="setSourceField"><value>adjustment_negative</value></action>
|
279 |
+
<action method="setLabel"><value>Adjustment Fee</value></action>
|
280 |
+
</block>
|
281 |
+
</block>-->
|
282 |
+
</block>
|
283 |
+
</block>
|
284 |
+
</block>
|
285 |
+
</reference>
|
286 |
+
</adminhtml_sales_order_invoice_view>
|
287 |
+
|
288 |
+
<adminhtml_sales_order_shipment_new>
|
289 |
+
<reference name="head">
|
290 |
+
<action method="addJs"><file>mage/adminhtml/sales/packaging.js</file></action>
|
291 |
+
</reference>
|
292 |
+
<reference name="content">
|
293 |
+
<block type="adminhtml/sales_order_shipment_create" name="sales_shipment_create">
|
294 |
+
<block type="adminhtml/sales_order_shipment_create_form" name="form" template="sales/order/shipment/create/form.phtml">
|
295 |
+
<block type="adminhtml/sales_order_view_info" name="order_info" template="sales/order/view/info.phtml"></block>
|
296 |
+
<block type="adminhtml/sales_order_payment" name="order_payment"></block>
|
297 |
+
<block type="adminhtml/sales_order_shipment_create_tracking" name="shipment_tracking" template="sales/order/shipment/create/tracking.phtml"></block>
|
298 |
+
<block type="adminhtml/sales_order_shipment_create_items" name="order_items" template="sales/order/shipment/create/items.phtml">
|
299 |
+
<action method="addItemRender"><type>default</type><block>adminhtml/sales_items_renderer_default</block><template>sales/order/shipment/create/items/renderer/default.phtml</template></action>
|
300 |
+
<action method="addColumnRender"><column>qty</column><block>adminhtml/sales_items_column_qty</block><template>sales/items/column/qty.phtml</template></action>
|
301 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name</block><template>sales/items/column/name.phtml</template></action>
|
302 |
+
<block type="core/text_list" name="order_item_extra_info"></block>
|
303 |
+
</block>
|
304 |
+
<block type="adminhtml/sales_order_shipment_packaging" name="shipment_packaging" template="sales/order/shipment/packaging/popup.phtml" />
|
305 |
+
</block>
|
306 |
+
</block>
|
307 |
+
</reference>
|
308 |
+
</adminhtml_sales_order_shipment_new>
|
309 |
+
|
310 |
+
<adminhtml_sales_order_shipment_addtrack>
|
311 |
+
<block type="adminhtml/sales_order_shipment_view_tracking" name="shipment_tracking" template="sales/order/shipment/view/tracking.phtml"></block>
|
312 |
+
</adminhtml_sales_order_shipment_addtrack>
|
313 |
+
|
314 |
+
<adminhtml_sales_order_shipment_removetrack>
|
315 |
+
<block type="adminhtml/sales_order_shipment_view_tracking" name="shipment_tracking" template="sales/order/shipment/view/tracking.phtml"></block>
|
316 |
+
</adminhtml_sales_order_shipment_removetrack>
|
317 |
+
|
318 |
+
<adminhtml_sales_order_shipment_addcomment>
|
319 |
+
<block type="adminhtml/sales_order_shipment_view_comments" name="shipment_comments">
|
320 |
+
<block type="adminhtml/sales_order_comments_view" name="order_comments" template="sales/order/comments/view.phtml"></block>
|
321 |
+
</block>
|
322 |
+
</adminhtml_sales_order_shipment_addcomment>
|
323 |
+
|
324 |
+
<adminhtml_sales_order_shipment_view>
|
325 |
+
<reference name="head">
|
326 |
+
<action method="addJs"><file>mage/adminhtml/sales/packaging.js</file></action>
|
327 |
+
</reference>
|
328 |
+
<reference name="content">
|
329 |
+
<block type="adminhtml/sales_order_shipment_view" name="sales_shipment_view">
|
330 |
+
<block type="adminhtml/sales_order_shipment_view_form" name="form" template="sales/order/shipment/view/form.phtml">
|
331 |
+
<block type="adminhtml/sales_order_view_info" name="order_info" template="sales/order/view/info.phtml"></block>
|
332 |
+
<block type="adminhtml/sales_order_payment" name="order_payment"></block>
|
333 |
+
<block type="adminhtml/sales_order_shipment_view_tracking" name="shipment_tracking" template="sales/order/shipment/view/tracking.phtml"></block>
|
334 |
+
<block type="adminhtml/sales_order_shipment_view_items" name="shipment_items" template="sales/order/shipment/view/items.phtml">
|
335 |
+
<action method="addItemRender"><type>default</type><block>adminhtml/sales_items_renderer_default</block><template>sales/order/shipment/view/items/renderer/default.phtml</template></action>
|
336 |
+
<action method="addColumnRender"><column>qty</column><block>adminhtml/sales_items_column_qty</block><template>sales/items/column/qty.phtml</template></action>
|
337 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name</block><template>sales/items/column/name.phtml</template></action>
|
338 |
+
<block type="core/text_list" name="order_item_extra_info"></block>
|
339 |
+
</block>
|
340 |
+
<block type="adminhtml/sales_order_invoice_create_tracking" name="invoice_tracking" template="sales/order/shipment/create/tracking.phtml"></block>
|
341 |
+
<block type="adminhtml/sales_order_comments_view" name="order_comments" template="sales/order/comments/view.phtml">
|
342 |
+
<action method="setParentType"><type>shipment</type></action>
|
343 |
+
</block>
|
344 |
+
<block type="adminhtml/sales_order_shipment_packaging" name="shipment_packaging" template="sales/order/shipment/packaging/popup.phtml" />
|
345 |
+
<block type="adminhtml/sales_order_shipment_packaging" name="shipment_packed" template="sales/order/shipment/packaging/packed.phtml"/>
|
346 |
+
</block>
|
347 |
+
</block>
|
348 |
+
</reference>
|
349 |
+
</adminhtml_sales_order_shipment_view>
|
350 |
+
|
351 |
+
<adminhtml_sales_order_creditmemo_new>
|
352 |
+
<reference name="content">
|
353 |
+
<block type="adminhtml/sales_order_creditmemo_create" name="sales_creditmemo_create">
|
354 |
+
<block type="adminhtml/sales_order_creditmemo_create_form" name="form" template="sales/order/creditmemo/create/form.phtml">
|
355 |
+
<block type="adminhtml/sales_order_view_info" name="order_info" template="sales/order/view/info.phtml"></block>
|
356 |
+
<block type="adminhtml/sales_order_payment" name="order_payment"></block>
|
357 |
+
<block type="adminhtml/sales_order_creditmemo_create_items" name="order_items" template="sales/order/creditmemo/create/items.phtml">
|
358 |
+
<action method="addItemRender"><type>default</type><block>adminhtml/sales_items_renderer_default</block><template>sales/order/creditmemo/create/items/renderer/default.phtml</template></action>
|
359 |
+
<action method="addColumnRender"><column>qty</column><block>adminhtml/sales_items_column_qty</block><template>sales/items/column/qty.phtml</template></action>
|
360 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name</block><template>sales/items/column/name.phtml</template></action>
|
361 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name_grouped</block><template>sales/items/column/name.phtml</template><type>grouped</type></action>
|
362 |
+
<block type="core/text_list" name="order_item_extra_info"></block>
|
363 |
+
<block type="adminhtml/sales_order_totalbar" name="order_totalbar" template="sales/order/totalbar.phtml"></block>
|
364 |
+
|
365 |
+
<block type="adminhtml/sales_order_creditmemo_totals" name="creditmemo_totals" template="cybage/sales/order/totals.phtml">
|
366 |
+
<block type="adminhtml/sales_order_creditmemo_create_adjustments" name="adjustments" template="sales/order/creditmemo/create/totals/adjustments.phtml" />
|
367 |
+
<block type="adminhtml/sales_order_totals_tax" name="tax" template="sales/order/totals/tax.phtml" />
|
368 |
+
<!--<block type="adminhtml/sales_order_totals_item" name="footer" template="sales/order/totals/footer.phtml">
|
369 |
+
<block type="adminhtml/sales_order_totals_item" name="grand" template="sales/order/totals/grand.phtml">
|
370 |
+
<action method="setGrandTotalTitle"><title>Total Refund</title></action>
|
371 |
+
</block>
|
372 |
+
</block>
|
373 |
+
<block type="adminhtml/sales_order_totals_item" name="sales.order.view.totals.main" as="main" template="sales/order/totals/main.phtml">
|
374 |
+
<block type="adminhtml/sales_order_totals_subtotal" name="subtotal" template="sales/order/totals/subtotal.phtml" />
|
375 |
+
<block type="adminhtml/sales_order_totals_item" name="tax" template="sales/order/totals/item.phtml">
|
376 |
+
<action method="setSourceField"><value>tax_amount</value></action>
|
377 |
+
<action method="setLabel"><value>Tax</value></action>
|
378 |
+
</block>
|
379 |
+
<block type="adminhtml/sales_order_totals_item" name="discount" template="sales/order/totals/item.phtml">
|
380 |
+
<action method="setSourceField"><value>discount_amount</value></action>
|
381 |
+
<action method="setLabel"><value>Discount</value></action>
|
382 |
+
</block>
|
383 |
+
<block type="adminhtml/sales_order_totals_item" name="adjustments" template="sales/order/creditmemo/create/totals/adjustments.phtml" />
|
384 |
+
</block>-->
|
385 |
+
</block>
|
386 |
+
<block type="core/text_list" name="submit_before" />
|
387 |
+
<block type="core/text_list" name="submit_after" />
|
388 |
+
</block>
|
389 |
+
</block>
|
390 |
+
</block>
|
391 |
+
</reference>
|
392 |
+
</adminhtml_sales_order_creditmemo_new>
|
393 |
+
|
394 |
+
<adminhtml_sales_order_creditmemo_updateqty>
|
395 |
+
<block type="adminhtml/sales_order_creditmemo_create_items" name="order_items" template="sales/order/creditmemo/create/items.phtml">
|
396 |
+
<action method="addItemRender"><type>default</type><block>adminhtml/sales_items_renderer_default</block><template>sales/order/creditmemo/create/items/renderer/default.phtml</template></action>
|
397 |
+
<action method="addColumnRender"><column>qty</column><block>adminhtml/sales_items_column_qty</block><template>sales/items/column/qty.phtml</template></action>
|
398 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name</block><template>sales/items/column/name.phtml</template></action>
|
399 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name_grouped</block><template>sales/items/column/name.phtml</template><type>grouped</type></action>
|
400 |
+
<block type="core/text_list" name="order_item_extra_info"></block>
|
401 |
+
<block type="adminhtml/sales_order_totalbar" name="order_totalbar" template="sales/order/totalbar.phtml"></block>
|
402 |
+
|
403 |
+
<block type="adminhtml/sales_order_creditmemo_totals" name="creditmemo_totals" template="cybage/sales/order/totals.phtml">
|
404 |
+
<block type="adminhtml/sales_order_totals_item" name="creditmemo_discount" template="cybage/sales/order/totals/discount.phtml" />
|
405 |
+
<block type="adminhtml/sales_order_creditmemo_create_adjustments" name="adjustments" template="sales/order/creditmemo/create/totals/adjustments.phtml" />
|
406 |
+
<block type="adminhtml/sales_order_totals_tax" name="tax" template="sales/order/totals/tax.phtml" />
|
407 |
+
<!--<block type="adminhtml/sales_order_totals" name="order_totals" template="sales/order/totals.phtml">
|
408 |
+
<block type="adminhtml/sales_order_totals_item" name="footer" template="sales/order/totals/footer.phtml">
|
409 |
+
<block type="adminhtml/sales_order_totals_item" name="grand" template="sales/order/totals/grand.phtml">
|
410 |
+
<action method="setGrandTotalTitle"><title>Total Refund</title></action>
|
411 |
+
</block>
|
412 |
+
</block>
|
413 |
+
<block type="adminhtml/sales_order_totals_item" name="sales.order.view.totals.main" as="main" template="sales/order/totals/main.phtml">
|
414 |
+
<block type="adminhtml/sales_order_totals_subtotal" name="subtotal" template="sales/order/totals/subtotal.phtml" />
|
415 |
+
<block type="adminhtml/sales_order_totals_item" name="tax" template="sales/order/totals/item.phtml">
|
416 |
+
<action method="setSourceField"><value>tax_amount</value></action>
|
417 |
+
<action method="setLabel"><value>Tax</value></action>
|
418 |
+
</block>
|
419 |
+
<block type="adminhtml/sales_order_totals_item" name="discount" template="sales/order/totals/item.phtml">
|
420 |
+
<action method="setSourceField"><value>discount_amount</value></action>
|
421 |
+
<action method="setLabel"><value>Discount</value></action>
|
422 |
+
</block>
|
423 |
+
<block type="adminhtml/sales_order_totals_item" name="adjustments" template="sales/order/creditmemo/create/totals/adjustments.phtml" />
|
424 |
+
</block>-->
|
425 |
+
</block>
|
426 |
+
|
427 |
+
<block type="core/text_list" name="submit_before" />
|
428 |
+
<block type="core/text_list" name="submit_after" />
|
429 |
+
</block>
|
430 |
+
</adminhtml_sales_order_creditmemo_updateqty>
|
431 |
+
|
432 |
+
<adminhtml_sales_order_creditmemo_addcomment>
|
433 |
+
<block type="adminhtml/sales_order_creditmemo_view_comments" name="creditmemo_comments">
|
434 |
+
<block type="adminhtml/sales_order_comments_view" name="order_comments" template="sales/order/comments/view.phtml"></block>
|
435 |
+
</block>
|
436 |
+
</adminhtml_sales_order_creditmemo_addcomment>
|
437 |
+
|
438 |
+
<adminhtml_sales_order_creditmemo_view>
|
439 |
+
<reference name="content">
|
440 |
+
<block type="adminhtml/sales_order_creditmemo_view" name="sales_creditmemo_view">
|
441 |
+
<block type="adminhtml/sales_order_creditmemo_view_form" name="form" template="sales/order/creditmemo/view/form.phtml">
|
442 |
+
<block type="adminhtml/sales_order_view_info" name="order_info" template="sales/order/view/info.phtml"></block>
|
443 |
+
<block type="adminhtml/sales_order_payment" name="order_payment"></block>
|
444 |
+
<block type="adminhtml/sales_order_creditmemo_view_items" name="creditmemo_items" template="sales/order/creditmemo/view/items.phtml">
|
445 |
+
<action method="addItemRender"><type>default</type><block>adminhtml/sales_items_renderer_default</block><template>sales/order/creditmemo/view/items/renderer/default.phtml</template></action>
|
446 |
+
<action method="addColumnRender"><column>qty</column><block>adminhtml/sales_items_column_qty</block><template>sales/items/column/qty.phtml</template></action>
|
447 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name</block><template>sales/items/column/name.phtml</template></action>
|
448 |
+
<action method="addColumnRender"><column>name</column><block>adminhtml/sales_items_column_name_grouped</block><template>sales/items/column/name.phtml</template><type>grouped</type></action>
|
449 |
+
<block type="core/text_list" name="order_item_extra_info"></block>
|
450 |
+
</block>
|
451 |
+
<block type="adminhtml/sales_order_comments_view" name="order_comments" template="sales/order/comments/view.phtml">
|
452 |
+
<action method="setParentType"><type>creditmemo</type></action>
|
453 |
+
</block>
|
454 |
+
|
455 |
+
<block type="adminhtml/sales_order_creditmemo_totals" name="creditmemo_totals" template="cybage/sales/order/totals.phtml">
|
456 |
+
<block type="adminhtml/sales_order_totals_tax" name="tax" template="sales/order/totals/tax.phtml" />
|
457 |
+
<!--<block type="adminhtml/sales_order_totals_item" name="footer" template="sales/order/totals/footer.phtml">
|
458 |
+
<block type="adminhtml/sales_order_totals_item" name="grand" template="sales/order/totals/grand.phtml" />
|
459 |
+
<block type="adminhtml/sales_order_totals_item" name="paid" template="sales/order/totals/paid.phtml" />
|
460 |
+
<block type="adminhtml/sales_order_totals_item" name="refunded" template="sales/order/totals/refunded.phtml" />
|
461 |
+
<block type="adminhtml/sales_order_totals_item" name="due" template="sales/order/totals/due.phtml" />
|
462 |
+
</block>
|
463 |
+
<block type="adminhtml/sales_order_totals_item" name="sales.order.view.totals.main" as="main" template="sales/order/totals/main.phtml">
|
464 |
+
<block type="adminhtml/sales_order_totals_subtotal" name="subtotal" template="sales/order/totals/subtotal.phtml" />
|
465 |
+
<block type="adminhtml/sales_order_totals_tax" name="tax" template="sales/order/totals/tax.phtml" />
|
466 |
+
<block type="adminhtml/sales_order_totals_item" name="shipping" template="sales/order/totals/shipping.phtml" />
|
467 |
+
<block type="adminhtml/sales_order_totals_item" name="discount" template="sales/order/totals/discount.phtml" />
|
468 |
+
<block type="adminhtml/sales_order_totals_item" name="giftcert" template="sales/order/totals/item.phtml">
|
469 |
+
<action method="setSourceField"><value>giftcert_amount</value></action>
|
470 |
+
<action method="setLabel"><value>Gift Certificate</value></action>
|
471 |
+
</block>
|
472 |
+
<block type="adminhtml/sales_order_totals_item" name="adjustment_positive" template="sales/order/totals/item.phtml">
|
473 |
+
<action method="setSourceField"><value>adjustment_positive</value></action>
|
474 |
+
<action method="setLabel"><value>Adjustment Refund</value></action>
|
475 |
+
</block>
|
476 |
+
<block type="adminhtml/sales_order_totals_item" name="adjustment_negative" template="sales/order/totals/item.phtml">
|
477 |
+
<action method="setSourceField"><value>adjustment_negative</value></action>
|
478 |
+
<action method="setLabel"><value>Adjustment Fee</value></action>
|
479 |
+
</block>
|
480 |
+
</block>-->
|
481 |
+
</block>
|
482 |
+
</block>
|
483 |
+
</block>
|
484 |
+
</reference>
|
485 |
+
</adminhtml_sales_order_creditmemo_view>
|
486 |
+
|
487 |
+
<adminhtml_sales_transactions_index>
|
488 |
+
<reference name="content">
|
489 |
+
<block type="adminhtml/sales_transactions" name="sales_transactions.grid.container"></block>
|
490 |
+
</reference>
|
491 |
+
</adminhtml_sales_transactions_index>
|
492 |
+
<adminhtml_sales_transactions_grid>
|
493 |
+
<block type="adminhtml/sales_transactions_grid" name="sales_transactions.grid" output="toHtml"></block>
|
494 |
+
</adminhtml_sales_transactions_grid>
|
495 |
+
<adminhtml_sales_transactions_view>
|
496 |
+
<reference name="content">
|
497 |
+
<block type="adminhtml/sales_transactions_detail" name="sales_transactions.detail" template="sales/transactions/detail.phtml">
|
498 |
+
<block type="adminhtml/sales_transactions_detail_grid" name="sales_transactions.detail.grid" as="detail_grid"/>
|
499 |
+
<block type="adminhtml/sales_transactions_child_grid" name="sales_transactions.child.grid" as="child_grid"/>
|
500 |
+
</block>
|
501 |
+
</reference>
|
502 |
+
</adminhtml_sales_transactions_view>
|
503 |
+
|
504 |
+
<adminhtml_sales_order_create_index>
|
505 |
+
<reference name="left">
|
506 |
+
<action method="setIsCollapsed"><value>true</value></action>
|
507 |
+
</reference>
|
508 |
+
<reference name="head">
|
509 |
+
<action method="addJs"><file>mage/adminhtml/sales.js</file></action>
|
510 |
+
<action method="addJs"><file>mage/adminhtml/giftmessage.js</file></action>
|
511 |
+
<action method="addJs"><file>mage/adminhtml/product/composite/configure.js</file></action>
|
512 |
+
<action method="addJs"><file>varien/configurable.js</file></action>
|
513 |
+
<action method="addJs"><file>mage/adminhtml/giftoptions/tooltip.js</file></action>
|
514 |
+
<block type="adminhtml/template" name="optional_zip_countries" as="optional_zip_countries" template="directory/js/optional_zip_countries.phtml" />
|
515 |
+
</reference>
|
516 |
+
<reference name="js">
|
517 |
+
<block type="adminhtml/template" template="sales/order/create/js.phtml" name="create" />
|
518 |
+
</reference>
|
519 |
+
<reference name="root">
|
520 |
+
<block type="adminhtml/sales_order_create" name="content">
|
521 |
+
<block type="adminhtml/sales_order_create_form" template="sales/order/create/form.phtml" name="form">
|
522 |
+
<block type="adminhtml/sales_order_create_messages" name="message" />
|
523 |
+
<block type="adminhtml/sales_order_create_customer" template="sales/order/create/abstract.phtml" name="customer">
|
524 |
+
<block type="adminhtml/sales_order_create_customer_grid" name="grid" />
|
525 |
+
</block>
|
526 |
+
<block type="adminhtml/sales_order_create_store" template="sales/order/create/abstract.phtml" name="store">
|
527 |
+
<block type="adminhtml/sales_order_create_store_select" template="sales/order/create/store/select.phtml" name="select" />
|
528 |
+
</block>
|
529 |
+
<block type="adminhtml/sales_order_create_data" template="sales/order/create/data.phtml" name="data">
|
530 |
+
<block type="adminhtml/sales_order_create_sidebar" template="sales/order/create/sidebar.phtml" name="sidebar">
|
531 |
+
<block type="adminhtml/sales_order_create_sidebar_cart" template="sales/order/create/sidebar/items.phtml" name="cart" />
|
532 |
+
<block type="adminhtml/sales_order_create_sidebar_wishlist" template="sales/order/create/sidebar/items.phtml" name="wishlist" />
|
533 |
+
<block type="adminhtml/sales_order_create_sidebar_reorder" template="sales/order/create/sidebar/items.phtml" name="reorder" />
|
534 |
+
<block type="adminhtml/sales_order_create_sidebar_viewed" template="sales/order/create/sidebar/items.phtml" name="viewed" />
|
535 |
+
<block type="adminhtml/sales_order_create_sidebar_compared" template="sales/order/create/sidebar/items.phtml" name="compared" />
|
536 |
+
<block type="adminhtml/sales_order_create_sidebar_pcompared" template="sales/order/create/sidebar/items.phtml" name="pcompared" />
|
537 |
+
<block type="adminhtml/sales_order_create_sidebar_pviewed" template="sales/order/create/sidebar/items.phtml" name="pviewed" />
|
538 |
+
</block>
|
539 |
+
<block type="adminhtml/sales_order_create_form_account" template="sales/order/create/form/account.phtml" name="form_account" />
|
540 |
+
<block type="adminhtml/sales_order_create_shipping_address" template="sales/order/create/form/address.phtml" name="shipping_address" />
|
541 |
+
<block type="adminhtml/sales_order_create_billing_address" template="sales/order/create/form/address.phtml" name="billing_address" />
|
542 |
+
<block type="adminhtml/sales_order_create_shipping_method" template="sales/order/create/abstract.phtml" name="shipping_method">
|
543 |
+
<block type="adminhtml/sales_order_create_shipping_method_form" template="sales/order/create/shipping/method/form.phtml" name="form" />
|
544 |
+
</block>
|
545 |
+
<block type="adminhtml/sales_order_create_billing_method" template="sales/order/create/abstract.phtml" name="billing_method">
|
546 |
+
<block type="adminhtml/sales_order_create_billing_method_form" template="sales/order/create/billing/method/form.phtml" name="form" />
|
547 |
+
</block>
|
548 |
+
<block type="adminhtml/sales_order_create_newsletter" template="sales/order/create/abstract.phtml" name="newsletter">
|
549 |
+
<block type="adminhtml/sales_order_create_newsletter_form" template="sales/order/create/newsletter/form.phtml" name="form" />
|
550 |
+
</block>
|
551 |
+
<block type="adminhtml/sales_order_create_search" template="sales/order/create/abstract.phtml" name="search">
|
552 |
+
<block type="adminhtml/sales_order_create_search_grid" name="grid" />
|
553 |
+
</block>
|
554 |
+
<block type="adminhtml/sales_order_create_items" template="sales/order/create/items.phtml" name="items">
|
555 |
+
<block type="adminhtml/sales_order_create_items_grid" template="sales/order/create/items/grid.phtml" name="items_grid">
|
556 |
+
<block type="adminhtml/sales_order_create_coupons" template="sales/order/create/coupons/form.phtml" name="coupons">
|
557 |
+
<block type="adminhtml/sales_order_create_coupons_form" template="sales/order/create/coupons/form.phtml" name="form" />
|
558 |
+
</block>
|
559 |
+
</block>
|
560 |
+
</block>
|
561 |
+
<block type="adminhtml/sales_order_create_comment" template="sales/order/create/comment.phtml" name="comment" />
|
562 |
+
<block type="adminhtml/sales_order_create_totals" template="cybage/sales/order/create/totals.phtml" name="totals" />
|
563 |
+
<block type="adminhtml/template" name="gift_options" template="sales/order/giftoptions.phtml">
|
564 |
+
<block type="adminhtml/sales_order_create_giftmessage" template="sales/order/create/giftmessage.phtml" name="giftmessage" />
|
565 |
+
</block>
|
566 |
+
<block type="core/text_list" name="order_item_extra_info"></block>
|
567 |
+
</block>
|
568 |
+
</block>
|
569 |
+
</block>
|
570 |
+
</reference>
|
571 |
+
</adminhtml_sales_order_create_index>
|
572 |
+
|
573 |
+
<adminhtml_sales_order_edit_index>
|
574 |
+
<update handle="adminhtml_sales_order_create_index" />
|
575 |
+
</adminhtml_sales_order_edit_index>
|
576 |
+
|
577 |
+
<adminhtml_sales_order_create_load_block_json>
|
578 |
+
<reference name="root">
|
579 |
+
<block type="adminhtml/sales_order_create_load" name="content" />
|
580 |
+
</reference>
|
581 |
+
</adminhtml_sales_order_create_load_block_json>
|
582 |
+
|
583 |
+
<adminhtml_sales_order_create_load_block_plain>
|
584 |
+
<reference name="root">
|
585 |
+
<block type="core/text_list" name="content" />
|
586 |
+
</reference>
|
587 |
+
</adminhtml_sales_order_create_load_block_plain>
|
588 |
+
|
589 |
+
<adminhtml_sales_order_create_load_block_data>
|
590 |
+
<reference name="content">
|
591 |
+
<block type="adminhtml/sales_order_create_data" template="sales/order/create/data.phtml" name="data">
|
592 |
+
<block type="adminhtml/sales_order_create_sidebar" template="sales/order/create/sidebar.phtml" name="sidebar">
|
593 |
+
<block type="adminhtml/sales_order_create_sidebar_cart" template="sales/order/create/sidebar/items.phtml" name="cart" />
|
594 |
+
<block type="adminhtml/sales_order_create_sidebar_wishlist" template="sales/order/create/sidebar/items.phtml" name="wishlist" />
|
595 |
+
<block type="adminhtml/sales_order_create_sidebar_reorder" template="sales/order/create/sidebar/items.phtml" name="reorder" />
|
596 |
+
<block type="adminhtml/sales_order_create_sidebar_viewed" template="sales/order/create/sidebar/items.phtml" name="viewed" />
|
597 |
+
<block type="adminhtml/sales_order_create_sidebar_compared" template="sales/order/create/sidebar/items.phtml" name="compared" />
|
598 |
+
<block type="adminhtml/sales_order_create_sidebar_pcompared" template="sales/order/create/sidebar/items.phtml" name="pcompared" />
|
599 |
+
<block type="adminhtml/sales_order_create_sidebar_pviewed" template="sales/order/create/sidebar/items.phtml" name="pviewed" />
|
600 |
+
</block>
|
601 |
+
<block type="adminhtml/sales_order_create_form_account" template="sales/order/create/form/account.phtml" name="form_account" />
|
602 |
+
<block type="adminhtml/sales_order_create_shipping_address" template="sales/order/create/form/address.phtml" name="shipping_address" />
|
603 |
+
<block type="adminhtml/sales_order_create_billing_address" template="sales/order/create/form/address.phtml" name="billing_address" />
|
604 |
+
<block type="adminhtml/sales_order_create_shipping_method" template="sales/order/create/abstract.phtml" name="shipping_method">
|
605 |
+
<block type="adminhtml/sales_order_create_shipping_method_form" template="sales/order/create/shipping/method/form.phtml" name="form" />
|
606 |
+
</block>
|
607 |
+
<block type="adminhtml/sales_order_create_billing_method" template="sales/order/create/abstract.phtml" name="billing_method">
|
608 |
+
<block type="adminhtml/sales_order_create_billing_method_form" template="sales/order/create/billing/method/form.phtml" name="form" />
|
609 |
+
</block>
|
610 |
+
<block type="adminhtml/sales_order_create_newsletter" template="sales/order/create/abstract.phtml" name="newsletter">
|
611 |
+
<block type="adminhtml/sales_order_create_newsletter_form" template="sales/order/create/newsletter/form.phtml" name="form" />
|
612 |
+
</block>
|
613 |
+
<block type="adminhtml/sales_order_create_search" template="sales/order/create/abstract.phtml" name="search">
|
614 |
+
<block type="adminhtml/sales_order_create_search_grid" name="grid" />
|
615 |
+
</block>
|
616 |
+
<block type="adminhtml/sales_order_create_items" template="sales/order/create/items.phtml" name="items">
|
617 |
+
<block type="adminhtml/sales_order_create_items_grid" template="sales/order/create/items/grid.phtml" name="items_grid">
|
618 |
+
<block type="adminhtml/sales_order_create_coupons" template="sales/order/create/coupons/form.phtml" name="coupons">
|
619 |
+
<block type="adminhtml/sales_order_create_coupons_form" template="sales/order/create/coupons/form.phtml" name="form" />
|
620 |
+
</block>
|
621 |
+
</block>
|
622 |
+
</block>
|
623 |
+
<block type="adminhtml/sales_order_create_comment" template="sales/order/create/comment.phtml" name="comment" />
|
624 |
+
<block type="adminhtml/sales_order_create_totals" template="cybage/sales/order/create/totals.phtml" name="totals" />
|
625 |
+
<block type="adminhtml/template" name="gift_options" template="sales/order/giftoptions.phtml">
|
626 |
+
<block type="adminhtml/sales_order_create_giftmessage" template="sales/order/create/giftmessage.phtml" name="giftmessage" />
|
627 |
+
</block>
|
628 |
+
<block type="core/text_list" name="order_item_extra_info"></block>
|
629 |
+
</block>
|
630 |
+
</reference>
|
631 |
+
</adminhtml_sales_order_create_load_block_data>
|
632 |
+
|
633 |
+
<adminhtml_sales_order_create_load_block_header>
|
634 |
+
<reference name="content">
|
635 |
+
<block type="adminhtml/sales_order_create_header" name="header" />
|
636 |
+
</reference>
|
637 |
+
</adminhtml_sales_order_create_load_block_header>
|
638 |
+
|
639 |
+
|
640 |
+
<adminhtml_sales_order_create_load_block_sidebar>
|
641 |
+
<reference name="content">
|
642 |
+
<block type="adminhtml/sales_order_create_sidebar" template="sales/order/create/sidebar.phtml" name="sidebar">
|
643 |
+
<block type="adminhtml/sales_order_create_sidebar_cart" template="sales/order/create/sidebar/items.phtml" name="cart" />
|
644 |
+
<block type="adminhtml/sales_order_create_sidebar_wishlist" template="sales/order/create/sidebar/items.phtml" name="wishlist" />
|
645 |
+
<block type="adminhtml/sales_order_create_sidebar_reorder" template="sales/order/create/sidebar/items.phtml" name="reorder" />
|
646 |
+
<block type="adminhtml/sales_order_create_sidebar_viewed" template="sales/order/create/sidebar/items.phtml" name="viewed" />
|
647 |
+
<block type="adminhtml/sales_order_create_sidebar_compared" template="sales/order/create/sidebar/items.phtml" name="compared" />
|
648 |
+
<block type="adminhtml/sales_order_create_sidebar_pcompared" template="sales/order/create/sidebar/items.phtml" name="pcompared" />
|
649 |
+
<block type="adminhtml/sales_order_create_sidebar_pviewed" template="sales/order/create/sidebar/items.phtml" name="pviewed" />
|
650 |
+
</block>
|
651 |
+
</reference>
|
652 |
+
</adminhtml_sales_order_create_load_block_sidebar>
|
653 |
+
|
654 |
+
<adminhtml_sales_order_create_load_block_form_account>
|
655 |
+
<reference name="content">
|
656 |
+
<block type="adminhtml/sales_order_create_form_account" template="sales/order/create/form/account.phtml" name="form_account" />
|
657 |
+
</reference>
|
658 |
+
</adminhtml_sales_order_create_load_block_form_account>
|
659 |
+
|
660 |
+
<adminhtml_sales_order_create_load_block_shipping_address>
|
661 |
+
<reference name="content">
|
662 |
+
<block type="adminhtml/sales_order_create_shipping_address" template="sales/order/create/form/address.phtml" name="shipping_address" />
|
663 |
+
</reference>
|
664 |
+
</adminhtml_sales_order_create_load_block_shipping_address>
|
665 |
+
|
666 |
+
<adminhtml_sales_order_create_load_block_billing_address>
|
667 |
+
<reference name="content">
|
668 |
+
<block type="adminhtml/sales_order_create_billing_address" template="sales/order/create/form/address.phtml" name="billing_address" />
|
669 |
+
</reference>
|
670 |
+
</adminhtml_sales_order_create_load_block_billing_address>
|
671 |
+
|
672 |
+
<adminhtml_sales_order_create_load_block_shipping_method>
|
673 |
+
<reference name="content">
|
674 |
+
<block type="adminhtml/sales_order_create_shipping_method" template="sales/order/create/abstract.phtml" name="shipping_method">
|
675 |
+
<block type="adminhtml/sales_order_create_shipping_method_form" template="sales/order/create/shipping/method/form.phtml" name="form" />
|
676 |
+
</block>
|
677 |
+
</reference>
|
678 |
+
</adminhtml_sales_order_create_load_block_shipping_method>
|
679 |
+
|
680 |
+
<adminhtml_sales_order_create_load_block_billing_method>
|
681 |
+
<reference name="content">
|
682 |
+
<block type="adminhtml/sales_order_create_billing_method" template="sales/order/create/abstract.phtml" name="billing_method">
|
683 |
+
<block type="adminhtml/sales_order_create_billing_method_form" template="sales/order/create/billing/method/form.phtml" name="form" />
|
684 |
+
</block>
|
685 |
+
</reference>
|
686 |
+
</adminhtml_sales_order_create_load_block_billing_method>
|
687 |
+
|
688 |
+
<adminhtml_sales_order_create_load_block_newsletter>
|
689 |
+
<reference name="content">
|
690 |
+
<block type="adminhtml/sales_order_create_newsletter" template="sales/order/create/abstract.phtml" name="newsletter">
|
691 |
+
<block type="adminhtml/sales_order_create_newsletter_form" template="sales/order/create/newsletter/form.phtml" name="form" />
|
692 |
+
</block>
|
693 |
+
</reference>
|
694 |
+
</adminhtml_sales_order_create_load_block_newsletter>
|
695 |
+
|
696 |
+
<adminhtml_sales_order_create_load_block_search>
|
697 |
+
<reference name="content">
|
698 |
+
<block type="adminhtml/sales_order_create_search" template="sales/order/create/abstract.phtml" name="search">
|
699 |
+
<block type="adminhtml/sales_order_create_search_grid" name="grid" />
|
700 |
+
</block>
|
701 |
+
</reference>
|
702 |
+
</adminhtml_sales_order_create_load_block_search>
|
703 |
+
|
704 |
+
<adminhtml_sales_order_create_load_block_search_grid>
|
705 |
+
<reference name="content">
|
706 |
+
<block type="adminhtml/sales_order_create_search_grid" name="grid" />
|
707 |
+
</reference>
|
708 |
+
</adminhtml_sales_order_create_load_block_search_grid>
|
709 |
+
|
710 |
+
<adminhtml_sales_order_create_load_block_items>
|
711 |
+
<reference name="content">
|
712 |
+
<block type="adminhtml/sales_order_create_items" template="sales/order/create/items.phtml" name="items">
|
713 |
+
<block type="adminhtml/sales_order_create_items_grid" template="sales/order/create/items/grid.phtml" name="items_grid">
|
714 |
+
<block type="adminhtml/sales_order_create_coupons" template="sales/order/create/coupons/form.phtml" name="coupons">
|
715 |
+
<block type="adminhtml/sales_order_create_coupons_form" template="sales/order/create/coupons/form.phtml" name="form" />
|
716 |
+
</block>
|
717 |
+
</block>
|
718 |
+
</block>
|
719 |
+
<block type="core/text_list" name="order_item_extra_info"></block>
|
720 |
+
</reference>
|
721 |
+
</adminhtml_sales_order_create_load_block_items>
|
722 |
+
|
723 |
+
<adminhtml_sales_order_create_load_block_comment>
|
724 |
+
<reference name="content">
|
725 |
+
<block type="adminhtml/sales_order_create_comment" template="sales/order/create/comment.phtml" name="comment" />
|
726 |
+
</reference>
|
727 |
+
</adminhtml_sales_order_create_load_block_comment>
|
728 |
+
|
729 |
+
<adminhtml_sales_order_create_load_block_totals>
|
730 |
+
<reference name="content">
|
731 |
+
<block type="adminhtml/sales_order_create_totals" template="cybage/sales/order/create/totals.phtml" name="totals" />
|
732 |
+
</reference>
|
733 |
+
</adminhtml_sales_order_create_load_block_totals>
|
734 |
+
|
735 |
+
<adminhtml_sales_order_create_load_block_giftmessage>
|
736 |
+
<reference name="content">
|
737 |
+
<block type="adminhtml/sales_order_create_giftmessage" template="sales/order/create/giftmessage.phtml" name="giftmessage" />
|
738 |
+
</reference>
|
739 |
+
</adminhtml_sales_order_create_load_block_giftmessage>
|
740 |
+
|
741 |
+
<adminhtml_sales_order_create_load_block_message>
|
742 |
+
<reference name="content">
|
743 |
+
<block type="adminhtml/sales_order_create_messages" name="message" />
|
744 |
+
</reference>
|
745 |
+
</adminhtml_sales_order_create_load_block_message>
|
746 |
+
|
747 |
+
<adminhtml_sales_order_create_load_block_customer_grid>
|
748 |
+
<reference name="content">
|
749 |
+
<block type="adminhtml/sales_order_create_customer_grid" name="grid" />
|
750 |
+
</reference>
|
751 |
+
</adminhtml_sales_order_create_load_block_customer_grid>
|
752 |
+
|
753 |
+
<adminhtml_sales_order_create_load_block_sidebar_cart>
|
754 |
+
<reference name="content">
|
755 |
+
<block type="adminhtml/sales_order_create_sidebar_cart" template="sales/order/create/sidebar/items.phtml" name="sidebar_cart" />
|
756 |
+
</reference>
|
757 |
+
</adminhtml_sales_order_create_load_block_sidebar_cart>
|
758 |
+
|
759 |
+
<adminhtml_sales_order_create_load_block_sidebar_wishlist>
|
760 |
+
<reference name="content">
|
761 |
+
<block type="adminhtml/sales_order_create_sidebar_wishlist" template="sales/order/create/sidebar/items.phtml" name="sidebar_wishlist" />
|
762 |
+
</reference>
|
763 |
+
</adminhtml_sales_order_create_load_block_sidebar_wishlist>
|
764 |
+
|
765 |
+
<adminhtml_sales_order_create_load_block_sidebar_reorder>
|
766 |
+
<reference name="content">
|
767 |
+
<block type="adminhtml/sales_order_create_sidebar_reorder" template="sales/order/create/sidebar/items.phtml" name="sidebar_reorder" />
|
768 |
+
</reference>
|
769 |
+
</adminhtml_sales_order_create_load_block_sidebar_reorder>
|
770 |
+
|
771 |
+
<adminhtml_sales_order_create_load_block_sidebar_viewed>
|
772 |
+
<reference name="content">
|
773 |
+
<block type="adminhtml/sales_order_create_sidebar_viewed" template="sales/order/create/sidebar/items.phtml" name="sidebar_viewed" />
|
774 |
+
</reference>
|
775 |
+
</adminhtml_sales_order_create_load_block_sidebar_viewed>
|
776 |
+
|
777 |
+
<adminhtml_sales_order_create_load_block_sidebar_compared>
|
778 |
+
<reference name="content">
|
779 |
+
<block type="adminhtml/sales_order_create_sidebar_compared" template="sales/order/create/sidebar/items.phtml" name="sidebar_compared" />
|
780 |
+
</reference>
|
781 |
+
</adminhtml_sales_order_create_load_block_sidebar_compared>
|
782 |
+
|
783 |
+
<adminhtml_sales_order_create_load_block_sidebar_pviewed>
|
784 |
+
<reference name="content">
|
785 |
+
<block type="adminhtml/sales_order_create_sidebar_pviewed" template="sales/order/create/sidebar/items.phtml" name="sidebar_pviewed" />
|
786 |
+
</reference>
|
787 |
+
</adminhtml_sales_order_create_load_block_sidebar_pviewed>
|
788 |
+
|
789 |
+
<adminhtml_sales_order_create_load_block_sidebar_pcompared>
|
790 |
+
<reference name="content">
|
791 |
+
<block type="adminhtml/sales_order_create_sidebar_pcompared" template="sales/order/create/sidebar/items.phtml" name="sidebar_pcompared" />
|
792 |
+
</reference>
|
793 |
+
</adminhtml_sales_order_create_load_block_sidebar_pcompared>
|
794 |
+
|
795 |
+
<report_sales>
|
796 |
+
<reference name="messages">
|
797 |
+
<action method="addNotice" translate="message">
|
798 |
+
<message>This report depends on timezone configuration. Once timezone is changed, the lifetime statistics need to be refreshed.</message>
|
799 |
+
</action>
|
800 |
+
</reference>
|
801 |
+
</report_sales>
|
802 |
+
|
803 |
+
<adminhtml_report_sales_sales>
|
804 |
+
<update handle="report_sales"/>
|
805 |
+
<reference name="content">
|
806 |
+
<block type="adminhtml/report_sales_sales" template="report/grid/container.phtml" name="sales.report.grid.container">
|
807 |
+
<block type="adminhtml/store_switcher" template="report/store/switcher/enhanced.phtml" name="store.switcher">
|
808 |
+
<action method="setStoreVarName"><var_name>store_ids</var_name></action>
|
809 |
+
</block>
|
810 |
+
<block type="sales/adminhtml_report_filter_form_order" name="grid.filter.form">
|
811 |
+
<action method="addReportTypeOption" translate="value">
|
812 |
+
<key>created_at_order</key>
|
813 |
+
<value>Order Created Date</value>
|
814 |
+
</action>
|
815 |
+
<action method="addReportTypeOption" translate="value">
|
816 |
+
<key>updated_at_order</key>
|
817 |
+
<value>Order Updated Date</value>
|
818 |
+
</action>
|
819 |
+
<action method="setFieldOption" translate="value">
|
820 |
+
<field>report_type</field>
|
821 |
+
<option>note</option>
|
822 |
+
<value>Order Updated Date report is real-time, does not need statistics refreshing.</value>
|
823 |
+
</action>
|
824 |
+
</block>
|
825 |
+
</block>
|
826 |
+
</reference>
|
827 |
+
</adminhtml_report_sales_sales>
|
828 |
+
|
829 |
+
<adminhtml_report_sales_tax>
|
830 |
+
<update handle="report_sales"/>
|
831 |
+
<reference name="content">
|
832 |
+
<block type="adminhtml/report_sales_tax" template="report/grid/container.phtml" name="sales.report.grid.container">
|
833 |
+
<block type="adminhtml/store_switcher" template="report/store/switcher/enhanced.phtml" name="store.switcher">
|
834 |
+
<action method="setStoreVarName"><var_name>store_ids</var_name></action>
|
835 |
+
</block>
|
836 |
+
<block type="sales/adminhtml_report_filter_form" name="grid.filter.form">
|
837 |
+
<action method="addReportTypeOption" translate="value">
|
838 |
+
<key>created_at_order</key>
|
839 |
+
<value>Order Created Date</value>
|
840 |
+
</action>
|
841 |
+
<action method="addReportTypeOption" translate="value">
|
842 |
+
<key>updated_at_order</key>
|
843 |
+
<value>Order Updated Date</value>
|
844 |
+
</action>
|
845 |
+
<action method="setFieldOption" translate="value">
|
846 |
+
<field>report_type</field>
|
847 |
+
<option>note</option>
|
848 |
+
<value>Order Updated Date report is real-time, does not need statistics refreshing.</value>
|
849 |
+
</action>
|
850 |
+
</block>
|
851 |
+
</block>
|
852 |
+
</reference>
|
853 |
+
</adminhtml_report_sales_tax>
|
854 |
+
|
855 |
+
<adminhtml_report_sales_shipping>
|
856 |
+
<update handle="report_sales"/>
|
857 |
+
<reference name="content">
|
858 |
+
<block type="adminhtml/report_sales_shipping" template="report/grid/container.phtml" name="sales.report.grid.container">
|
859 |
+
<block type="adminhtml/store_switcher" template="report/store/switcher/enhanced.phtml" name="store.switcher">
|
860 |
+
<action method="setStoreVarName"><var_name>store_ids</var_name></action>
|
861 |
+
</block>
|
862 |
+
<block type="sales/adminhtml_report_filter_form" name="grid.filter.form">
|
863 |
+
<action method="addReportTypeOption" translate="value">
|
864 |
+
<key>created_at_order</key>
|
865 |
+
<value>Order Created Date</value>
|
866 |
+
</action>
|
867 |
+
<action method="addReportTypeOption" translate="value">
|
868 |
+
<key>created_at_shipment</key>
|
869 |
+
<value>First Invoice Created Date</value>
|
870 |
+
</action>
|
871 |
+
</block>
|
872 |
+
</block>
|
873 |
+
</reference>
|
874 |
+
</adminhtml_report_sales_shipping>
|
875 |
+
|
876 |
+
<adminhtml_report_sales_invoiced>
|
877 |
+
<update handle="report_sales"/>
|
878 |
+
<reference name="content">
|
879 |
+
<block type="adminhtml/report_sales_invoiced" template="report/grid/container.phtml" name="sales.report.grid.container">
|
880 |
+
<block type="adminhtml/store_switcher" template="report/store/switcher/enhanced.phtml" name="store.switcher">
|
881 |
+
<action method="setStoreVarName"><var_name>store_ids</var_name></action>
|
882 |
+
</block>
|
883 |
+
<block type="sales/adminhtml_report_filter_form" name="grid.filter.form">
|
884 |
+
<action method="addReportTypeOption" translate="value">
|
885 |
+
<key>created_at_order</key>
|
886 |
+
<value>Order Created Date</value>
|
887 |
+
</action>
|
888 |
+
<action method="addReportTypeOption" translate="value">
|
889 |
+
<key>created_at_invoice</key>
|
890 |
+
<value>Last Invoice Created Date</value>
|
891 |
+
</action>
|
892 |
+
</block>
|
893 |
+
</block>
|
894 |
+
</reference>
|
895 |
+
</adminhtml_report_sales_invoiced>
|
896 |
+
|
897 |
+
<adminhtml_report_sales_refunded>
|
898 |
+
<update handle="report_sales"/>
|
899 |
+
<reference name="content">
|
900 |
+
<block type="adminhtml/report_sales_refunded" template="report/grid/container.phtml" name="sales.report.grid.container">
|
901 |
+
<block type="adminhtml/store_switcher" template="report/store/switcher/enhanced.phtml" name="store.switcher">
|
902 |
+
<action method="setStoreVarName"><var_name>store_ids</var_name></action>
|
903 |
+
</block>
|
904 |
+
<block type="sales/adminhtml_report_filter_form" name="grid.filter.form">
|
905 |
+
<action method="addReportTypeOption" translate="value">
|
906 |
+
<key>created_at_order</key>
|
907 |
+
<value>Order Created Date</value>
|
908 |
+
</action>
|
909 |
+
<action method="addReportTypeOption" translate="value">
|
910 |
+
<key>created_at_refunded</key>
|
911 |
+
<value>Last Credit Memo Created Date</value>
|
912 |
+
</action>
|
913 |
+
</block>
|
914 |
+
</block>
|
915 |
+
</reference>
|
916 |
+
</adminhtml_report_sales_refunded>
|
917 |
+
|
918 |
+
<adminhtml_report_sales_coupons>
|
919 |
+
<update handle="report_sales"/>
|
920 |
+
<reference name="content">
|
921 |
+
<block type="adminhtml/report_sales_coupons" template="report/grid/container.phtml" name="sales.report.grid.container">
|
922 |
+
<block type="adminhtml/store_switcher" template="report/store/switcher/enhanced.phtml" name="store.switcher">
|
923 |
+
<action method="setStoreVarName"><var_name>store_ids</var_name></action>
|
924 |
+
</block>
|
925 |
+
<block type="sales/adminhtml_report_filter_form_coupon" name="grid.filter.form">
|
926 |
+
<action method="addReportTypeOption" translate="value">
|
927 |
+
<key>created_at_order</key>
|
928 |
+
<value>Order Created Date</value>
|
929 |
+
</action>
|
930 |
+
<action method="addReportTypeOption" translate="value">
|
931 |
+
<key>updated_at_order</key>
|
932 |
+
<value>Order Updated Date</value>
|
933 |
+
</action>
|
934 |
+
<action method="setFieldOption" translate="value">
|
935 |
+
<field>report_type</field>
|
936 |
+
<option>note</option>
|
937 |
+
<value>Order Updated Date report is real-time, does not need statistics refreshing.</value>
|
938 |
+
</action>
|
939 |
+
</block>
|
940 |
+
</block>
|
941 |
+
</reference>
|
942 |
+
</adminhtml_report_sales_coupons>
|
943 |
+
|
944 |
+
<adminhtml_report_sales_bestsellers>
|
945 |
+
<update handle="report_sales"/>
|
946 |
+
<reference name="content">
|
947 |
+
<block type="adminhtml/report_sales_bestsellers" template="report/grid/container.phtml" name="sales.report.grid.container">
|
948 |
+
<block type="adminhtml/store_switcher" template="report/store/switcher/enhanced.phtml" name="store.switcher">
|
949 |
+
<action method="setStoreVarName"><var_name>store_ids</var_name></action>
|
950 |
+
</block>
|
951 |
+
<block type="sales/adminhtml_report_filter_form" name="grid.filter.form">
|
952 |
+
<action method="setFieldVisibility">
|
953 |
+
<field>report_type</field>
|
954 |
+
<visibility>0</visibility>
|
955 |
+
</action>
|
956 |
+
<action method="setFieldVisibility">
|
957 |
+
<field>show_order_statuses</field>
|
958 |
+
<visibility>0</visibility>
|
959 |
+
</action>
|
960 |
+
<action method="setFieldVisibility">
|
961 |
+
<field>order_statuses</field>
|
962 |
+
<visibility>0</visibility>
|
963 |
+
</action>
|
964 |
+
</block>
|
965 |
+
</block>
|
966 |
+
</reference>
|
967 |
+
</adminhtml_report_sales_bestsellers>
|
968 |
+
|
969 |
+
<adminhtml_sales_recurring_profile_index>
|
970 |
+
<reference name="content">
|
971 |
+
<block type="sales/adminhtml_recurring_profile" name="sales.recurring.profile.grid.container"/>
|
972 |
+
</reference>
|
973 |
+
</adminhtml_sales_recurring_profile_index>
|
974 |
+
|
975 |
+
<adminhtml_sales_recurring_profile_grid>
|
976 |
+
<remove name="root"/>
|
977 |
+
<block type="sales/adminhtml_recurring_profile_grid" name="sales.recurring.profile.grid" output="toHtml"/>
|
978 |
+
</adminhtml_sales_recurring_profile_grid>
|
979 |
+
|
980 |
+
<adminhtml_sales_recurring_profile_customergrid>
|
981 |
+
<block type="sales/adminhtml_customer_edit_tab_recurring_profile" name="customer.recurring.profile.grid" output="toHtml"></block>
|
982 |
+
</adminhtml_sales_recurring_profile_customergrid>
|
983 |
+
|
984 |
+
<adminhtml_sales_recurring_profile_view>
|
985 |
+
<reference name="content">
|
986 |
+
<block type="sales/adminhtml_recurring_profile_view" name="sales.recurring.profile.view" template="widget/view/container.phtml">
|
987 |
+
<action method="setDestElementId"><value>sales_recurring_profile_view</value></action>
|
988 |
+
</block>
|
989 |
+
</reference>
|
990 |
+
<reference name="left">
|
991 |
+
<block type="adminhtml/widget_tabs" name="sales.recurring.profile.view.tabs">
|
992 |
+
<action method="setDestElementId"><value>sales_recurring_profile_view</value></action>
|
993 |
+
<action method="setTitle" translate="value"><value>Recurring Profile View</value></action>
|
994 |
+
<action method="setId"><value>sales_recurring_profile_view_tabs</value></action>
|
995 |
+
<block type="sales/adminhtml_recurring_profile_view_tab_info" as="info_tab" name="sales.recurring.profile.tab.info" template="sales/recurring/profile/view.phtml">
|
996 |
+
<block type="sales/recurring_profile_view" name="sales.recurring.profile.view.general" as="general" template="sales/recurring/profile/view/info.phtml">
|
997 |
+
<action method="prepareReferenceInfo"/>
|
998 |
+
<action method="addToParentGroup"><value>info_blocks_row_1</value></action>
|
999 |
+
<action method="setViewColumn"><value>1</value></action>
|
1000 |
+
<action method="setViewLabel" translate="value"><value>Reference</value></action>
|
1001 |
+
</block>
|
1002 |
+
<block type="sales/recurring_profile_view" name="sales.recurring.profile.view.item" as="item" template="sales/recurring/profile/view/info.phtml">
|
1003 |
+
<action method="prepareItemInfo"/>
|
1004 |
+
<action method="addToParentGroup"><value>info_blocks_row_1</value></action>
|
1005 |
+
<action method="setViewColumn"><value>2</value></action>
|
1006 |
+
<action method="setViewLabel" translate="value"><value>Purchased Item</value></action>
|
1007 |
+
</block>
|
1008 |
+
<block type="sales/recurring_profile_view" name="sales.recurring.profile.view.schedule" as="profile" template="sales/recurring/profile/view/info.phtml">
|
1009 |
+
<action method="prepareScheduleInfo"/>
|
1010 |
+
<action method="addToParentGroup"><value>info_blocks_row_2</value></action>
|
1011 |
+
<action method="setViewColumn"><value>1</value></action>
|
1012 |
+
<action method="setViewLabel" translate="value"><value>Profile Schedule</value></action>
|
1013 |
+
</block>
|
1014 |
+
<block type="sales/recurring_profile_view" name="sales.recurring.profile.view.fees" as="fees" template="sales/recurring/profile/view/info.phtml">
|
1015 |
+
<action method="prepareFeesInfo"/>
|
1016 |
+
<action method="addToParentGroup"><value>info_blocks_row_2</value></action>
|
1017 |
+
<action method="setViewColumn"><value>2</value></action>
|
1018 |
+
<action method="setViewLabel" translate="value"><value>Profile Payments</value></action>
|
1019 |
+
</block>
|
1020 |
+
<block type="sales/recurring_profile_view" name="sales.recurring.profile.view.billing" as="billing_address" template="sales/recurring/profile/view/info.phtml">
|
1021 |
+
<action method="prepareAddressInfo"/>
|
1022 |
+
<action method="addToParentGroup"><value>info_blocks_row_3</value></action>
|
1023 |
+
<action method="setViewColumn"><value>1</value></action>
|
1024 |
+
<action method="setViewLabel" translate="value"><value>Billing Address</value></action>
|
1025 |
+
</block>
|
1026 |
+
<block type="sales/recurring_profile_view" name="sales.recurring.profile.view.shipping" as="shipping_address" template="sales/recurring/profile/view/info.phtml">
|
1027 |
+
<action method="setAddressType"><value>shipping</value></action>
|
1028 |
+
<action method="prepareAddressInfo"/>
|
1029 |
+
<action method="addToParentGroup"><value>info_blocks_row_3</value></action>
|
1030 |
+
<action method="setViewColumn"><value>2</value></action>
|
1031 |
+
<action method="setViewLabel" translate="value"><value>Shipping Address</value></action>
|
1032 |
+
</block>
|
1033 |
+
</block>
|
1034 |
+
<block type="sales/adminhtml_recurring_profile_view_tab_orders" as="orders_tab" name="sales.recurring.profile.tab.orders"/>
|
1035 |
+
<action method="addTab"><name>recurring_profile_info</name><block>info_tab</block></action>
|
1036 |
+
<action method="addTab"><name>recurring_profile_orders</name><block>orders_tab</block></action>
|
1037 |
+
</block>
|
1038 |
+
</reference>
|
1039 |
+
</adminhtml_sales_recurring_profile_view>
|
1040 |
+
|
1041 |
+
<adminhtml_sales_recurring_profile_orders>
|
1042 |
+
<remove name="root"/>
|
1043 |
+
<block type="sales/adminhtml_recurring_profile_view_tab_orders" name="sales.recurring.profile.tab.orders" output="toHtml"/>
|
1044 |
+
</adminhtml_sales_recurring_profile_orders>
|
1045 |
+
|
1046 |
+
<adminhtml_customer_edit>
|
1047 |
+
<reference name="customer_edit_tabs">
|
1048 |
+
<action method="addTab"><name>customer_edit_tab_agreements</name><block>sales/adminhtml_customer_edit_tab_agreement</block></action>
|
1049 |
+
<action method="addTab"><name>customer_edit_tab_recurring_profile</name><block>sales/adminhtml_customer_edit_tab_recurring_profile</block></action>
|
1050 |
+
</reference>
|
1051 |
+
</adminhtml_customer_edit>
|
1052 |
+
|
1053 |
+
<adminhtml_sales_order_status_index>
|
1054 |
+
<reference name="content">
|
1055 |
+
<block type="adminhtml/sales_order_status" name="sales_order_status.grid.container"></block>
|
1056 |
+
</reference>
|
1057 |
+
</adminhtml_sales_order_status_index>
|
1058 |
+
<adminhtml_sales_order_status_new>
|
1059 |
+
<reference name="content">
|
1060 |
+
<block type="adminhtml/sales_order_status_new" name="sales_order_status.new.container"></block>
|
1061 |
+
</reference>
|
1062 |
+
</adminhtml_sales_order_status_new>
|
1063 |
+
<adminhtml_sales_order_status_edit>
|
1064 |
+
<reference name="content">
|
1065 |
+
<block type="adminhtml/sales_order_status_edit" name="sales_order_status.edit.container"></block>
|
1066 |
+
</reference>
|
1067 |
+
</adminhtml_sales_order_status_edit>
|
1068 |
+
<adminhtml_sales_order_status_assign>
|
1069 |
+
<reference name="content">
|
1070 |
+
<block type="adminhtml/sales_order_status_assign" name="sales_order_status.assign.container"></block>
|
1071 |
+
</reference>
|
1072 |
+
</adminhtml_sales_order_status_assign>
|
1073 |
+
<adminhtml_sales_order_address>
|
1074 |
+
<reference name="content">
|
1075 |
+
<block type="adminhtml/sales_order_address" name="sales_order_address.form.container"></block>
|
1076 |
+
</reference>
|
1077 |
+
</adminhtml_sales_order_address>
|
1078 |
+
</layout>
|
app/design/adminhtml/default/default/template/cybage/sales/order/totals.phtml
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Cybage Promotion Discount Plugin
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* It is available on the World Wide Web at:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
11 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
12 |
+
*
|
13 |
+
* @category Promotion Discount Plugin
|
14 |
+
* @package Cybage
|
15 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
16 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
19 |
+
*/
|
20 |
+
?>
|
21 |
+
<?php $currentUrl = $this->helper('core/url')->getCurrentUrl(); ?>
|
22 |
+
<table cellspacing="0" width="100%">
|
23 |
+
<col />
|
24 |
+
<col width="1" />
|
25 |
+
<?php $_totals = $this->getTotals('footer')?>
|
26 |
+
<?php if ($_totals):?>
|
27 |
+
<tfoot>
|
28 |
+
<?php foreach ($this->getTotals('footer') as $_code => $_total): ?>
|
29 |
+
<?php if ($_total->getBlockName()): ?>
|
30 |
+
<?php echo $this->getChildHtml($_total->getBlockName(), false); ?>
|
31 |
+
<?php else:?>
|
32 |
+
<tr class="<?php echo $_code?>" style="padding:0 0 0 4px";>
|
33 |
+
<td <?php echo $this->getLabelProperties()?> class="label">
|
34 |
+
<strong><?php echo $this->escapeHtml($_total->getLabel()); ?></strong>
|
35 |
+
</td>
|
36 |
+
<td <?php echo $this->getValueProperties()?> class="emph">
|
37 |
+
<strong><?php echo $this->formatValue($_total) ?></strong>
|
38 |
+
</td>
|
39 |
+
</tr>
|
40 |
+
<?php endif?>
|
41 |
+
<?php endforeach?>
|
42 |
+
</tfoot>
|
43 |
+
<?php endif?>
|
44 |
+
|
45 |
+
<?php $_totals = $this->getTotals('')?>
|
46 |
+
<?php if ($_totals):?>
|
47 |
+
<tbody>
|
48 |
+
<?php foreach ($_totals as $_code => $_total): ?>
|
49 |
+
<?php $totalData = $_total->getData(); ?>
|
50 |
+
<?php if ($_total->getBlockName()): ?>
|
51 |
+
<?php if (strpos($currentUrl,'sales_order/') == false) :?>
|
52 |
+
<?php echo $this->getChildHtml($_total->getBlockName(), false); ?>
|
53 |
+
<?php endif; ?>
|
54 |
+
<?php else:?>
|
55 |
+
<?php if( $totalData['code'] != 'discount'): ?>
|
56 |
+
<tr class="<?php echo $_code?>" style="padding:0 0 0 4px";>
|
57 |
+
<td <?php echo $this->getLabelProperties()?> class="label">
|
58 |
+
<?php if ($_total->getStrong()):?>
|
59 |
+
<strong><?php echo $this->escapeHtml($_total->getLabel()); ?></strong>
|
60 |
+
<?php else:?>
|
61 |
+
<?php echo $this->escapeHtml($_total->getLabel()); ?>
|
62 |
+
<?php endif?>
|
63 |
+
</td>
|
64 |
+
<?php if ($_total->getStrong()):?>
|
65 |
+
<td <?php echo $this->getValueProperties()?> class="emph">
|
66 |
+
<strong><?php echo $this->formatValue($_total) ?></strong>
|
67 |
+
<?php else:?>
|
68 |
+
<td <?php echo $this->getValueProperties()?>>
|
69 |
+
<?php echo $this->formatValue($_total) ?>
|
70 |
+
<?php endif?>
|
71 |
+
</td>
|
72 |
+
</tr>
|
73 |
+
<?php endif?>
|
74 |
+
<?php endif?>
|
75 |
+
<?php endforeach?>
|
76 |
+
</tbody>
|
77 |
+
<?php endif?>
|
78 |
+
</table>
|
app/design/adminhtml/default/default/template/cybage/sales/order/totals/discount.phtml
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Cybage Promotion Discount Plugin
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* It is available on the World Wide Web at:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
11 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
12 |
+
*
|
13 |
+
* @category Promotion Discount Plugin
|
14 |
+
* @package Cybage
|
15 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
16 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
19 |
+
*/
|
20 |
+
$_source = $this->getSource();
|
21 |
+
$_order = $this->getOrder();
|
22 |
+
$this->setPriceDataObject($_source);
|
23 |
+
/**
|
24 |
+
*Start of code to display Discount EC
|
25 |
+
*/
|
26 |
+
$currencyCode = '';
|
27 |
+
$currency = $_order->getOrderCurrency();
|
28 |
+
if (is_object($currency)) {
|
29 |
+
$currencyCode = $currency->getCurrencyCode();
|
30 |
+
}
|
31 |
+
$currencySymbol = Mage::app()->getLocale()->currency($currencyCode)->getSymbol();
|
32 |
+
?>
|
33 |
+
<?php if ((float) $_source->getDiscountAmount()): ?>
|
34 |
+
<?php if($_order->getCouponDiscount()>0):?>
|
35 |
+
<tr>
|
36 |
+
<td class="label">
|
37 |
+
<?php echo Mage::helper('sales')->__('Coupon Discount (%s)', $_order->getCouponCode()) ?>
|
38 |
+
</td>
|
39 |
+
<td><span class="price"><?php echo "-".$currencySymbol.number_format($_order->getCouponDiscount(),2) ?></span></td>
|
40 |
+
</tr>
|
41 |
+
<?php endif; ?>
|
42 |
+
<?php if($_order->getPromotionalDiscount()>0):?>
|
43 |
+
<tr>
|
44 |
+
<td class="label">
|
45 |
+
<?php echo $_order->getPromoLable() ?>
|
46 |
+
</td>
|
47 |
+
<td><span class="price"><?php echo "-".$currencySymbol.number_format($_order->getPromotionalDiscount(),2) ?></span></td>
|
48 |
+
</tr>
|
49 |
+
<?php endif;?>
|
50 |
+
<?php if(!($_order->getCouponDiscount()) && !($_order->getPromotionalDiscount())):?>
|
51 |
+
<tr>
|
52 |
+
<td class="label">
|
53 |
+
<?php if ($_order->getCouponCode()): ?>
|
54 |
+
<?php echo Mage::helper('sales')->__('Discount (%s)', $_order->getCouponCode()) ?>
|
55 |
+
<?php else: ?>
|
56 |
+
<?php echo Mage::helper('sales')->__('Discount') ?>
|
57 |
+
<?php endif; ?>
|
58 |
+
</td>
|
59 |
+
<td><?php echo $this->displayPriceAttribute('discount_amount') ?></td>
|
60 |
+
</tr>
|
61 |
+
<?php endif; ?>
|
62 |
+
<?php endif;?>
|
app/design/frontend/base/default/layout/cybage_sales.xml
ADDED
@@ -0,0 +1,501 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Cybage Promotion Discount Plugin
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* It is available on the World Wide Web at:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
12 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
13 |
+
*
|
14 |
+
* @category Promotion Discount Plugin
|
15 |
+
* @package Cybage
|
16 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
17 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<layout version="0.1.0">
|
23 |
+
<!--
|
24 |
+
Customer account pages, rendered for all tabs in dashboard
|
25 |
+
-->
|
26 |
+
<customer_logged_in>
|
27 |
+
<reference name="right">
|
28 |
+
<block type="sales/reorder_sidebar" name="sale.reorder.sidebar" as="reorder" template="sales/reorder/sidebar.phtml"/>
|
29 |
+
</reference>
|
30 |
+
</customer_logged_in>
|
31 |
+
<checkout_onepage_index>
|
32 |
+
<remove name="sale.reorder.sidebar"/>
|
33 |
+
</checkout_onepage_index>
|
34 |
+
<checkout_onepage_reorder>
|
35 |
+
<reference name="right">
|
36 |
+
<action method="unsetChild"><name>reorder</name></action>
|
37 |
+
</reference>
|
38 |
+
</checkout_onepage_reorder>
|
39 |
+
|
40 |
+
<customer_account>
|
41 |
+
<!-- Mage_Sales -->
|
42 |
+
<reference name="customer_account_navigation">
|
43 |
+
<action method="addLink" translate="label" module="sales"><name>orders</name><path>sales/order/history/</path><label>My Orders</label></action>
|
44 |
+
</reference>
|
45 |
+
<reference name="left">
|
46 |
+
<block type="sales/reorder_sidebar" name="sale.reorder.sidebar" as="reorder" template="sales/reorder/sidebar.phtml"/>
|
47 |
+
</reference>
|
48 |
+
|
49 |
+
</customer_account>
|
50 |
+
|
51 |
+
<!--
|
52 |
+
Customer account home dashboard layout
|
53 |
+
-->
|
54 |
+
<customer_account_index>
|
55 |
+
<!-- Mage_Sales -->
|
56 |
+
<!--remove name="customer_account_dashboard_top"/-->
|
57 |
+
<reference name="customer_account_dashboard">
|
58 |
+
<block type="sales/order_recent" name="customer_account_dashboard_top" as="top" template="sales/order/recent.phtml"/>
|
59 |
+
</reference>
|
60 |
+
|
61 |
+
</customer_account_index>
|
62 |
+
|
63 |
+
<sales_order_history translate="label">
|
64 |
+
<label>Customer My Account Order History</label>
|
65 |
+
<update handle="customer_account"/>
|
66 |
+
<reference name="my.account.wrapper">
|
67 |
+
<block type="sales/order_history" name="sales.order.history">
|
68 |
+
<block type="core/text_list" name="sales.order.history.info" as="info" translate="label">
|
69 |
+
<label>Order History Info</label>
|
70 |
+
</block>
|
71 |
+
</block>
|
72 |
+
<block type="customer/account_dashboard" name="customer.account.link.back" template="customer/account/link/back.phtml"/>
|
73 |
+
</reference>
|
74 |
+
</sales_order_history>
|
75 |
+
|
76 |
+
<sales_order_view translate="label">
|
77 |
+
<label>Customer My Account Order View</label>
|
78 |
+
<update handle="customer_account"/>
|
79 |
+
<reference name="my.account.wrapper">
|
80 |
+
<block type="sales/order_info" as="info" name="sales.order.info">
|
81 |
+
<block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
|
82 |
+
</block>
|
83 |
+
<block type="sales/order_view" name="sales.order.view">
|
84 |
+
<block type="sales/order_items" name="order_items" template="sales/order/items.phtml">
|
85 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/items/renderer/default.phtml</template></action>
|
86 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/items/renderer/default.phtml</template></action>
|
87 |
+
<block type="sales/order_totals" name="order_totals" template="cybage/sales/order/totals.phtml">
|
88 |
+
<action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
|
89 |
+
<action method="setValueProperties"><value>class="last a-right"</value></action>
|
90 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml" />
|
91 |
+
</block>
|
92 |
+
</block>
|
93 |
+
</block>
|
94 |
+
</reference>
|
95 |
+
<reference name="sales.order.info">
|
96 |
+
<action method="addLink" translate="label" module="sales"><name>view</name><path></path><label>Order Information</label></action>
|
97 |
+
<action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
|
98 |
+
<action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
|
99 |
+
<action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
|
100 |
+
</reference>
|
101 |
+
<block type="core/text_list" name="additional.product.info" translate="label">
|
102 |
+
<label>Additional Product Info</label>
|
103 |
+
</block>
|
104 |
+
</sales_order_view>
|
105 |
+
|
106 |
+
<sales_order_invoice translate="label">
|
107 |
+
<label>Customer My Account Order Invoice View</label>
|
108 |
+
<update handle="customer_account"/>
|
109 |
+
<reference name="my.account.wrapper">
|
110 |
+
<block type="sales/order_info" as="info" name="sales.order.info">
|
111 |
+
<block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
|
112 |
+
</block>
|
113 |
+
<block type="sales/order_invoice" name="sales.order.invoice">
|
114 |
+
<block type="sales/order_invoice_items" name="invoice_items" template="sales/order/invoice/items.phtml">
|
115 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
|
116 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
|
117 |
+
<block type="sales/order_invoice_totals" name="invoice_totals" template="cybage/sales/order/totals.phtml">
|
118 |
+
<action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
|
119 |
+
<action method="setValueProperties"><value>class="last a-right"</value></action>
|
120 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml" />
|
121 |
+
</block>
|
122 |
+
<block type="sales/order_comments" name="invoice_comments" template="sales/order/comments.phtml" />
|
123 |
+
</block>
|
124 |
+
</block>
|
125 |
+
</reference>
|
126 |
+
<reference name="sales.order.info">
|
127 |
+
<action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
|
128 |
+
<action method="addLink" translate="label" module="sales"><name>invoice</name><path></path><label>Invoices</label></action>
|
129 |
+
<action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
|
130 |
+
<action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
|
131 |
+
</reference>
|
132 |
+
<block type="core/text_list" name="additional.product.info" />
|
133 |
+
</sales_order_invoice>
|
134 |
+
|
135 |
+
<sales_order_shipment translate="label">
|
136 |
+
<label>Customer My Account Order Shipment View</label>
|
137 |
+
<update handle="customer_account"/>
|
138 |
+
<reference name="my.account.wrapper">
|
139 |
+
<block type="sales/order_info" as="info" name="sales.order.info">
|
140 |
+
<block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
|
141 |
+
</block>
|
142 |
+
<block type="sales/order_shipment" name="sales.order.shipment">
|
143 |
+
<block type="sales/order_shipment_items" name="shipment_items" template="sales/order/shipment/items.phtml">
|
144 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/shipment/items/renderer/default.phtml</template></action>
|
145 |
+
<block type="sales/order_comments" name="shipment_comments" template="sales/order/comments.phtml" />
|
146 |
+
</block>
|
147 |
+
</block>
|
148 |
+
</reference>
|
149 |
+
<reference name="sales.order.info">
|
150 |
+
<action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
|
151 |
+
<action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
|
152 |
+
<action method="addLink" translate="label" module="sales"><name>shipment</name><path></path><label>Shipments</label></action>
|
153 |
+
<action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
|
154 |
+
</reference>
|
155 |
+
<block type="core/text_list" name="additional.product.info" />
|
156 |
+
</sales_order_shipment>
|
157 |
+
|
158 |
+
<sales_order_creditmemo translate="label">
|
159 |
+
<label>Customer My Account Order Creditmemo View</label>
|
160 |
+
<update handle="customer_account"/>
|
161 |
+
<reference name="my.account.wrapper">
|
162 |
+
<block type="sales/order_info" as="info" name="sales.order.info">
|
163 |
+
<block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
|
164 |
+
</block>
|
165 |
+
<block type="sales/order_creditmemo" name="sales.order.creditmemo">
|
166 |
+
<block type="sales/order_creditmemo_items" name="creditmemo_items" template="sales/order/creditmemo/items.phtml">
|
167 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
|
168 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
|
169 |
+
<block type="sales/order_creditmemo_totals" name="creditmemo_totals" template="cybage/sales/order/totals.phtml">
|
170 |
+
<action method="setLabelProperties"><value>colspan="6" class="a-right"</value></action>
|
171 |
+
<action method="setValueProperties"><value>class="a-right"</value></action>
|
172 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml"/>
|
173 |
+
</block>
|
174 |
+
<block type="sales/order_comments" name="creditmemo_comments" template="sales/order/comments.phtml" />
|
175 |
+
</block>
|
176 |
+
</block>
|
177 |
+
</reference>
|
178 |
+
<reference name="sales.order.info">
|
179 |
+
<action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
|
180 |
+
<action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
|
181 |
+
<action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
|
182 |
+
<action method="addLink" translate="label" module="sales"><name>creditmemo</name><path></path><label>Refunds</label></action>
|
183 |
+
</reference>
|
184 |
+
<block type="core/text_list" name="additional.product.info" />
|
185 |
+
</sales_order_creditmemo>
|
186 |
+
|
187 |
+
<sales_order_reorder>
|
188 |
+
<update handle="customer_account"/>
|
189 |
+
<reference name="content">
|
190 |
+
<block type="sales/order_view" name="sales.order.view"/>
|
191 |
+
</reference>
|
192 |
+
</sales_order_reorder>
|
193 |
+
|
194 |
+
<sales_order_print translate="label">
|
195 |
+
<label>Sales Order Print View</label>
|
196 |
+
<reference name="content">
|
197 |
+
<block type="sales/order_print" name="sales.order.print" template="sales/order/print.phtml">
|
198 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/items/renderer/default.phtml</template></action>
|
199 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/items/renderer/default.phtml</template></action>
|
200 |
+
<block type="sales/order_totals" name="order_totals" template="cybage/sales/order/totals.phtml">
|
201 |
+
<action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
|
202 |
+
<action method="setValueProperties"><value>class="last a-right"</value></action>
|
203 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
|
204 |
+
<action method="setIsPlaneMode"><value>1</value></action>
|
205 |
+
</block>
|
206 |
+
</block>
|
207 |
+
</block>
|
208 |
+
</reference>
|
209 |
+
<block type="core/text_list" name="additional.product.info" />
|
210 |
+
</sales_order_print>
|
211 |
+
|
212 |
+
<sales_order_printinvoice translate="label">
|
213 |
+
<label>Sales Invoice Print View</label>
|
214 |
+
<reference name="content">
|
215 |
+
<block type="sales/order_print_invoice" name="sales.order.print.invoice" template="sales/order/print/invoice.phtml">
|
216 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
|
217 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
|
218 |
+
<block type="sales/order_invoice_totals" name="invoice_totals" template="cybage/sales/order/totals.phtml">
|
219 |
+
<action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
|
220 |
+
<action method="setValueProperties"><value>class="last a-right"</value></action>
|
221 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml" />
|
222 |
+
</block>
|
223 |
+
</block>
|
224 |
+
</reference>
|
225 |
+
<block type="core/text_list" name="additional.product.info" />
|
226 |
+
</sales_order_printinvoice>
|
227 |
+
|
228 |
+
<sales_order_printshipment translate="label">
|
229 |
+
<label>Sales Shipment Print View</label>
|
230 |
+
<reference name="content">
|
231 |
+
<block type="sales/order_print_shipment" name="sales.order.print.shipment" template="sales/order/print/shipment.phtml">
|
232 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/shipment/items/renderer/default.phtml</template></action>
|
233 |
+
</block>
|
234 |
+
</reference>
|
235 |
+
<block type="core/text_list" name="additional.product.info" />
|
236 |
+
</sales_order_printshipment>
|
237 |
+
|
238 |
+
<sales_order_printcreditmemo>
|
239 |
+
<reference name="content">
|
240 |
+
<block type="sales/order_print_creditmemo" name="sales.order.print.creditmemo" template="sales/order/print/creditmemo.phtml">
|
241 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
|
242 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
|
243 |
+
<block type="sales/order_creditmemo_totals" name="creditmemo_totals" template="cybage/sales/order/totals.phtml">
|
244 |
+
<action method="setLabelProperties"><value>colspan="6" class="a-right"</value></action>
|
245 |
+
<action method="setValueProperties"><value>class="a-right"</value></action>
|
246 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml"/>
|
247 |
+
</block>
|
248 |
+
</block>
|
249 |
+
</reference>
|
250 |
+
<block type="core/text_list" name="additional.product.info" />
|
251 |
+
</sales_order_printcreditmemo>
|
252 |
+
|
253 |
+
<!--
|
254 |
+
Email layouts section
|
255 |
+
-->
|
256 |
+
<sales_email_order_items>
|
257 |
+
<block type="sales/order_email_items" name="items" template="email/order/items.phtml">
|
258 |
+
<action method="addItemRender"><type>default</type><block>sales/order_email_items_order_default</block><template>email/order/items/order/default.phtml</template></action>
|
259 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_email_items_order_grouped</block><template>email/order/items/order/default.phtml</template></action>
|
260 |
+
<block type="sales/order_totals" name="order_totals" template="cybage/sales/order/totals.phtml">
|
261 |
+
<action method="setLabelProperties"><value>colspan="3" align="right" style="padding:3px 9px"</value></action>
|
262 |
+
<action method="setValueProperties"><value>align="right" style="padding:3px 9px"</value></action>
|
263 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
|
264 |
+
<action method="setIsPlaneMode"><value>1</value></action>
|
265 |
+
</block>
|
266 |
+
</block>
|
267 |
+
</block>
|
268 |
+
<block type="core/text_list" name="additional.product.info" />
|
269 |
+
</sales_email_order_items>
|
270 |
+
|
271 |
+
<sales_email_order_invoice_items>
|
272 |
+
<block type="sales/order_email_invoice_items" name="items" template="email/order/invoice/items.phtml">
|
273 |
+
<action method="addItemRender"><type>default</type><block>sales/order_email_items_default</block><template>email/order/items/invoice/default.phtml</template></action>
|
274 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_email_items_order_grouped</block><template>email/order/items/invoice/default.phtml</template></action>
|
275 |
+
<block type="sales/order_invoice_totals" name="invoice_totals" template="cybage/sales/order/totals.phtml">
|
276 |
+
<action method="setLabelProperties"><value>colspan="3" align="right" style="padding:3px 9px"</value></action>
|
277 |
+
<action method="setValueProperties"><value>align="right" style="padding:3px 9px"</value></action>
|
278 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml"/>
|
279 |
+
</block>
|
280 |
+
</block>
|
281 |
+
<block type="core/text_list" name="additional.product.info" />
|
282 |
+
</sales_email_order_invoice_items>
|
283 |
+
|
284 |
+
<sales_email_order_shipment_items>
|
285 |
+
<block type="sales/order_email_shipment_items" name="items" template="email/order/shipment/items.phtml">
|
286 |
+
<action method="addItemRender"><type>default</type><block>sales/order_email_items_default</block><template>email/order/items/shipment/default.phtml</template></action>
|
287 |
+
</block>
|
288 |
+
<block type="core/text_list" name="additional.product.info" />
|
289 |
+
</sales_email_order_shipment_items>
|
290 |
+
|
291 |
+
<sales_email_order_creditmemo_items>
|
292 |
+
<block type="sales/order_email_creditmemo_items" name="items" template="email/order/creditmemo/items.phtml">
|
293 |
+
<action method="addItemRender"><type>default</type><block>sales/order_email_items_default</block><template>email/order/items/creditmemo/default.phtml</template></action>
|
294 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_email_items_order_grouped</block><template>email/order/items/creditmemo/default.phtml</template></action>
|
295 |
+
<block type="sales/order_creditmemo_totals" name="creditmemo_totals" template="cybage/sales/order/totals.phtml">
|
296 |
+
<action method="setLabelProperties"><value>colspan="3" align="right" style="padding:3px 9px"</value></action>
|
297 |
+
<action method="setValueProperties"><value>align="right" style="padding:3px 9px"</value></action>
|
298 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml"/>
|
299 |
+
</block>
|
300 |
+
</block>
|
301 |
+
<block type="core/text_list" name="additional.product.info" />
|
302 |
+
</sales_email_order_creditmemo_items>
|
303 |
+
|
304 |
+
<!--
|
305 |
+
Guest
|
306 |
+
-->
|
307 |
+
<sales_guest_form translate="label">
|
308 |
+
<label>Returns</label>
|
309 |
+
<reference name="root">
|
310 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
311 |
+
</reference>
|
312 |
+
<reference name="content">
|
313 |
+
<block type="sales/widget_guest_form" name="guest.form" template="sales/guest/form.phtml"/>
|
314 |
+
</reference>
|
315 |
+
</sales_guest_form>
|
316 |
+
|
317 |
+
|
318 |
+
<sales_guest_view translate="label">
|
319 |
+
<label>Customer My Account Order View</label>
|
320 |
+
<reference name="root">
|
321 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
322 |
+
</reference>
|
323 |
+
<reference name="content">
|
324 |
+
<block type="sales/order_info" as="info" name="sales.order.info">
|
325 |
+
<block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
|
326 |
+
</block>
|
327 |
+
<block type="sales/order_view" name="sales.order.view">
|
328 |
+
<block type="sales/order_items" name="order_items" template="sales/order/items.phtml">
|
329 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/items/renderer/default.phtml</template></action>
|
330 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/items/renderer/default.phtml</template></action>
|
331 |
+
<block type="sales/order_totals" name="order_totals" template="cybage/sales/order/totals.phtml">
|
332 |
+
<action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
|
333 |
+
<action method="setValueProperties"><value>class="last a-right"</value></action>
|
334 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml" />
|
335 |
+
</block>
|
336 |
+
</block>
|
337 |
+
</block>
|
338 |
+
</reference>
|
339 |
+
<reference name="sales.order.info">
|
340 |
+
<action method="addLink" translate="label" module="sales"><name>view</name><path></path><label>Order Information</label></action>
|
341 |
+
<action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
|
342 |
+
<action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
|
343 |
+
<action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
|
344 |
+
</reference>
|
345 |
+
</sales_guest_view>
|
346 |
+
|
347 |
+
<sales_guest_invoice translate="label">
|
348 |
+
<label>Customer My Account Order Invoice View</label>
|
349 |
+
<reference name="root">
|
350 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
351 |
+
</reference>
|
352 |
+
<reference name="content">
|
353 |
+
<block type="sales/order_info" as="info" name="sales.order.info">
|
354 |
+
<block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
|
355 |
+
</block>
|
356 |
+
<block type="sales/order_invoice" name="sales.order.invoice">
|
357 |
+
<block type="sales/order_invoice_items" name="invoice_items" template="sales/order/invoice/items.phtml">
|
358 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
|
359 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
|
360 |
+
<block type="sales/order_invoice_totals" name="invoice_totals" template="cybage/sales/order/totals.phtml">
|
361 |
+
<action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
|
362 |
+
<action method="setValueProperties"><value>class="last a-right"</value></action>
|
363 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml" />
|
364 |
+
</block>
|
365 |
+
<block type="sales/order_comments" name="invoice_comments" template="sales/order/comments.phtml" />
|
366 |
+
</block>
|
367 |
+
</block>
|
368 |
+
</reference>
|
369 |
+
<reference name="sales.order.info">
|
370 |
+
<action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
|
371 |
+
<action method="addLink" translate="label" module="sales"><name>invoice</name><path></path><label>Invoices</label></action>
|
372 |
+
<action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
|
373 |
+
<action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
|
374 |
+
</reference>
|
375 |
+
</sales_guest_invoice>
|
376 |
+
|
377 |
+
<sales_guest_shipment translate="label">
|
378 |
+
<label>Customer My Account Order Shipment View</label>
|
379 |
+
<reference name="root">
|
380 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
381 |
+
</reference>
|
382 |
+
<reference name="content">
|
383 |
+
<block type="sales/order_info" as="info" name="sales.order.info">
|
384 |
+
<block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
|
385 |
+
</block>
|
386 |
+
<block type="sales/order_shipment" name="sales.order.shipment">
|
387 |
+
<block type="sales/order_shipment_items" name="shipment_items" template="sales/order/shipment/items.phtml">
|
388 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/shipment/items/renderer/default.phtml</template></action>
|
389 |
+
<block type="sales/order_comments" name="shipment_comments" template="sales/order/comments.phtml" />
|
390 |
+
</block>
|
391 |
+
</block>
|
392 |
+
</reference>
|
393 |
+
<reference name="sales.order.info">
|
394 |
+
<action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
|
395 |
+
<action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
|
396 |
+
<action method="addLink" translate="label" module="sales"><name>shipment</name><path></path><label>Shipments</label></action>
|
397 |
+
<action method="addLink" translate="label" module="sales"><name>creditmemo</name><path>*/*/creditmemo</path><label>Refunds</label></action>
|
398 |
+
</reference>
|
399 |
+
</sales_guest_shipment>
|
400 |
+
|
401 |
+
<sales_guest_creditmemo translate="label">
|
402 |
+
<label>Customer My Account Order Creditmemo View</label>
|
403 |
+
<reference name="root">
|
404 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
405 |
+
</reference>
|
406 |
+
<reference name="content">
|
407 |
+
<block type="sales/order_info" as="info" name="sales.order.info">
|
408 |
+
<block type="sales/order_info_buttons" as="buttons" name="sales.order.info.buttons" />
|
409 |
+
</block>
|
410 |
+
<block type="sales/order_creditmemo" name="sales.order.creditmemo">
|
411 |
+
<block type="sales/order_creditmemo_items" name="creditmemo_items" template="sales/order/creditmemo/items.phtml">
|
412 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
|
413 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
|
414 |
+
<block type="sales/order_creditmemo_totals" name="creditmemo_totals" template="cybage/sales/order/totals.phtml">
|
415 |
+
<action method="setLabelProperties"><value>colspan="6" class="a-right"</value></action>
|
416 |
+
<action method="setValueProperties"><value>class="a-right"</value></action>
|
417 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml"/>
|
418 |
+
</block>
|
419 |
+
<block type="sales/order_comments" name="creditmemo_comments" template="sales/order/comments.phtml" />
|
420 |
+
</block>
|
421 |
+
</block>
|
422 |
+
</reference>
|
423 |
+
<reference name="sales.order.info">
|
424 |
+
<action method="addLink" translate="label" module="sales"><name>view</name><path>*/*/view</path><label>Order Information</label></action>
|
425 |
+
<action method="addLink" translate="label" module="sales"><name>invoice</name><path>*/*/invoice</path><label>Invoices</label></action>
|
426 |
+
<action method="addLink" translate="label" module="sales"><name>shipment</name><path>*/*/shipment</path><label>Shipments</label></action>
|
427 |
+
<action method="addLink" translate="label" module="sales"><name>creditmemo</name><path></path><label>Refunds</label></action>
|
428 |
+
</reference>
|
429 |
+
</sales_guest_creditmemo>
|
430 |
+
|
431 |
+
<sales_guest_reorder>
|
432 |
+
<reference name="root">
|
433 |
+
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
434 |
+
</reference>
|
435 |
+
<reference name="content">
|
436 |
+
<block type="sales/order_view" name="sales.order.view"/>
|
437 |
+
</reference>
|
438 |
+
</sales_guest_reorder>
|
439 |
+
|
440 |
+
<sales_guest_print translate="label">
|
441 |
+
<label>Sales Order Print View</label>
|
442 |
+
<reference name="content">
|
443 |
+
<block type="sales/order_print" name="sales.order.print" template="sales/order/print.phtml">
|
444 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/items/renderer/default.phtml</template></action>
|
445 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/items/renderer/default.phtml</template></action>
|
446 |
+
<block type="sales/order_totals" name="order_totals" template="cybage/sales/order/totals.phtml">
|
447 |
+
<action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
|
448 |
+
<action method="setValueProperties"><value>class="last a-right"</value></action>
|
449 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
|
450 |
+
<action method="setIsPlaneMode"><value>1</value></action>
|
451 |
+
</block>
|
452 |
+
</block>
|
453 |
+
</block>
|
454 |
+
</reference>
|
455 |
+
</sales_guest_print>
|
456 |
+
|
457 |
+
<sales_guest_printinvoice translate="label">
|
458 |
+
<label>Sales Invoice Print View</label>
|
459 |
+
<reference name="content">
|
460 |
+
<block type="sales/order_print_invoice" name="sales.order.print.invoice" template="sales/order/print/invoice.phtml">
|
461 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
|
462 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/invoice/items/renderer/default.phtml</template></action>
|
463 |
+
<block type="sales/order_invoice_totals" name="invoice_totals" template="cybage/sales/order/totals.phtml">
|
464 |
+
<action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
|
465 |
+
<action method="setValueProperties"><value>class="last a-right"</value></action>
|
466 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml" />
|
467 |
+
</block>
|
468 |
+
</block>
|
469 |
+
</reference>
|
470 |
+
</sales_guest_printinvoice>
|
471 |
+
|
472 |
+
<sales_guest_printshipment translate="label">
|
473 |
+
<label>Sales Shipment Print View</label>
|
474 |
+
<reference name="content">
|
475 |
+
<block type="sales/order_print_shipment" name="sales.order.print.shipment" template="sales/order/print/shipment.phtml">
|
476 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/shipment/items/renderer/default.phtml</template></action>
|
477 |
+
</block>
|
478 |
+
</reference>
|
479 |
+
</sales_guest_printshipment>
|
480 |
+
|
481 |
+
<sales_guest_printcreditmemo>
|
482 |
+
<reference name="content">
|
483 |
+
<block type="sales/order_print_creditmemo" name="sales.order.print.creditmemo" template="sales/order/print/creditmemo.phtml">
|
484 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
|
485 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/creditmemo/items/renderer/default.phtml</template></action>
|
486 |
+
<block type="sales/order_creditmemo_totals" name="creditmemo_totals" template="cybage/sales/order/totals.phtml">
|
487 |
+
<action method="setLabelProperties"><value>colspan="6" class="a-right"</value></action>
|
488 |
+
<action method="setValueProperties"><value>class="a-right"</value></action>
|
489 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml"/>
|
490 |
+
</block>
|
491 |
+
</block>
|
492 |
+
</reference>
|
493 |
+
</sales_guest_printcreditmemo>
|
494 |
+
|
495 |
+
<default>
|
496 |
+
<reference name="footer_links">
|
497 |
+
<block type="sales/guest_links" name="return_link"/>
|
498 |
+
<action method="addLinkBlock"><blockName>return_link</blockName></action>
|
499 |
+
</reference>
|
500 |
+
</default>
|
501 |
+
</layout>
|
app/design/frontend/base/default/template/cybage/sales/order/totals.phtml
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Cybage Promotion Discount Plugin
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* It is available on the World Wide Web at:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
11 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
12 |
+
*
|
13 |
+
* @category Promotion Discount Plugin
|
14 |
+
* @package Cybage
|
15 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
16 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
19 |
+
*/
|
20 |
+
?>
|
21 |
+
<?php $label = $this->getCouponLabelValue($this->getTotals());?>
|
22 |
+
<?php foreach ($this->getTotals() as $_code => $_total): ?>
|
23 |
+
<?php if ($_total->getBlockName()): ?>
|
24 |
+
<?php echo $this->getChildHtml($_total->getBlockName(), false); ?>
|
25 |
+
<?php else:?>
|
26 |
+
<?php
|
27 |
+
/**
|
28 |
+
* Start of Show Discount label for EC.
|
29 |
+
*/
|
30 |
+
if ($_code == 'discount' && ($this->getOrder()->getCouponDiscount() || $this->getOrder()->getPromotionalDiscount()))
|
31 |
+
{ ?>
|
32 |
+
<?php foreach ($label as $key => $value) { ?>
|
33 |
+
<tr class="<?php echo $key ?>">
|
34 |
+
<td <?php echo $this->getLabelProperties() ?>>
|
35 |
+
<?php echo $this->__($value['label']).":" ?>
|
36 |
+
</td>
|
37 |
+
<td <?php echo $this->getValueProperties() ?>>
|
38 |
+
<?php echo "-".$this->helper('checkout')->formatPrice($value['value']) ?>
|
39 |
+
</td>
|
40 |
+
</tr>
|
41 |
+
<?php }
|
42 |
+
/**
|
43 |
+
* End of Show Discount label for EC.
|
44 |
+
*/
|
45 |
+
} else { ?>
|
46 |
+
<tr class="<?php echo $_code?>">
|
47 |
+
<td <?php echo $this->getLabelProperties()?>>
|
48 |
+
<?php if ($_total->getStrong()):?>
|
49 |
+
<strong><?php echo $this->escapeHtml($_total->getLabel());?></strong>
|
50 |
+
<?php else:?>
|
51 |
+
<?php echo $this->escapeHtml($_total->getLabel());?>
|
52 |
+
<?php endif?>
|
53 |
+
</td>
|
54 |
+
<td <?php echo $this->getValueProperties()?>>
|
55 |
+
<?php if ($_total->getStrong()):?>
|
56 |
+
<strong><?php echo $this->formatValue($_total) ?></strong>
|
57 |
+
<?php else:?>
|
58 |
+
<?php echo $this->formatValue($_total) ?>
|
59 |
+
<?php endif?>
|
60 |
+
</td>
|
61 |
+
</tr>
|
62 |
+
<?php }
|
63 |
+
endif?>
|
64 |
+
<?php endforeach?>
|
app/design/frontend/base/default/template/cybage_tax/checkout/discount.phtml
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Cybage Promotion Discount Plugin
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* It is available on the World Wide Web at:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
11 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
12 |
+
*
|
13 |
+
* @category Promotion Discount Plugin
|
14 |
+
* @package Cybage
|
15 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
16 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
19 |
+
*/
|
20 |
+
if($this->getCustomDiscountRenderer()):
|
21 |
+
?>
|
22 |
+
<?php if($this->getQuote()->getCouponDiscount()):/*?>
|
23 |
+
<tr>
|
24 |
+
<th colspan="<?php echo $this->getColspan(); ?>" style="<?php echo $this->getTotal()->getStyle() ?>" class="a-right">
|
25 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?><strong><?php endif; ?>
|
26 |
+
<?php echo $this->getDiscountTitle('coupon') ?>
|
27 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?></strong><?php endif; ?>
|
28 |
+
</th>
|
29 |
+
<td style="<?php echo $this->getTotal()->getStyle() ?>" class="a-right">
|
30 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?><strong><?php endif; ?>
|
31 |
+
<?php echo "-".$this->helper('checkout')->formatPrice($this->getQuote()->getCouponDiscount()) ?>
|
32 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?></strong><?php endif; ?>
|
33 |
+
</td>
|
34 |
+
</tr>
|
35 |
+
<?php */endif;?>
|
36 |
+
<?php if($this->getQuote()->getPromotionalDiscount()):?>
|
37 |
+
<tr>
|
38 |
+
<th colspan="<?php echo $this->getColspan(); ?>" style="<?php echo $this->getTotal()->getStyle() ?>" class="a-right">
|
39 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?><strong><?php endif; ?>
|
40 |
+
<?php echo $this->getDiscountTitle('promotional') ?>
|
41 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?></strong><?php endif; ?>
|
42 |
+
</th>
|
43 |
+
<td style="<?php echo $this->getTotal()->getStyle() ?>" class="a-right">
|
44 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?><strong><?php endif; ?>
|
45 |
+
<?php echo "-".$this->helper('checkout')->formatPrice($this->getQuote()->getPromotionalDiscount()) ?>
|
46 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?></strong><?php endif; ?>
|
47 |
+
</td>
|
48 |
+
</tr>
|
49 |
+
<?php endif;?>
|
50 |
+
<?php else:?>
|
51 |
+
<tr>
|
52 |
+
<th colspan="<?php echo $this->getColspan(); ?>" style="<?php echo $this->getTotal()->getStyle() ?>" class="a-right">
|
53 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?><strong><?php endif; ?>
|
54 |
+
<?php echo $this->getTotal()->getTitle() ?>
|
55 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?></strong><?php endif; ?>
|
56 |
+
</th>
|
57 |
+
<td style="<?php echo $this->getTotal()->getStyle() ?>" class="a-right">
|
58 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?><strong><?php endif; ?>
|
59 |
+
<?php echo $this->helper('checkout')->formatPrice($this->getTotal()->getValue()) ?>
|
60 |
+
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?></strong><?php endif; ?>
|
61 |
+
</td>
|
62 |
+
</tr>
|
63 |
+
<?php endif;?>
|
app/etc/modules/Cybage_Checkout.xml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Cybage Promotion Discount Plugin
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* It is available on the World Wide Web at:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
12 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
13 |
+
*
|
14 |
+
* @category Promotion Discount Plugin
|
15 |
+
* @package Cybage
|
16 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
17 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<Cybage_Checkout>
|
25 |
+
<active>true</active>
|
26 |
+
<codePool>community</codePool>
|
27 |
+
</Cybage_Checkout>
|
28 |
+
</modules>
|
29 |
+
</config>
|
app/etc/modules/Cybage_Sales.xml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Cybage Promotion Discount Plugin
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* It is available on the World Wide Web at:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
12 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
13 |
+
*
|
14 |
+
* @category Promotion Discount Plugin
|
15 |
+
* @package Cybage
|
16 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
17 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<Cybage_Sales>
|
25 |
+
<active>true</active>
|
26 |
+
<codePool>community</codePool>
|
27 |
+
</Cybage_Sales>
|
28 |
+
</modules>
|
29 |
+
</config>
|
app/etc/modules/Cybage_SalesRule.xml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Cybage Promotion Discount Plugin
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* It is available on the World Wide Web at:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
12 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
13 |
+
*
|
14 |
+
* @category Promotion Discount Plugin
|
15 |
+
* @package Cybage
|
16 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
17 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<Cybage_SalesRule>
|
25 |
+
<active>true</active>
|
26 |
+
<codePool>community</codePool>
|
27 |
+
</Cybage_SalesRule>
|
28 |
+
</modules>
|
29 |
+
</config>
|
app/etc/modules/Cybage_Tax.xml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Cybage Promotion Discount Plugin
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* It is available on the World Wide Web at:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you are unable to access it on the World Wide Web, please send an email
|
12 |
+
* To: Support_Magento@cybage.com. We will send you a copy of the source file.
|
13 |
+
*
|
14 |
+
* @category Promotion Discount Plugin
|
15 |
+
* @package Cybage
|
16 |
+
* @copyright Copyright (c) 2014 Cybage Software Pvt. Ltd., India
|
17 |
+
* http://www.cybage.com/pages/centers-of-excellence/ecommerce/ecommerce.aspx
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
* @author Cybage Software Pvt. Ltd. <Support_Magento@cybage.com>
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<Cybage_Tax>
|
25 |
+
<active>true</active>
|
26 |
+
<codePool>community</codePool>
|
27 |
+
</Cybage_Tax>
|
28 |
+
</modules>
|
29 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Cybage_Promotion_Discount</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>The Promotion Discount plug-in supports bifurcation of discount. It displays the catalog price discount and shopping cart discount separately.</summary>
|
10 |
+
<description>The Promotion Discount plug-in supports bifurcation of discount. It displays the catalog price discount and shopping cart discount separately.
|
11 |
+
Features
|
12 |
+
• Customer gets the clarity of promotion discount on their orders.
|
13 |
+
• Seller can manage and visualize the discount amount of their products.
|
14 |
+
• Easy reporting of the discount amount for an order.</description>
|
15 |
+
<notes>After installation of the Marketplace plugin please clear the cache.</notes>
|
16 |
+
<authors><author><name>Cybage Software Pvt. Ltd.</name><user>cybage</user><email>Support_Magento@cybage.com</email></author></authors>
|
17 |
+
<date>2014-06-11</date>
|
18 |
+
<time>13:28:35</time>
|
19 |
+
<contents><target name="magecommunity"><dir name="Cybage"><dir name="Checkout"><dir name="Model"><file name="Observer.php" hash="f8298d0bc0fa0b94a61ad580c0bdb8eb"/></dir><dir name="etc"><file name="config.xml" hash="4c54937ef6c92ed30f501a29bf177203"/><file name="system.xml" hash="508c433273cee2a5fc7ec73a58175450"/></dir><dir name="sql"><dir name="checkout_setup"><file name="mysql4-upgrade-1.6.0.0-1.6.0.1.php" hash="96507eac175d72987108244e8e6cf834"/></dir></dir></dir><dir name="Sales"><dir name="Block"><dir name="Order"><dir name="Creditmemo"><file name="Totals.php" hash="835a93a04bad901c183ed854a43d8723"/></dir><dir name="Invoice"><file name="Totals.php" hash="2104d7891f6fc7ebf5c9a95d081273f2"/></dir><file name="Totals.php" hash="4aa909092d47f764ff5c02e773235119"/></dir></dir><dir name="Model"><dir name="Order"><file name="Creditmemo.php" hash="c92dca168c2c87282a8867d160da3929"/></dir><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Coupon.php" hash="712be154e62e7ebcc34b639a05878a6b"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="2d67d96b2b6d7a133c02ef9f1cbc804d"/></dir></dir><dir name="SalesRule"><dir name="Model"><dir name="Quote"><file name="Discount.php" hash="c5186ce798cc365fe643bec02b6ef326"/></dir></dir><dir name="etc"><file name="config.xml" hash="5822ce45d010dec5aa004d0b0a2c822d"/></dir></dir><dir name="Tax"><dir name="Block"><dir name="Checkout"><file name="Discount.php" hash="43533a00ed2aed9c49e88dba75ceb894"/></dir></dir><dir name="etc"><file name="config.xml" hash="0e60bf7531e33435cbb902be578d4e81"/></dir></dir></dir><dir name="Mage"><dir name="Adminhtml"><dir name="Block"><dir name="Sales"><file name="Totals.php" hash="ad6492cd3a95301d9b5961ff66ae6969"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="cybage_sales.xml" hash="096bc99d4d391fcc77825f187c145144"/></dir><dir name="template"><dir name="cybage"><dir name="sales"><dir name="order"><dir name="totals"><file name="discount.phtml" hash="8fabdd810b60c1bc115b371f6c01281b"/></dir><file name="totals.phtml" hash="059e34e34869882ed8f86e5c0fabda41"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="cybage_sales.xml" hash="b9d9dbfb34cadc6242bc560125b022cc"/></dir><dir name="template"><dir name="cybage"><dir name="sales"><dir name="order"><file name="totals.phtml" hash="e09834526b3385e6e00322c14cb2fd58"/></dir></dir></dir><dir name="cybage_tax"><dir name="checkout"><file name="discount.phtml" hash="7b1d4ec4275cf582a75cdcdb190482bb"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cybage_Checkout.xml" hash="a3efbc90e0d167fbb52cd52ade1d0452"/><file name="Cybage_Sales.xml" hash="8c7a10b96f3ca2b4e0480223803b6574"/><file name="Cybage_SalesRule.xml" hash="987788e7c53618083fe01727dab3aba4"/><file name="Cybage_Tax.xml" hash="88dcfc7e75de1983d4fa0b1730f0a04e"/></dir></target></contents>
|
20 |
+
<compatible/>
|
21 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
22 |
+
</package>
|