Vsourz_Order_Success - Version 1.0.4

Version Notes

==> Updated System Config Default value option
==> Code formatting issues resolved.

Download this release

Release Info

Developer Vsourz Digital
Extension Vsourz_Order_Success
Version 1.0.4
Comparing to
See all releases


Code changes from version 1.0.3 to 1.0.4

app/code/community/Vsourz/Ordersuccess/etc/config.xml CHANGED
@@ -32,7 +32,7 @@
32
  </helpers>
33
  </global>
34
  <default>
35
- <Vsourz_Ordersuccess>
36
  <general>
37
  <enable_extension>1</enable_extension>
38
  </general>
@@ -50,6 +50,6 @@
50
  <newsletter_subscription_section>
51
  <display_section>1</display_section>
52
  </newsletter_subscription_section>
53
- </Vsourz_Ordersuccess>
54
  </default>
55
  </config>
32
  </helpers>
33
  </global>
34
  <default>
35
+ <tab1>
36
  <general>
37
  <enable_extension>1</enable_extension>
38
  </general>
50
  <newsletter_subscription_section>
51
  <display_section>1</display_section>
52
  </newsletter_subscription_section>
53
+ </tab1>
54
  </default>
55
  </config>
app/design/frontend/base/default/template/vsourz/success.phtml CHANGED
@@ -1,209 +1,262 @@
1
  <?php
2
  $displayOrderTable=Mage::getStoreConfig('tab1/order_information_system/display_order_table');
3
- $displayProductImage=Mage::getStoreConfig('tab1/order_information_system/display_product_image');
4
  $displayDiscount=Mage::getStoreConfig('tab1/order_information_system/display_discount');
5
  $displayShippingRate=Mage::getStoreConfig('tab1/order_information_system/display_shipping_rates');
6
  $displayTax=Mage::getStoreConfig('tab1/order_information_system/display_tax');
7
  $displayCmsBlockAbove=Mage::getStoreConfig('tab1/cms_block_section/cms_block_above');
8
- $cmsBlockIdAbove=Mage::getStoreConfig('tab1/cms_block_section/cms_block_id_above');
9
  $displayCmsBlockBelow=Mage::getStoreConfig('tab1/cms_block_section/cms_block_below');
10
  $cmsBlockIdBelow=Mage::getStoreConfig('tab1/cms_block_section/cms_block_id_below');
11
- $newsLetter=Mage::getStoreConfig('tab1/newsletter_subscription_section/display_section');
12
  ?>
13
 
14
- <?php $_coreHelper = $this->helper('core'); ?>
 
 
15
  <div class="thanks-outer">
16
 
