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 |
-
<
|
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 |
-
</
|
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
|
|
|
|
|
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 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
<div class="page-title thank">
|
26 |
-
|
27 |
-
</div
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
<div class="
|
32 |
-
|
33 |
-
<div class="
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
<?php if
|
40 |
-
<?php
|
41 |
-
|
42 |
-
<?php endif
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
<
|
51 |
-
|
52 |
-
</
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
<
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
<
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
<?php
|
77 |
-
|
78 |
-
<?php
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
</div>
|
95 |
|
96 |
<?php
|
97 |
//**********************************Order Details***************************
|
98 |
-
|
99 |
-
{
|
100 |
if($this->getOrderId()):
|
101 |
$orderItems = $orderObj->getAllVisibleItems();
|
102 |
?>
|
103 |
<div class="pro-cart-summery">
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
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 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
</div>
|
194 |
-
<?php endif;
|
195 |
-
|
|
|
196 |
|
197 |
-
<?php if($this->getBottomBlock()!=false)
|
198 |
-
<?php if($displayCmsBlockBelow==1)
|
199 |
-
<div class="order-cms-block block_2">
|
200 |
-
|
201 |
-
</div>
|
202 |
-
<?php
|
|
|
|
|
|
|
203 |
|
204 |
-
<?php if($newsLetter==1)
|
205 |
-
<div class="order-newsletter">
|
206 |
-
|
207 |
-
</div
|
208 |
-
|
|
|
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.
|
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 >> CMS Block Section >> CMS Block Below Order
|
|
46 |

|
47 |
5) Displaying newsletter subscription option
|
48 |
Go To OrderSuccessPage >> Newsletter Subscription Section >> Display Newsletter</description>
|
49 |
-
<notes
|
|
|
50 |
<authors><author><name>Vsourz Digital</name><user>MAG002979323</user><email>mehul@vsourz.com</email></author></authors>
|
51 |
-
<date>2015-
|
52 |
-
<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="
|
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 |

|
47 |
5) Displaying newsletter subscription option
|
48 |
Go To OrderSuccessPage >> Newsletter Subscription Section >> Display Newsletter</description>
|
49 |
+
<notes>==> Updated System Config Default value option
|
50 |
+
==> 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 |
|