Solwin_AdvanceOrderSuccess - Version 1.0.0

Version Notes

This will make your boring order success page attractive. And also provide all the informations related customers' order. No need to go to My orders page to view the order informaion.

Download this release

Release Info

Developer Sanjay Dabhoya
Extension Solwin_AdvanceOrderSuccess
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/code/community/Solwin/AdvanceOrderSuccess/Block/Index.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Solwin_AdvanceOrderSuccess_Block_Index extends Mage_Core_Block_Template{
3
+
4
+
5
+
6
+
7
+
8
+ }
app/code/community/Solwin/AdvanceOrderSuccess/Helper/Data.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class Solwin_AdvanceOrderSuccess_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+ }
5
+
app/code/community/Solwin/AdvanceOrderSuccess/controllers/IndexController.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Solwin_AdvanceOrderSuccess_IndexController extends Mage_Core_Controller_Front_Action{
3
+ public function IndexAction() {
4
+
5
+ $this->loadLayout();
6
+ $this->getLayout()->getBlock("head")->setTitle($this->__("advanceorder"));
7
+ $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
8
+ $breadcrumbs->addCrumb("home", array(
9
+ "label" => $this->__("Home Page"),
10
+ "title" => $this->__("Home Page"),
11
+ "link" => Mage::getBaseUrl()
12
+ ));
13
+
14
+ $breadcrumbs->addCrumb("advanceorder", array(
15
+ "label" => $this->__("advanceorder"),
16
+ "title" => $this->__("advanceorder")
17
+ ));
18
+
19
+ $this->renderLayout();
20
+
21
+ }
22
+ }
app/code/community/Solwin/AdvanceOrderSuccess/etc/adminhtml.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <successpagesettings translate="title" module="advanceordersuccess">
12
+ <title>Success Page Settings Section</title>
13
+ <sort_order>320</sort_order>
14
+ </successpagesettings>
15
+ </children>
16
+ </config>
17
+ </children>
18
+ </system>
19
+ </children>
20
+ </admin>
21
+ </resources>
22
+ </acl>
23
+ </config>
app/code/community/Solwin/AdvanceOrderSuccess/etc/config.xml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Solwin_AdvanceOrderSuccess>
5
+ <version>0.1.0</version>
6
+ </Solwin_AdvanceOrderSuccess>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <advanceordersuccess>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Solwin_AdvanceOrderSuccess</module>
14
+ <frontName>advanceordersuccess</frontName>
15
+ </args>
16
+ </advanceordersuccess>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <advanceordersuccess>
21
+ <file>advanceordersuccess.xml</file>
22
+ </advanceordersuccess>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <global>
27
+ <helpers>
28
+ <advanceordersuccess>
29
+ <class>Solwin_AdvanceOrderSuccess_Helper</class>
30
+ </advanceordersuccess>
31
+ </helpers>
32
+ <blocks>
33
+ <advanceordersuccess>
34
+ <class>Solwin_AdvanceOrderSuccess_Block</class>
35
+ </advanceordersuccess>
36
+ </blocks>
37
+ </global>
38
+ </config>
app/code/community/Solwin/AdvanceOrderSuccess/etc/system.xml ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <solwinsuccesspage translate="label" module="advanceordersuccess">
5
+ <label>Solwin</label>
6
+ <sort_order>320</sort_order>
7
+ </solwinsuccesspage>
8
+ </tabs>
9
+ <sections>
10
+ <successpagesettings translate="label" module="advanceordersuccess">
11
+ <label>Advance Success Page</label>
12
+ <tab>solwinsuccesspage</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>320</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <cmsblock translate="label">
20
+ <label>CMS Block Settings</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>2</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <aboveordercms translate="label">
28
+ <label>CMS Block Above Order Information</label>
29
+ <frontend_type>select</frontend_type>
30
+ <source_model>adminhtml/system_config_source_yesno</source_model>
31
+ <sort_order>2</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>1</show_in_store>
35
+ </aboveordercms>
36
+ <aboveordercmsid translate="label">
37
+ <label>CMS Block Id</label>
38
+ <frontend_type>text</frontend_type>
39
+ <sort_order>3</sort_order>
40
+ <show_in_default>1</show_in_default>
41
+ <show_in_website>1</show_in_website>
42
+ <show_in_store>1</show_in_store>
43
+ <depends>
44
+ <aboveordercms>1</aboveordercms>
45
+ </depends>
46
+ <comment>Enter the CMS block id for displaying block at above the order information section e.g "order_success_top_block"</comment>
47
+ </aboveordercmsid>
48
+ <belowordercms translate="label">
49
+ <label>CMS Block Below Order Information</label>
50
+ <frontend_type>select</frontend_type>
51
+ <source_model>adminhtml/system_config_source_yesno</source_model>
52
+ <sort_order>4</sort_order>
53
+ <show_in_default>1</show_in_default>
54
+ <show_in_website>1</show_in_website>
55
+ <show_in_store>1</show_in_store>
56
+ </belowordercms>
57
+ <belowordercmsid translate="label">
58
+ <label>CMS Block Id</label>
59
+ <frontend_type>text</frontend_type>
60
+ <sort_order>5</sort_order>
61
+ <show_in_default>1</show_in_default>
62
+ <show_in_website>1</show_in_website>
63
+ <show_in_store>1</show_in_store>
64
+ <depends>
65
+ <belowordercms>1</belowordercms>
66
+ </depends>
67
+ <comment>Enter the CMS block id for displaying block at below the order information section e.g "order_success_bottom_block"</comment>
68
+ </belowordercmsid>
69
+ </fields>
70
+ </cmsblock>
71
+ <general translate="label">
72
+ <label>General</label>
73
+ <frontend_type>text</frontend_type>
74
+ <sort_order>1</sort_order>
75
+ <show_in_default>1</show_in_default>
76
+ <show_in_website>1</show_in_website>
77
+ <show_in_store>1</show_in_store>
78
+ <fields>
79
+ <enable translate="label">
80
+ <label>Enable</label>
81
+ <frontend_type>select</frontend_type>
82
+ <source_model>adminhtml/system_config_source_yesno</source_model>
83
+ <sort_order>1</sort_order>
84
+ <show_in_default>1</show_in_default>
85
+ <show_in_website>1</show_in_website>
86
+ <show_in_store>1</show_in_store>
87
+ </enable>
88
+ </fields>
89
+ </general>
90
+ <newsletter translate="label">
91
+ <label>Newsletter Settings</label>
92
+ <frontend_type>text</frontend_type>
93
+ <sort_order>3</sort_order>
94
+ <show_in_default>1</show_in_default>
95
+ <show_in_website>1</show_in_website>
96
+ <show_in_store>1</show_in_store>
97
+ <fields>
98
+ <enablenewsletter translate="label">
99
+ <label>Display Newsletter</label>
100
+ <frontend_type>select</frontend_type>
101
+ <source_model>adminhtml/system_config_source_yesno</source_model>
102
+ <sort_order>0</sort_order>
103
+ <show_in_default>1</show_in_default>
104
+ <show_in_website>1</show_in_website>
105
+ <show_in_store>1</show_in_store>
106
+ </enablenewsletter>
107
+ </fields>
108
+ </newsletter>
109
+ </groups>
110
+ </successpagesettings>
111
+ </sections>
112
+ </config>
app/design/frontend/default/default/layout/advanceordersuccess.xml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="1.0.0">
3
+ <checkout_onepage_success translate="label">
4
+ <label>One Page Checkout Success</label>
5
+ <reference name="root">
6
+ <action method="setTemplate">
7
+ <template>page/1column.phtml</template>
8
+ </action>
9
+ </reference>
10
+ <reference name="content">
11
+ <reference name="checkout.success">
12
+ <action method="setTemplate" ifconfig="successpagesettings/general/enable">
13
+ <template>advanceordersuccess/index.phtml</template>
14
+ </action>
15
+ </reference>
16
+ </reference>
17
+ <reference name="head">
18
+ <action method="addItem">
19
+ <type>skin_css</type>
20
+ <name>css/solwinadvanceorder.css</name>
21
+ <params/>
22
+ </action>
23
+ <action method="setTitle" translate="title">
24
+ <title>Advance Order Success</title>
25
+ </action>
26
+ </reference>
27
+ </checkout_onepage_success>
28
+ </layout>
29
+
app/design/frontend/default/default/template/advanceordersuccess/index.phtml ADDED
@@ -0,0 +1,255 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $order_id = $this->getOrderId(); //use your own order id
3
+ $order = Mage::getModel("sales/order")->loadByIncrementId($order_id); //load order by order id
4
+
5
+ $items = $order->getItemsCollection();
6
+ $colspan = $rowspan = 2;
7
+
8
+ $order_details = Mage::getModel('sales/order')->loadByIncrementId($order_id);
9
+ // Get shipping method
10
+ $shipping_method = $order_details->_data["shipping_description"];
11
+
12
+ // Get ship-to address information
13
+ $shipping_address_data = $order_details->getShippingAddress();
14
+ $billingAddress = $order_details->getBillingAddress();
15
+
16
+ //country codes
17
+ $shippcode = $order_details->getShippingAddress()->getCountry();
18
+ $billcode = $order_details->getBillingAddress()->getCountry();
19
+
20
+ $paymentmethod = $order->getPayment()->getMethodInstance()->getTitle();
21
+ //credit card information
22
+ $payarry = $order->getPayment()->debug();
23
+ //get credit card name
24
+ foreach (Mage::getSingleton('payment/config')->getCcTypes() as $code => $name) {
25
+ if ($payarry['cc_type'] == $code) {
26
+ $options = $name;
27
+ }
28
+ }
29
+
30
+ //get static block admin side configurations
31
+ $aboveenable = Mage::getStoreConfig('successpagesettings/cmsblock/aboveordercms');
32
+ $aboveenableid = Mage::getStoreConfig('successpagesettings/cmsblock/aboveordercmsid');
33
+ $belowenable = Mage::getStoreConfig('successpagesettings/cmsblock/belowordercms');
34
+ $belowenableid = Mage::getStoreConfig('successpagesettings/cmsblock/belowordercmsid');
35
+ $newsLetter = Mage::getStoreConfig('successpagesettings/newsletter/enablenewsletter');
36
+
37
+ if ($aboveenable == 1 && $aboveenableid != "") {
38
+ echo $this->getLayout()->createBlock('cms/block')->setBlockId($aboveenableid)->toHtml();
39
+ }
40
+ ?>
41
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
42
+ <h2 class="sub-title"><?php echo $this->__('Thank you for your purchase!') ?></h2>
43
+ <div class="myorder-wrapper">
44
+ <div class="myorder">
45
+ <h3>Order Information</h3>
46
+ <?php if ($this->getCanViewOrder() && $this->getCanPrintOrder()) : ?>
47
+ <?php echo $this->__('<a class="print-icon" href="%s" onclick="this.target=\'_blank\'">here to print</a>', $this->getPrintUrl()) ?>
48
+ <?php // echo $this->getChildHtml() ?>
49
+ <?php endif; ?>
50
+ <div class="inner_content">
51
+ <label> Date<span>:</span></label>
52
+ <span> <?php echo $order->getCreatedAtStoreDate(); ?></span>
53
+ </div>
54
+ <div class="inner_content">
55
+ <label>Order ID<span>:</span></label>
56
+ <span><?php echo $order_id; ?></span>
57
+ </div>
58
+ <div class="inner_content">
59
+ <label>Order Status<span>:</span></label>
60
+ <span> <?php echo $order->getStatusLabel(); ?></span>
61
+ </div>
62
+ </div>
63
+ <div class="payment_method">
64
+ <h3>Payment & Shipping Information</h3>
65
+ <div class="inner_content">
66
+ <label><b>Shipping Method</b><span>:</span></label>
67
+ <span> <?php echo $shipping_method; ?></span>
68
+ </div>
69
+ <div class="inner_content">
70
+ <label><b>Payment Method</b><span>:</span> </label>
71
+ <span><?php echo $paymentmethod; ?></span>
72
+ </div>
73
+ <?php if ($paymentmethod == 'Credit Card (saved)') { ?>
74
+ <div class="inner_content">
75
+ <label>Credit Card Type<span>:</span></label>
76
+ <span><?php echo $options; ?></span>
77
+ </div>
78
+ <div class="inner_content">
79
+ <label>Credit Card Number<span>:</span></label>
80
+ <span><?php echo $payarry['cc_last4']; ?></span>
81
+ </div>
82
+ <div class="inner_content">
83
+ <label>Credit Card Owner<span>:</span></label>
84
+ <span><?php echo $payarry['cc_owner']; ?></span>
85
+ </div>
86
+ <?php } ?>
87
+ </div>
88
+ </div>
89
+ <div class="myorder-wrapper">
90
+ <div class="order_summery">
91
+ <h3>Shipping Address</h3>
92
+ <div class="inner_content">
93
+ <label>Name<span>:</span></label>
94
+ <span><?php echo $shipping_address_data['firstname'] . " " . $shipping_address_data['lastname']; ?></span>
95
+ </div>
96
+ <div class="inner_content">
97
+ <label>Delivery Address<span>:</span></label>
98
+ <span> <?php echo $shipping_address_data['street']; ?></span>
99
+ </div>
100
+ <div class="inner_content">
101
+ <label>Delivery City<span>:</span> </label>
102
+ <span> <?php echo $shipping_address_data['city']; ?></span>
103
+ </div>
104
+ <div class="inner_content">
105
+ <label>State<span>:</span></label>
106
+ <span> <?php echo $shipping_address_data['region']; ?></span>
107
+ </div>
108
+ <div class="inner_content">
109
+ <label>Country<span>:</span></label>
110
+ <span> <?php echo Mage::app()->getLocale()->getCountryTranslation($shippcode); ?></span>
111
+ </div>
112
+ <div class="inner_content">
113
+ <label>Postcode<span>:</span></label>
114
+ <span> <?php echo $shipping_address_data['postcode']; ?></span>
115
+ </div>
116
+ <div class="inner_content">
117
+ <label>Telephone<span>:</span></label>
118
+ <span> <?php echo $shipping_address_data['telephone']; ?></span>
119
+ </div>
120
+ </div>
121
+ <div class="order_summery">
122
+ <h3>Billing Address</h3>
123
+ <div class="inner_content">
124
+ <label>Name<span>:</span></label>
125
+ <span><?php echo $billingAddress['firstname'] . " " . $billingAddress['lastname']; ?></span>
126
+ </div>
127
+ <div class="inner_content">
128
+ <label>Delivery Address<span>:</span></label>
129
+ <span><?php echo $billingAddress['street']; ?></span>
130
+ </div>
131
+ <div class="inner_content">
132
+ <label>Delivery City<span>:</span></label>
133
+ <span><?php echo $billingAddress['city']; ?></span>
134
+ </div>
135
+ <div class="inner_content">
136
+ <label>State<span>:</span></label>
137
+ <span><?php echo $billingAddress['region']; ?></span>
138
+ </div>
139
+ <div class="inner_content">
140
+ <label>Country<span>:</span></label>
141
+ <span><?php echo Mage::app()->getLocale()->getCountryTranslation($billcode); ?></span>
142
+ </div>
143
+ <div class="inner_content">
144
+ <label>Postcode<span>:</span></label>
145
+ <span><?php echo $billingAddress['postcode']; ?></span>
146
+ </div>
147
+ <div class="inner_content">
148
+ <label>Telephone<span>:</span> </label>
149
+ <span><?php echo $billingAddress->getTelephone(); ?></span>
150
+ </div>
151
+ </div>
152
+ </div>
153
+ <div id="checkout-review-table-wrapper">
154
+ <table class="data-table" id="checkout-review-table">
155
+ <thead>
156
+ <tr>
157
+ <th rowspan="<?php echo $rowspan ?>"><?php echo $this->__('Product Name') ?></th>
158
+ <th class="a-center"><?php echo $this->__('Unit Price') ?></th>
159
+ <th class="a-center"><?php echo $this->__('Qty') ?></th>
160
+ <th class="a-center"><?php echo $this->__('SKU') ?></th>
161
+ <th class="a-center"><?php echo $this->__('Sub Total') ?></th>
162
+ </tr>
163
+ </thead>
164
+ <?php echo $this->getChildHtml('totals'); ?>
165
+ <tbody>
166
+ <?php
167
+ foreach ($items as $i):
168
+ $_product = Mage::getModel('catalog/product')->load($i->getProductId());
169
+ $options = $i->getProductOptions();
170
+ ?>
171
+ <tr>
172
+ <td rowspan="1">
173
+ <img class="product_img" src="<?php echo Mage::helper('catalog/image')->init($_product, 'thumbnail')->resize(75); ?>" alt="product-img" />
174
+ <?php
175
+ echo $i->getName();
176
+
177
+ $customOptions = $options['options'];
178
+ if (!empty($customOptions)) {
179
+ foreach ($customOptions as $option) {
180
+ ?>
181
+ <span class="bottom-align">
182
+ <?php
183
+ echo '<b>' . $option['label'] . '</b> :';
184
+ echo $optionValue = $option['value'];
185
+ ?></span>
186
+ <?php
187
+ }
188
+ }
189
+ ?>
190
+ </td>
191
+ <td><?php echo $this->helper('checkout')->formatPrice($i->getPrice()); ?></td>
192
+ <td><?php echo $i->getQtyOrdered(); ?></td>
193
+ <td><?php echo $i->getSku(); ?></td>
194
+ <td><?php echo $this->helper('checkout')->formatPrice($i->getRowTotal()); ?></td>
195
+ </tr>
196
+ <?php endforeach ?>
197
+ </tbody>
198
+ <tfoot>
199
+ <tr>
200
+ <td colspan="4" class="a-right">
201
+ <small>SubTotal:</small>
202
+ </td>
203
+ <td colspan="2" class="a-right">
204
+ <small><?php echo $this->helper('checkout')->formatPrice($order->getSubtotal()); ?></small>
205
+ </td>
206
+ </tr>
207
+ <tr class="shipping">
208
+ <td class="a-right" colspan="4">
209
+ <?php echo $this->__('Shipping & Handling(' . $order->getShippingDescription() . ')'); ?>
210
+ </td>
211
+ <td colspan="2" class="last a-right">
212
+ <span class="subtotlal-value">
213
+ <?php echo $this->helper('checkout')->formatPrice($order->getShippingInclTax()); ?>
214
+ </span>
215
+ </td>
216
+ </tr>
217
+ <?php if ($order->getDiscountAmount() != 0): ?>
218
+ <tr class="discount">
219
+ <td class="a-right" colspan="4">
220
+ <?php echo $this->__('Discount'); echo $order->getDiscountDescription() ? '('.$order->getDiscountDescription() .')' : ""; ?>
221
+ </td>
222
+ <td class="last a-right">
223
+ <span class="subtotlal-value">
224
+ <?php echo $this->helper('checkout')->formatPrice($order->getDiscountAmount()); ?>
225
+ </span>
226
+ </td>
227
+ </tr><?php
228
+ endif;
229
+ ?>
230
+ <tr class="grand_total last">
231
+ <td class="a-right" colspan="4"><strong><?php echo $this->__('Total') ?></strong></td>
232
+ <td colspan="2" class="last a-right">
233
+ <span class="subtotlal-value">
234
+ <strong><?php echo $this->helper('checkout')->formatPrice($order->getGrandTotal()); ?></strong>
235
+ </span>
236
+ </td>
237
+ </tr>
238
+ </tfoot>
239
+ </table>
240
+ </div>
241
+
242
+ <div class="buttons-set">
243
+ <button type="button" class="button" title="<?php echo $this->__('Continue Shopping') ?>" onclick="window.location = '<?php echo $this->getUrl() ?>'"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
244
+ </div>
245
+ <?php
246
+ if ($belowenable == 1 && $belowenableid != "") {
247
+ echo $this->getLayout()->createBlock('cms/block')->setBlockId($belowenableid)->toHtml();
248
+ }
249
+ if ($newsLetter) {
250
+ ?>
251
+ <div class="order-newsletter">
252
+ <?php echo $this->getLayout()->createBlock('newsletter/subscribe')->setTemplate('newsletter/subscribe.phtml')->toHtml(); ?>
253
+ </div>
254
+ <?php
255
+ }
app/etc/modules/Solwin_AdvanceOrderSuccess.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Solwin_AdvanceOrderSuccess>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </Solwin_AdvanceOrderSuccess>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Solwin_AdvanceOrderSuccess</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>This plugin will provide all your order information about your order on order success page.</summary>
10
+ <description>This will provide all the order informations and details like: &#xD;
11
+ 1) Billing Information&#xD;
12
+ 2) Shipping Information&#xD;
13
+ 3) Shipping and Payment Methods&#xD;
14
+ 4) Product Details&#xD;
15
+ 5) Total, Descount and Subtotals</description>
16
+ <notes>This will make your boring order success page attractive. And also provide all the informations related customers&amp;apos; order. No need to go to My orders page to view the order informaion.</notes>
17
+ <authors><author><name>Sanjay Dabhoya</name><user>solwin</user><email>stdabhoya@yahoo.com</email></author></authors>
18
+ <date>2015-07-30</date>
19
+ <time>07:35:28</time>
20
+ <contents><target name="mageetc"><dir name="modules"><file name="Solwin_AdvanceOrderSuccess.xml" hash="5fb085ec7c3e11e154ca4b08e9f71fb6"/></dir></target><target name="magecommunity"><dir name="Solwin"><dir name="AdvanceOrderSuccess"><dir name="Block"><file name="Index.php" hash="c6543827e5288619e0602462afdfa3e2"/></dir><dir name="controllers"><file name="IndexController.php" hash="1e33bf39de3e0ec56ddb0c3460f74ba2"/></dir><dir name="etc"><file name="adminhtml.xml" hash="5a03a86c58888ee7c941841734245beb"/><file name="config.xml" hash="508706e52e9dd7c73213c180d27ef519"/><file name="system.xml" hash="dec3b35ebd1b3ebcae73a65f94ae7972"/></dir><dir name="Helper"><file name="Data.php" hash="453384d77df8d66f291cc74f9aefba71"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="advanceordersuccess.xml" hash="99ddfaa28b4523d5152b9c82a7e64e29"/></dir><dir name="template"><dir name="advanceordersuccess"><file name="index.phtml" hash="4cf02cc405f867b2e838497484ac9312"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="solwinadvanceorder.css" hash="a309b45c5c3e7850ca316dda47e9abb2"/></dir></dir></dir></dir></target></contents>
21
+ <compatible/>
22
+ <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
23
+ </package>
skin/frontend/default/default/css/solwinadvanceorder.css ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #checkout-review-table-wrapper,.myorder-wrapper{
2
+ width:100%;
3
+ float: left;
4
+ }
5
+ .myorder,.order_summery,.payment_method {
6
+ width: 45%;
7
+ float:left;
8
+ background-color: #fff;
9
+ color: #5A5A5C;
10
+ padding: 15px;
11
+ margin-bottom: 20px;
12
+ margin-right: 20px;
13
+ position: relative;
14
+ }
15
+ .myorder-wrapper div:last-child{
16
+ margin-right: 0;
17
+ }
18
+ .myorder h3,.order_summery h3,.payment_method h3{
19
+ background-color: #f69838;
20
+ color: #fff;
21
+ font-weight: bolder;
22
+ text-transform: uppercase;
23
+ margin: -15px -15px 10px;
24
+ padding: 5px 15px;
25
+ }
26
+ .inner_content {
27
+ float: left;
28
+ margin-bottom: 5px;
29
+ width: 100%;
30
+ }
31
+ .inner_content span,.inner_content label{
32
+ width:50%;
33
+ float:left;
34
+ display: block;
35
+ }
36
+ .inner_content label span{
37
+ float: right;
38
+ padding-right: 10px;
39
+ width: auto;
40
+ }
41
+ .data-table thead th{
42
+ background: #dee3e3;
43
+ color: #fff;
44
+ border-right: 1px solid #f69838;
45
+ font-size: 14px;
46
+ text-transform: uppercase;
47
+ padding: 5px 8px;
48
+ }
49
+ .data-table {
50
+ border: 1px solid #dee3e3;
51
+ width: 100%;
52
+ }
53
+ .data-table thead th {
54
+ background: none repeat scroll 0 0 #dee3e3;
55
+ border-right: 1px solid #dee3e3;
56
+ color: #5a5a5c;
57
+ }
58
+ .data-table tfoot {
59
+ border-bottom: 1px solid #d9dde3;
60
+ }
61
+ .data-table tfoot tr {
62
+ background-color: #dee3e3 !important;
63
+ }
64
+ .data-table tbody td {
65
+ color: #5a5a5c;
66
+ }
67
+ .data-table tfoot td {
68
+ border-right: 1px solid #dee3e3;
69
+ color:#5a5a5c;
70
+ }
71
+ img.product_img{
72
+ border: 1px solid #dee3e3;
73
+ vertical-align: middle;
74
+ }
75
+ .sub-title{
76
+ color:#5a5a5c;
77
+ text-transform: uppercase;
78
+ }
79
+ .myorder a.print-icon {
80
+ background: url("../images/i_print.gif") no-repeat scroll left top rgba(0, 0, 0, 0);
81
+ border: medium none !important;
82
+ display: inline-block;
83
+ font-size: 0;
84
+ height: 16px;
85
+ padding: 0;
86
+ position: absolute;
87
+ right: 10px;
88
+ top: 7px;
89
+ width: 16px;
90
+ }
91
+ .bottom-align{
92
+ vertical-align: bottom;
93
+ }
94
+ .order-newsletter{
95
+ display: block;
96
+ margin-top: 20px;
97
+ }