17
- <?php if($this->getTopBlock()!=false) { ?>
18
- <?php if($displayCmsBlockAbove==1){ ?>
19
- <div class="order-cms-block block1">
20
- <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId($this->getTopBlock())->toHTML(); ?>
21
- </div>
22
- <?php } } ?>
23
-
24
- <div class="thanks-inner">
25
- <div class="page-title thank">
26
- <h1><?php echo $this->__('Thank You') ?></h1>
27
- </div>
28
-
29
- <?php echo $this->getMessagesBlock()->getGroupedHtml()?>
30
-
31
- <div class="thkbox">
32
-
33
- <div class="thk-box1">
34
-
35
- <div class="outer-box">
36
- <h3><?php echo $this->__('Thank you for your order!') ?></h3>
37
- <div class="inner-box">
38
-
39
- <?php if ($this->getOrderId()):?>
40
- <?php if ($this->getCanViewOrder()) :?>
41
- <?php else :?>
42
- <?php endif;?>
43
- <p><?php echo $this->__('You will receive an order confirmation email with details of your order and a link to track its progress.') ?></p>
44
- <?php if ($this->getCanViewOrder() && $this->getCanPrintOrder()) :?>
45
-
46
- <?php echo $this->getChildHtml() ?>
47
-
48
- <?php endif;?>
49
- <?php endif;?>
50
- <a class="button btn-continue btn-inline" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) ?>" title="<?php echo $this->__('Continue Shopping') ?>" ><span><span><?php echo $this->__('Continue Shopping') ?></span></span></a>
51
-
52
- </div>
53
- </div>
54
- </div>
55
-
56
- <div class="thk-box2">
57
- <div class="outer-box">
58
- <h3><?php echo $this->__('Your order summary') ?></h3>
59
- <div class="inner-box">
60
- <?php if ($this->getOrderId()):?>
61
- <?php echo $this->__('<a href="%s" onclick="this.target=\'_blank\'" class="button print-icon" title="Print Details">Print Details</a>', $this->getPrintUrl()) ?>
62
- <?php echo $this->getChildHtml() ?>
63
- <?php endif;?>
64
- <?php //******************************Order Summary *********************** ?>
65
- <ul>
66
- <?php
67
- if($this->getOrderId()):
68
- $orderObj = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId());
69
- $lastOrder = Mage::getModel('sales/order')->load(Mage::getSingleton('checkout/session')->getLastOrderId());
70
- $billingAddress = $lastOrder->getBillingAddress();
71
- $shippingAddress = $lastOrder->getShippingAddress();
72
- ?>
73
- <li class="first"><label><?php echo $this->__('Date') ?></label><span class="sep">:</span><span><? echo $orderObj->getCreatedAtStoreDate(); ?></span></li>
74
- <li><label><?php echo $this->__('Order Number') ?></label><span class="sep">:</span><span><?php if ($this->getCanViewOrder()) :?>
75
- <?php echo $this->__(sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getViewOrderUrl()), $this->escapeHtml($this->getOrderId()))) ?>
76
- <?php else :?>
77
- <?php echo $this->__($this->escapeHtml($this->getOrderId())) ?>
78
- <?php endif;?>
79
- <?php echo $this->getChildHtml() ?></span>
80
- </li>
81
- <li><label><?php echo $this->__('Order Total') ?></label><span class="sep">:</span><span><?php echo $_coreHelper->formatPrice($orderObj->getGrandTotal(),true) ?></span></li>
82
- <li><label><?php echo $this->__('Name') ?></label></label><span class="sep">:</span><span><? $shippingAddress; echo $shippingAddress['firstname']; ?> <?php echo $shippingAddress['lastname'];?></span></li>
83
- <li><label><?php echo $this->__('Delivery Address') ?></label></label><span class="sep">:</span><span><?php echo $shippingAddress['street']; ?></span></li>
84
- <li><label><?php echo $this->__('Delivery City') ?></label></label><span class="sep">:</span><span><?php echo $shippingAddress['city']; ?></span></li>
85
- <li><label><?php echo $this->__('State') ?></label></label><span class="sep">:</span><span><?php echo $shippingAddress['region'];?></span></li>
86
- <li><label><?php echo $this->__('Postcode') ?></label></label><span class="sep">:</span><span><?php echo $shippingAddress['postcode'];?></span></li>
87
- <li class="last"><label><?php echo $this->__('Country ID') ?></label></label><span class="sep">:</span><span><?php echo $shippingAddress['country_id'];?></span></li>
88
- <? endif;?>
89
- </ul>
90
- </div>
91
- </div>
92
- </div>
93
- <div class="clear"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  </div>
95
 
96
  <?php
97
  //**********************************Order Details***************************
98
- if($displayOrderTable==1)
99
- {
100
  if($this->getOrderId()):
101
  $orderItems = $orderObj->getAllVisibleItems();
102
  ?>
103
  <div class="pro-cart-summery">
104
-
105
- <table class="cart-summery-table data-table">
106
-
107
- <thead>
108
- <th class="first a-left"><?php echo $this->__('Product Name') ?></th>
109
- <th class="a-center"><?php echo $this->__('Quantity') ?></th>
110
- <th class="a-center"><?php echo $this->__('SKU') ?></th>
111
- <th class="a-center"><?php echo $this->__('Unit Price') ?></th>
112
- <th class="a-right"><?php echo $this->__('Subtotal') ?></th>
113
- </thead>
114
-
115
- <tbody>
116
- <? foreach($orderItems as $items)
117
- {
118
- $_product = Mage::getModel('catalog/product')->load($items->getProductId());
119
- $product_small_image_path = Mage::helper('catalog/image')->init($_product, 'small_image')->resize(75);
120
- ?>
121
- <tr>
122
-
123
- <td class="first cart-name a-left">
124
-
125
- <?php if($displayProductImage==1) { ?>
126
- <div class="product-image-outer">
127
- <span class="product-image-success">
128
- <img src="<?php echo $product_small_image_path ?>" align="<? echo $items->getName();?>"/></span>
129
- <?php } ?>
130
- <h3 class="product-name"><? echo $items->getName();?></h3>
131
- </div>
132
- </td>
133
-
134
- <td class="pro-qty a-center"><? echo number_format($items->getQtyOrdered(),0); ?></td>
135
-
136
- <td class="sku a-center"><?php echo $this->htmlEscape($_product->getSku()) ?></td>
137
-
138
- <td class="pro-price a-center"><?php echo $_coreHelper->formatPrice($items->getPrice(),true) ?></td>
139
-
140
- <?php $totalprice = ($items->getQtyOrdered())*($items->getPrice());?>
141
-
142
- <td class="total-price a-right"><span class="alt-bg"><?php echo $_coreHelper->formatPrice($totalprice,true) ?></span></td>
143
-
144
- </tr>
145
- <?php
146
- }
147
- ?>
148
- </tbody>
149
- <tfoot>
150
- <tr class="subtotal firt">
151
- <td class="a-right" colspan="4"><span class="subtotlal-label"><?php echo $this->__('Subtotal') ?></span></td>
152
- <td class="a-right"><span class="subtotlal-value"><?php echo $_coreHelper->formatPrice($orderObj->getSubtotal(),true) ?></span></td>
153
- </tr>
154
-
155
- <?php// echo '<pre>'; print_r($orderObj); echo '</pre>';?>
156
- <?php if($displayDiscount==1) { ?>
157
- <?php if($orderObj->getDiscountAmount() != 0)
158
- {
159
- ?>
160
- <tr class="discount">
161
- <td class="a-right" colspan="4"><?php echo $this->__('Discount').'('.$orderObj->getDiscountDescription().')' ?></td>
162
- <td class="last a-right"><span class="subtotlal-value"><?php echo $_coreHelper->formatPrice($orderObj->getDiscountAmount(),true) ?></span></td>
163
- </tr>
164
- <?php } } ?>
165
 
166
- <?php if($displayShippingRate==1) { ?>
167
- <tr class="shipping">
168
- <td class="a-right" colspan="4"><?php echo $this->__('Shipping & Handling('.$orderObj->getShippingDescription().')'); ?></td>
169
- <td class="last a-right"><span class="subtotlal-value"><?php echo $_coreHelper->formatPrice($orderObj->getShippingInclTax(),true) ?></span></td>
170
- </tr>
171
- <?php } ?>
172
-
173
- <?php if($displayTax==1) { ?>
174
- <?php
175
- if($orderObj->getTaxAmount() != 0)
176
- {
177
- ?>
178
- <tr class="tax">
179
- <td class="a-right" colspan="4"><?php echo $this->__('Tax')?></td>
180
- <td class="last a-right"><span class="subtotlal-value"><?php echo $_coreHelper->formatPrice($orderObj->getTaxAmount(),true) ?></span></td>
181
- </tr>
182
- <?php } } ?>
183
-
184
-
185
- <tr class="grand_total last">
186
- <td class="a-right" colspan="4"><strong><?php echo $this->__('Total') ?></strong></td>
187
- <td class="last a-right"><span class="subtotlal-value"><strong><?php echo $_coreHelper->formatPrice($orderObj->getGrandTotal(), true);?></strong></span></td>
188
- </tr>
189
-
190
-
191
- </tfoot>
192
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
193
  </div>
194
- <?php endif; } ?>
195
- </div>
 
196
 
197
- <?php if($this->getBottomBlock()!=false) { ?>
198
- <?php if($displayCmsBlockBelow==1) { ?>
199
- <div class="order-cms-block block_2">
200
- <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId($this->getBottomBlock())->toHTML(); ?>
201
- </div>
202
- <?php } } ?>
 
 
 
203
 
204
- <?php if($newsLetter==1) { ?>
205
- <div class="order-newsletter">
206
- <?php echo $this->getLayout()->createBlock('newsletter/subscribe')->setTemplate('newsletter/subscribe.phtml')->toHtml(); ?>
207
- </div>
208
- <?php } ?>
 
209
  </div>
1
  <?php
2
  $displayOrderTable=Mage::getStoreConfig('tab1/order_information_system/display_order_table');
3
+ $displayProductImage=Mage::getStoreConfig('tab1/order_information_system/display_product_image');
4
  $displayDiscount=Mage::getStoreConfig('tab1/order_information_system/display_discount');
5
  $displayShippingRate=Mage::getStoreConfig('tab1/order_information_system/display_shipping_rates');
6
  $displayTax=Mage::getStoreConfig('tab1/order_information_system/display_tax');
7
  $displayCmsBlockAbove=Mage::getStoreConfig('tab1/cms_block_section/cms_block_above');
8
+ $cmsBlockIdAbove=Mage::getStoreConfig('tab1/cms_block_section/cms_block_id_above');
9
  $displayCmsBlockBelow=Mage::getStoreConfig('tab1/cms_block_section/cms_block_below');
10
  $cmsBlockIdBelow=Mage::getStoreConfig('tab1/cms_block_section/cms_block_id_below');
11
+ $newsLetter=Mage::getStoreConfig('tab1/newsletter_subscription_section/display_section');
12
  ?>
13
 
14
+ <?php
15
+ $_coreHelper = $this->helper('core');
16
+ ?>
17
  <div class="thanks-outer">
18
 
19
+ <?php if($this->getTopBlock()!=false): ?>
20
+ <?php if($displayCmsBlockAbove==1): ?>
21
+ <div class="order-cms-block block1"><?php
22
+ echo $this->getLayout()->createBlock('cms/block')->setBlockId($this->getTopBlock())->toHTML();
23
+ ?></div><?php
24
+ endif;
25
+ endif;
26
+ ?><div class="thanks-inner">
27
+ <div class="page-title thank">
28
+ <h1><?php echo $this->__('Thank You') ?></h1>
29
+ </div><?php
30
+ echo $this->getMessagesBlock()->getGroupedHtml()
31
+ ?><div class="thkbox">
32
+ <div class="thk-box1">
33
+ <div class="outer-box">
34
+ <h3><?php echo $this->__('Thank you for your order!') ?></h3>
35
+ <div class="inner-box">
36
+ <?php if($this->getOrderId()): ?>
37
+ <?php if($this->getCanViewOrder()): ?>
38
+ <?php else: ?>
39
+ <?php endif; ?>
40
+ <p><?php echo $this->__('You will receive an order confirmation email with details of your order and a link to track its progress.') ?></p>
41
+ <?php if($this->getCanViewOrder() && $this->getCanPrintOrder()): ?>
42
+ <?php echo $this->getChildHtml() ?>
43
+ <?php endif; ?>
44
+ <?php endif; ?>
45
+ <a class="button btn-continue btn-inline" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) ?>" title="<?php echo $this->__('Continue Shopping') ?>" ><span><span><?php echo $this->__('Continue Shopping') ?></span></span></a>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ <div class="thk-box2">
50
+ <div class="outer-box">
51
+ <h3><?php echo $this->__('Your order summary') ?></h3>
52
+ <div class="inner-box">
53
+ <?php if($this->getOrderId()): ?>
54
+ <?php echo $this->__('<a href="%s" onclick="this.target=\'_blank\'" class="button print-icon" title="Print Details">Print Details</a>', $this->getPrintUrl()) ?>
55
+ <?php echo $this->getChildHtml() ?>
56
+ <?php endif; ?>
57
+ <?php //******************************Order Summary *********************** ?>
58
+ <ul>
59
+ <?php
60
+ if($this->getOrderId()):
61
+ $orderObj = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId());
62
+ $lastOrder = Mage::getModel('sales/order')->load(Mage::getSingleton('checkout/session')->getLastOrderId());
63
+ $billingAddress = $lastOrder->getBillingAddress();
64
+ $shippingAddress = $lastOrder->getShippingAddress();
65
+ ?>
66
+ <li class="first">
67
+ <label><?php echo $this->__('Date') ?></label>
68
+ <span class="sep">:</span>
69
+ <span><?php echo $orderObj->getCreatedAtStoreDate(); ?></span>
70
+ </li>
71
+ <li>
72
+ <label><?php echo $this->__('Order Number') ?></label>
73
+ <span class="sep">:</span>
74
+ <span>
75
+ <?php if($this->getCanViewOrder()): ?>
76
+ <?php echo $this->__(sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getViewOrderUrl()), $this->escapeHtml($this->getOrderId()))) ?>
77
+ <?php else: ?>
78
+ <?php echo $this->__($this->escapeHtml($this->getOrderId())) ?>
79
+ <?php endif; ?>
80
+ <?php echo $this->getChildHtml() ?>
81
+ </span>
82
+ </li>
83
+ <li>
84
+ <label><?php echo $this->__('Order Total') ?></label>
85
+ <span class="sep">:</span>
86
+ <span><?php echo $_coreHelper->formatPrice($orderObj->getGrandTotal(),true) ?></span>
87
+ </li>
88
+ <li>
89
+ <label><?php echo $this->__('Name') ?></label>
90
+ <span class="sep">:</span>
91
+ <span>
92
+ <?php
93
+ $shippingAddress;
94
+ echo $shippingAddress['firstname'];
95
+ ?>
96
+ <?php echo $shippingAddress['lastname']; ?>
97
+ </span>
98
+ </li>
99
+ <li>
100
+ <label><?php echo $this->__('Delivery Address') ?></label>
101
+ <span class="sep">:</span>
102
+ <span><?php echo $shippingAddress['street']; ?></span>
103
+ </li>
104
+ <li>
105
+ <label><?php echo $this->__('Delivery City') ?></label>
106
+ <span class="sep">:</span>
107
+ <span><?php echo $shippingAddress['city']; ?></span>
108
+ </li>
109
+ <li>
110
+ <label><?php echo $this->__('State') ?></label>
111
+ <span class="sep">:</span>
112
+ <span><?php echo $shippingAddress['region']; ?></span>
113
+ </li>
114
+ <li>
115
+ <label><?php echo $this->__('Postcode') ?></label>
116
+ <span class="sep">:</span>
117
+ <span><?php echo $shippingAddress['postcode']; ?></span>
118
+ </li>
119
+ <li class="last">
120
+ <label><?php echo $this->__('Country ID') ?></label>
121
+ <span class="sep">:</span>
122
+ <span><?php echo $shippingAddress['country_id']; ?></span>
123
+ </li>
124
+ <?php endif; ?>
125
+ </ul>
126
+ </div>
127
+ </div>
128
+ </div>
129
+ <div class="clear"></div>
130
  </div>
131
 
132
  <?php
133
  //**********************************Order Details***************************
134
+ if($displayOrderTable==1):
 
135
  if($this->getOrderId()):
136
  $orderItems = $orderObj->getAllVisibleItems();
137
  ?>
138
  <div class="pro-cart-summery">
139
+ <table class="cart-summery-table data-table">
140
+ <thead>
141
+ <th class="first a-left"><?php echo $this->__('Product Name') ?></th>
142
+ <th class="a-center"><?php echo $this->__('Quantity') ?></th>
143
+ <th class="a-center"><?php echo $this->__('SKU') ?></th>
144
+ <th class="a-center"><?php echo $this->__('Unit Price') ?></th>
145
+ <th class="a-right"><?php echo $this->__('Subtotal') ?></th>
146
+ </thead>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
 
148
+ <tbody><?php foreach($orderItems as $items)
149
+ {
150
+ $_product = Mage::getModel('catalog/product')->load($items->getProductId());
151
+ $product_small_image_path = Mage::helper('catalog/image')->init($_product,'small_image')->resize(75);
152
+ ?><tr>
153
+ <td class="first cart-name a-left">
154
+ <?php if($displayProductImage==1): ?>
155
+ <div class="product-image-outer">
156
+ <span class="product-image-success">
157
+ <img src="<?php echo $product_small_image_path ?>" align="<?php echo $items->getName(); ?>"/>
158
+ </span><?php
159
+ endif;
160
+ ?><h3 class="product-name"><?php echo $items->getName(); ?></h3>
161
+ </div>
162
+ </td>
163
+ <td class="pro-qty a-center"><?php echo number_format($items->getQtyOrdered(),0); ?></td>
164
+ <td class="sku a-center"><?php echo $this->htmlEscape($_product->getSku()) ?></td>
165
+ <td class="pro-price a-center"><?php echo $_coreHelper->formatPrice($items->getPrice(),true) ?></td>
166
+ <?php $totalprice = ($items->getQtyOrdered())*($items->getPrice()); ?>
167
+ <td class="total-price a-right">
168
+ <span class="alt-bg"><?php echo $_coreHelper->formatPrice($totalprice,true) ?></span>
169
+ </td>
170
+ </tr><?php
171
+ }
172
+ ?>
173
+ </tbody>
174
+ <tfoot>
175
+ <tr class="subtotal firt">
176
+ <td class="a-right" colspan="4">
177
+ <span class="subtotlal-label"><?php echo $this->__('Subtotal') ?></span>
178
+ </td>
179
+ <td class="a-right">
180
+ <span class="subtotlal-value">
181
+ <?php echo $_coreHelper->formatPrice($orderObj->getSubtotal(),true) ?>
182
+ </span>
183
+ </td>
184
+ </tr>
185
+
186
+ <?php //echo '<pre>'; print_r($orderObj); echo '</pre>'; ?>
187
+ <?php if($displayDiscount==1): ?>
188
+ <?php if($orderObj->getDiscountAmount() != 0): ?>
189
+ <tr class="discount">
190
+ <td class="a-right" colspan="4">
191
+ <?php echo $this->__('Discount').'('.$orderObj->getDiscountDescription().')' ?>
192
+ </td>
193
+ <td class="last a-right">
194
+ <span class="subtotlal-value">
195
+ <?php echo $_coreHelper->formatPrice($orderObj->getDiscountAmount(),true) ?>
196
+ </span>
197
+ </td>
198
+ </tr><?php
199
+ endif;
200
+ endif;
201
+ ?>
202
+
203
+ <?php if($displayShippingRate==1): ?>
204
+ <tr class="shipping">
205
+ <td class="a-right" colspan="4">
206
+ <?php echo $this->__('Shipping & Handling('.$orderObj->getShippingDescription().')'); ?>
207
+ </td>
208
+ <td class="last a-right">
209
+ <span class="subtotlal-value">
210
+ <?php echo $_coreHelper->formatPrice($orderObj->getShippingInclTax(),true) ?>
211
+ </span>
212
+ </td>
213
+ </tr><?php
214
+ endif;
215
+ ?>
216
+
217
+ <?php if($displayTax==1): ?>
218
+ <?php if($orderObj->getTaxAmount() != 0): ?>
219
+ <tr class="tax">
220
+ <td class="a-right" colspan="4"><?php echo $this->__('Tax')?></td>
221
+ <td class="last a-right">
222
+ <span class="subtotlal-value">
223
+ <?php echo $_coreHelper->formatPrice($orderObj->getTaxAmount(),true) ?>
224
+ </span>
225
+ </td>
226
+ </tr><?php
227
+ endif;
228
+ endif;
229
+ ?>
230
+
231
+ <tr class="grand_total last">
232
+ <td class="a-right" colspan="4"><strong><?php echo $this->__('Total') ?></strong></td>
233
+ <td class="last a-right">
234
+ <span class="subtotlal-value">
235
+ <strong><?php echo $_coreHelper->formatPrice($orderObj->getGrandTotal(),true); ?></strong>
236
+ </span>
237
+ </td>
238
+ </tr>
239
+ </tfoot>
240
+ </table>
241
  </div>
242
+ <?php endif;
243
+ endif;
244
+ ?></div>
245
 
246
+ <?php if($this->getBottomBlock()!=false): ?>
247
+ <?php if($displayCmsBlockBelow==1): ?>
248
+ <div class="order-cms-block block_2">
249
+ <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId($this->getBottomBlock())->toHTML(); ?>
250
+ </div>
251
+ <?php
252
+ endif;
253
+ endif;
254
+ ?>
255
 
256
+ <?php if($newsLetter==1): ?>
257
+ <div class="order-newsletter">
258
+ <?php echo $this->getLayout()->createBlock('newsletter/subscribe')->setTemplate('newsletter/subscribe.phtml')->toHtml(); ?>
259
+ </div><?php
260
+ endif;
261
+ ?>
262
  </div>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Vsourz_Order_Success</name>
4
- <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/MIT">Massachusetts Institute of Technology License (MITL)</license>
7
  <channel>community</channel>
@@ -46,11 +46,12 @@ Go To OrderSuccessPage &gt;&gt; CMS Block Section &gt;&gt; CMS Block Below Order
46
  &#xD;
47
  5) Displaying newsletter subscription option&#xD;
48
  Go To OrderSuccessPage &gt;&gt; Newsletter Subscription Section &gt;&gt; Display Newsletter</description>
49
- <notes>Extension Update</notes>
 
50
  <authors><author><name>Vsourz Digital</name><user>MAG002979323</user><email>mehul@vsourz.com</email></author></authors>
51
- <date>2015-06-18</date>
52
- <time>08:56:53</time>
53
- <contents><target name="magecommunity"><dir name="Vsourz"><dir name="Ordersuccess"><dir name="Block"><dir name="Onepage"><file name="Success.php" hash="4769a9eaf169d3fb09c83e744e533c59"/></dir></dir><dir name="Helper"><file name="Data.php" hash="ae9a3997f28613251f34ad1e4500a8de"/></dir><dir name="etc"><file name="adminhtml.xml" hash="41036ac58e287fd25c1a7395c22689db"/><file name="config.xml" hash="f1f7d7401cbb9c3ac144a803170227fa"/><file name="system.xml" hash="1514043788608f7cda0de9cce403bbf6"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Vsourz_Ordersuccess.xml" hash="e2c0af5054d47da0dd98561c86d49f2d"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="vsourz"><file name="ordersuccess.xml" hash="127e77f1d5f0f427d135616b932f1c6b"/></dir></dir><dir name="template"><dir name="vsourz"><file name="success.phtml" hash="663929526a4e6f4d2821603ae74dac2c"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="order-success.css" hash="8c1eb5cfaf9c9edf5f8d21d64d7a8372"/></dir><dir name="images"><file name="i_print.gif" hash="0aed138181495642e9ab29e55d194d40"/></dir></dir></dir></dir></target></contents>
54
  <compatible/>
55
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
56
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Vsourz_Order_Success</name>
4
+ <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/MIT">Massachusetts Institute of Technology License (MITL)</license>
7
  <channel>community</channel>
46
  &#xD;
47
  5) Displaying newsletter subscription option&#xD;
48
  Go To OrderSuccessPage &gt;&gt; Newsletter Subscription Section &gt;&gt; Display Newsletter</description>
49
+ <notes>==&gt; Updated System Config Default value option&#xD;
50
+ ==&gt; Code formatting issues resolved.</notes>
51
  <authors><author><name>Vsourz Digital</name><user>MAG002979323</user><email>mehul@vsourz.com</email></author></authors>
52
+ <date>2015-07-01</date>
53
+ <time>07:56:47</time>
54
+ <contents><target name="magecommunity"><dir name="Vsourz"><dir name="Ordersuccess"><dir name="Block"><dir name="Onepage"><file name="Success.php" hash="4769a9eaf169d3fb09c83e744e533c59"/></dir></dir><dir name="Helper"><file name="Data.php" hash="ae9a3997f28613251f34ad1e4500a8de"/></dir><dir name="etc"><file name="adminhtml.xml" hash="41036ac58e287fd25c1a7395c22689db"/><file name="config.xml" hash="6319c94dc444388e093437c7f41b7479"/><file name="system.xml" hash="1514043788608f7cda0de9cce403bbf6"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Vsourz_Ordersuccess.xml" hash="e2c0af5054d47da0dd98561c86d49f2d"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="vsourz"><file name="ordersuccess.xml" hash="127e77f1d5f0f427d135616b932f1c6b"/></dir></dir><dir name="template"><dir name="vsourz"><file name="success.phtml" hash="0aee7287e35d3b6050063d95d03e93c4"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="order-success.css" hash="0cbdcad7b43d4d9c87de5ccda30a0937"/></dir><dir name="images"><file name="i_print.gif" hash="0aed138181495642e9ab29e55d194d40"/></dir></dir></dir></dir></target></contents>
55
  <compatible/>
56
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
57
  </package>
skin/frontend/base/default/css/order-success.css CHANGED
@@ -28,6 +28,7 @@
28
  border:1px solid #e5e5e5;
29
  padding:15px;
30
  background:#fff;
 
31
  }
32
  .thanks-inner{margin:10px 0;}
33
 
28
  border:1px solid #e5e5e5;
29
  padding:15px;
30
  background:#fff;
31
+ color:#000;
32
  }
33
  .thanks-inner{margin:10px 0;}
34