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.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- app/design/frontend/default/default/template/advanceordersuccess/index.phtml +81 -24
- app/design/frontend/rwd/default/layout/advanceordersuccess.xml +29 -0
- app/design/frontend/rwd/default/template/advanceordersuccess/index.phtml +312 -0
- package.xml +6 -6
- skin/frontend/rwd/default/css/solwinadvanceorder.css +97 -0
app/design/frontend/default/default/template/advanceordersuccess/index.phtml
CHANGED
@@ -3,6 +3,7 @@ $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);
|
@@ -166,33 +167,86 @@ if ($aboveenable == 1 && $aboveenableid != "") {
|
|
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 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
<?php
|
183 |
-
|
184 |
-
echo $optionValue = $option['value'];
|
185 |
-
?></span>
|
186 |
-
<?php
|
187 |
}
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
<?php endforeach ?>
|
197 |
</tbody>
|
198 |
<tfoot>
|
@@ -217,7 +271,10 @@ if ($aboveenable == 1 && $aboveenableid != "") {
|
|
217 |
<?php if ($order->getDiscountAmount() != 0): ?>
|
218 |
<tr class="discount">
|
219 |
<td class="a-right" colspan="4">
|
220 |
-
<?php
|
|
|
|
|
|
|
221 |
</td>
|
222 |
<td class="last a-right">
|
223 |
<span class="subtotlal-value">
|
3 |
$order = Mage::getModel("sales/order")->loadByIncrementId($order_id); //load order by order id
|
4 |
|
5 |
$items = $order->getItemsCollection();
|
6 |
+
|
7 |
$colspan = $rowspan = 2;
|
8 |
|
9 |
$order_details = Mage::getModel('sales/order')->loadByIncrementId($order_id);
|
167 |
<?php
|
168 |
foreach ($items as $i):
|
169 |
$_product = Mage::getModel('catalog/product')->load($i->getProductId());
|
170 |
+
$productType = $_product->getTypeId();
|
171 |
+
$entityId = $_product->getEntityId();
|
172 |
+
|
173 |
$options = $i->getProductOptions();
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
|
175 |
+
if ($productType == "bundle") {
|
176 |
+
$bundled_product = new Mage_Catalog_Model_Product();
|
177 |
+
$bundled_product->load($entityId);
|
178 |
+
|
179 |
+
|
180 |
+
$selectionCollection = $bundled_product->getTypeInstance(true)->getSelectionsCollection(
|
181 |
+
$bundled_product->getTypeInstance(true)->getOptionsIds($bundled_product), $bundled_product
|
182 |
+
);
|
183 |
+
|
184 |
+
$bundled_items = array();
|
185 |
+
|
186 |
+
foreach ($selectionCollection as $option) {
|
187 |
+
$bundled_items[] = $option->product_id;
|
188 |
+
}
|
189 |
+
?>
|
190 |
+
|
191 |
+
<tr>
|
192 |
+
<td rowspan="1">
|
193 |
+
<img class="product_img" src="<?php echo Mage::helper('catalog/image')->init($_product, 'thumbnail')->resize(75); ?>" alt="product-img" />
|
194 |
+
<?php
|
195 |
+
echo $i->getName();
|
196 |
+
|
197 |
+
$customOptions = $options['options'];
|
198 |
+
if (!empty($customOptions)) {
|
199 |
+
foreach ($customOptions as $option) {
|
200 |
+
?>
|
201 |
+
<span class="bottom-align">
|
202 |
+
<?php
|
203 |
+
echo '<b>' . $option['label'] . '</b> :';
|
204 |
+
echo $optionValue = $option['value'];
|
205 |
+
?>
|
206 |
+
</span>
|
207 |
<?php
|
208 |
+
}
|
|
|
|
|
|
|
209 |
}
|
210 |
+
?>
|
211 |
+
</td>
|
212 |
+
<td><?php echo $this->helper('checkout')->formatPrice($i->getPrice()); ?></td>
|
213 |
+
<td><?php echo $i->getQtyOrdered(); ?></td>
|
214 |
+
<td><?php echo $i->getSku(); ?></td>
|
215 |
+
<td><?php echo $this->helper('checkout')->formatPrice($i->getRowTotal()); ?></td>
|
216 |
+
</tr>
|
217 |
+
<?php
|
218 |
+
} else if (in_array($entityId, $bundled_items)) {
|
219 |
+
|
220 |
+
} else {
|
221 |
+
?>
|
222 |
+
<tr>
|
223 |
+
<td rowspan="1">
|
224 |
+
<img class="product_img" src="<?php echo Mage::helper('catalog/image')->init($_product, 'thumbnail')->resize(75); ?>" alt="product-img" />
|
225 |
+
<?php
|
226 |
+
echo $i->getName();
|
227 |
+
|
228 |
+
$customOptions = $options['options'];
|
229 |
+
if (!empty($customOptions)) {
|
230 |
+
foreach ($customOptions as $option) {
|
231 |
+
?>
|
232 |
+
<span class="bottom-align">
|
233 |
+
<?php
|
234 |
+
echo '<b>' . $option['label'] . '</b> :';
|
235 |
+
echo $optionValue = $option['value'];
|
236 |
+
?></span>
|
237 |
+
<?php
|
238 |
+
}
|
239 |
+
}
|
240 |
+
?>
|
241 |
+
</td>
|
242 |
+
<td><?php echo $this->helper('checkout')->formatPrice($i->getPrice()); ?></td>
|
243 |
+
<td><?php echo $i->getQtyOrdered(); ?></td>
|
244 |
+
<td><?php echo $i->getSku(); ?></td>
|
245 |
+
<td><?php echo $this->helper('checkout')->formatPrice($i->getRowTotal()); ?></td>
|
246 |
+
</tr>
|
247 |
+
<?php
|
248 |
+
}
|
249 |
+
?>
|
250 |
<?php endforeach ?>
|
251 |
</tbody>
|
252 |
<tfoot>
|
271 |
<?php if ($order->getDiscountAmount() != 0): ?>
|
272 |
<tr class="discount">
|
273 |
<td class="a-right" colspan="4">
|
274 |
+
<?php
|
275 |
+
echo $this->__('Discount');
|
276 |
+
echo $order->getDiscountDescription() ? '(' . $order->getDiscountDescription() . ')' : "";
|
277 |
+
?>
|
278 |
</td>
|
279 |
<td class="last a-right">
|
280 |
<span class="subtotlal-value">
|
app/design/frontend/rwd/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/rwd/default/template/advanceordersuccess/index.phtml
ADDED
@@ -0,0 +1,312 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
|
7 |
+
$colspan = $rowspan = 2;
|
8 |
+
|
9 |
+
$order_details = Mage::getModel('sales/order')->loadByIncrementId($order_id);
|
10 |
+
// Get shipping method
|
11 |
+
$shipping_method = $order_details->_data["shipping_description"];
|
12 |
+
|
13 |
+
// Get ship-to address information
|
14 |
+
$shipping_address_data = $order_details->getShippingAddress();
|
15 |
+
$billingAddress = $order_details->getBillingAddress();
|
16 |
+
|
17 |
+
//country codes
|
18 |
+
$shippcode = $order_details->getShippingAddress()->getCountry();
|
19 |
+
$billcode = $order_details->getBillingAddress()->getCountry();
|
20 |
+
|
21 |
+
$paymentmethod = $order->getPayment()->getMethodInstance()->getTitle();
|
22 |
+
//credit card information
|
23 |
+
$payarry = $order->getPayment()->debug();
|
24 |
+
//get credit card name
|
25 |
+
foreach (Mage::getSingleton('payment/config')->getCcTypes() as $code => $name) {
|
26 |
+
if ($payarry['cc_type'] == $code) {
|
27 |
+
$options = $name;
|
28 |
+
}
|
29 |
+
}
|
30 |
+
|
31 |
+
//get static block admin side configurations
|
32 |
+
$aboveenable = Mage::getStoreConfig('successpagesettings/cmsblock/aboveordercms');
|
33 |
+
$aboveenableid = Mage::getStoreConfig('successpagesettings/cmsblock/aboveordercmsid');
|
34 |
+
$belowenable = Mage::getStoreConfig('successpagesettings/cmsblock/belowordercms');
|
35 |
+
$belowenableid = Mage::getStoreConfig('successpagesettings/cmsblock/belowordercmsid');
|
36 |
+
$newsLetter = Mage::getStoreConfig('successpagesettings/newsletter/enablenewsletter');
|
37 |
+
|
38 |
+
if ($aboveenable == 1 && $aboveenableid != "") {
|
39 |
+
echo $this->getLayout()->createBlock('cms/block')->setBlockId($aboveenableid)->toHtml();
|
40 |
+
}
|
41 |
+
?>
|
42 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
43 |
+
<h2 class="sub-title"><?php echo $this->__('Thank you for your purchase!') ?></h2>
|
44 |
+
<div class="myorder-wrapper">
|
45 |
+
<div class="myorder">
|
46 |
+
<h3>Order Information</h3>
|
47 |
+
<?php if ($this->getCanViewOrder() && $this->getCanPrintOrder()) : ?>
|
48 |
+
<?php echo $this->__('<a class="print-icon" href="%s" onclick="this.target=\'_blank\'">here to print</a>', $this->getPrintUrl()) ?>
|
49 |
+
<?php // echo $this->getChildHtml() ?>
|
50 |
+
<?php endif; ?>
|
51 |
+
<div class="inner_content">
|
52 |
+
<label> Date<span>:</span></label>
|
53 |
+
<span> <?php echo $order->getCreatedAtStoreDate(); ?></span>
|
54 |
+
</div>
|
55 |
+
<div class="inner_content">
|
56 |
+
<label>Order ID<span>:</span></label>
|
57 |
+
<span><?php echo $order_id; ?></span>
|
58 |
+
</div>
|
59 |
+
<div class="inner_content">
|
60 |
+
<label>Order Status<span>:</span></label>
|
61 |
+
<span> <?php echo $order->getStatusLabel(); ?></span>
|
62 |
+
</div>
|
63 |
+
</div>
|
64 |
+
<div class="payment_method">
|
65 |
+
<h3>Payment & Shipping Information</h3>
|
66 |
+
<div class="inner_content">
|
67 |
+
<label><b>Shipping Method</b><span>:</span></label>
|
68 |
+
<span> <?php echo $shipping_method; ?></span>
|
69 |
+
</div>
|
70 |
+
<div class="inner_content">
|
71 |
+
<label><b>Payment Method</b><span>:</span> </label>
|
72 |
+
<span><?php echo $paymentmethod; ?></span>
|
73 |
+
</div>
|
74 |
+
<?php if ($paymentmethod == 'Credit Card (saved)') { ?>
|
75 |
+
<div class="inner_content">
|
76 |
+
<label>Credit Card Type<span>:</span></label>
|
77 |
+
<span><?php echo $options; ?></span>
|
78 |
+
</div>
|
79 |
+
<div class="inner_content">
|
80 |
+
<label>Credit Card Number<span>:</span></label>
|
81 |
+
<span><?php echo $payarry['cc_last4']; ?></span>
|
82 |
+
</div>
|
83 |
+
<div class="inner_content">
|
84 |
+
<label>Credit Card Owner<span>:</span></label>
|
85 |
+
<span><?php echo $payarry['cc_owner']; ?></span>
|
86 |
+
</div>
|
87 |
+
<?php } ?>
|
88 |
+
</div>
|
89 |
+
</div>
|
90 |
+
<div class="myorder-wrapper">
|
91 |
+
<div class="order_summery">
|
92 |
+
<h3>Shipping Address</h3>
|
93 |
+
<div class="inner_content">
|
94 |
+
<label>Name<span>:</span></label>
|
95 |
+
<span><?php echo $shipping_address_data['firstname'] . " " . $shipping_address_data['lastname']; ?></span>
|
96 |
+
</div>
|
97 |
+
<div class="inner_content">
|
98 |
+
<label>Delivery Address<span>:</span></label>
|
99 |
+
<span> <?php echo $shipping_address_data['street']; ?></span>
|
100 |
+
</div>
|
101 |
+
<div class="inner_content">
|
102 |
+
<label>Delivery City<span>:</span> </label>
|
103 |
+
<span> <?php echo $shipping_address_data['city']; ?></span>
|
104 |
+
</div>
|
105 |
+
<div class="inner_content">
|
106 |
+
<label>State<span>:</span></label>
|
107 |
+
<span> <?php echo $shipping_address_data['region']; ?></span>
|
108 |
+
</div>
|
109 |
+
<div class="inner_content">
|
110 |
+
<label>Country<span>:</span></label>
|
111 |
+
<span> <?php echo Mage::app()->getLocale()->getCountryTranslation($shippcode); ?></span>
|
112 |
+
</div>
|
113 |
+
<div class="inner_content">
|
114 |
+
<label>Postcode<span>:</span></label>
|
115 |
+
<span> <?php echo $shipping_address_data['postcode']; ?></span>
|
116 |
+
</div>
|
117 |
+
<div class="inner_content">
|
118 |
+
<label>Telephone<span>:</span></label>
|
119 |
+
<span> <?php echo $shipping_address_data['telephone']; ?></span>
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
<div class="order_summery">
|
123 |
+
<h3>Billing Address</h3>
|
124 |
+
<div class="inner_content">
|
125 |
+
<label>Name<span>:</span></label>
|
126 |
+
<span><?php echo $billingAddress['firstname'] . " " . $billingAddress['lastname']; ?></span>
|
127 |
+
</div>
|
128 |
+
<div class="inner_content">
|
129 |
+
<label>Delivery Address<span>:</span></label>
|
130 |
+
<span><?php echo $billingAddress['street']; ?></span>
|
131 |
+
</div>
|
132 |
+
<div class="inner_content">
|
133 |
+
<label>Delivery City<span>:</span></label>
|
134 |
+
<span><?php echo $billingAddress['city']; ?></span>
|
135 |
+
</div>
|
136 |
+
<div class="inner_content">
|
137 |
+
<label>State<span>:</span></label>
|
138 |
+
<span><?php echo $billingAddress['region']; ?></span>
|
139 |
+
</div>
|
140 |
+
<div class="inner_content">
|
141 |
+
<label>Country<span>:</span></label>
|
142 |
+
<span><?php echo Mage::app()->getLocale()->getCountryTranslation($billcode); ?></span>
|
143 |
+
</div>
|
144 |
+
<div class="inner_content">
|
145 |
+
<label>Postcode<span>:</span></label>
|
146 |
+
<span><?php echo $billingAddress['postcode']; ?></span>
|
147 |
+
</div>
|
148 |
+
<div class="inner_content">
|
149 |
+
<label>Telephone<span>:</span> </label>
|
150 |
+
<span><?php echo $billingAddress->getTelephone(); ?></span>
|
151 |
+
</div>
|
152 |
+
</div>
|
153 |
+
</div>
|
154 |
+
<div id="checkout-review-table-wrapper">
|
155 |
+
<table class="data-table" id="checkout-review-table">
|
156 |
+
<thead>
|
157 |
+
<tr>
|
158 |
+
<th rowspan="<?php echo $rowspan ?>"><?php echo $this->__('Product Name') ?></th>
|
159 |
+
<th class="a-center"><?php echo $this->__('Unit Price') ?></th>
|
160 |
+
<th class="a-center"><?php echo $this->__('Qty') ?></th>
|
161 |
+
<th class="a-center"><?php echo $this->__('SKU') ?></th>
|
162 |
+
<th class="a-center"><?php echo $this->__('Sub Total') ?></th>
|
163 |
+
</tr>
|
164 |
+
</thead>
|
165 |
+
<?php echo $this->getChildHtml('totals'); ?>
|
166 |
+
<tbody>
|
167 |
+
<?php
|
168 |
+
foreach ($items as $i):
|
169 |
+
$_product = Mage::getModel('catalog/product')->load($i->getProductId());
|
170 |
+
$productType = $_product->getTypeId();
|
171 |
+
$entityId = $_product->getEntityId();
|
172 |
+
|
173 |
+
$options = $i->getProductOptions();
|
174 |
+
|
175 |
+
if ($productType == "bundle") {
|
176 |
+
$bundled_product = new Mage_Catalog_Model_Product();
|
177 |
+
$bundled_product->load($entityId);
|
178 |
+
|
179 |
+
|
180 |
+
$selectionCollection = $bundled_product->getTypeInstance(true)->getSelectionsCollection(
|
181 |
+
$bundled_product->getTypeInstance(true)->getOptionsIds($bundled_product), $bundled_product
|
182 |
+
);
|
183 |
+
|
184 |
+
$bundled_items = array();
|
185 |
+
|
186 |
+
foreach ($selectionCollection as $option) {
|
187 |
+
$bundled_items[] = $option->product_id;
|
188 |
+
}
|
189 |
+
?>
|
190 |
+
|
191 |
+
<tr>
|
192 |
+
<td rowspan="1">
|
193 |
+
<img class="product_img" src="<?php echo Mage::helper('catalog/image')->init($_product, 'thumbnail')->resize(75); ?>" alt="product-img" />
|
194 |
+
<?php
|
195 |
+
echo $i->getName();
|
196 |
+
|
197 |
+
$customOptions = $options['options'];
|
198 |
+
if (!empty($customOptions)) {
|
199 |
+
foreach ($customOptions as $option) {
|
200 |
+
?>
|
201 |
+
<span class="bottom-align">
|
202 |
+
<?php
|
203 |
+
echo '<b>' . $option['label'] . '</b> :';
|
204 |
+
echo $optionValue = $option['value'];
|
205 |
+
?>
|
206 |
+
</span>
|
207 |
+
<?php
|
208 |
+
}
|
209 |
+
}
|
210 |
+
?>
|
211 |
+
</td>
|
212 |
+
<td><?php echo $this->helper('checkout')->formatPrice($i->getPrice()); ?></td>
|
213 |
+
<td><?php echo $i->getQtyOrdered(); ?></td>
|
214 |
+
<td><?php echo $i->getSku(); ?></td>
|
215 |
+
<td><?php echo $this->helper('checkout')->formatPrice($i->getRowTotal()); ?></td>
|
216 |
+
</tr>
|
217 |
+
<?php
|
218 |
+
} else if (in_array($entityId, $bundled_items)) {
|
219 |
+
|
220 |
+
} else {
|
221 |
+
?>
|
222 |
+
<tr>
|
223 |
+
<td rowspan="1">
|
224 |
+
<img class="product_img" src="<?php echo Mage::helper('catalog/image')->init($_product, 'thumbnail')->resize(75); ?>" alt="product-img" />
|
225 |
+
<?php
|
226 |
+
echo $i->getName();
|
227 |
+
|
228 |
+
$customOptions = $options['options'];
|
229 |
+
if (!empty($customOptions)) {
|
230 |
+
foreach ($customOptions as $option) {
|
231 |
+
?>
|
232 |
+
<span class="bottom-align">
|
233 |
+
<?php
|
234 |
+
echo '<b>' . $option['label'] . '</b> :';
|
235 |
+
echo $optionValue = $option['value'];
|
236 |
+
?></span>
|
237 |
+
<?php
|
238 |
+
}
|
239 |
+
}
|
240 |
+
?>
|
241 |
+
</td>
|
242 |
+
<td><?php echo $this->helper('checkout')->formatPrice($i->getPrice()); ?></td>
|
243 |
+
<td><?php echo $i->getQtyOrdered(); ?></td>
|
244 |
+
<td><?php echo $i->getSku(); ?></td>
|
245 |
+
<td><?php echo $this->helper('checkout')->formatPrice($i->getRowTotal()); ?></td>
|
246 |
+
</tr>
|
247 |
+
<?php
|
248 |
+
}
|
249 |
+
?>
|
250 |
+
<?php endforeach ?>
|
251 |
+
</tbody>
|
252 |
+
<tfoot>
|
253 |
+
<tr>
|
254 |
+
<td colspan="4" class="a-right">
|
255 |
+
<small>SubTotal:</small>
|
256 |
+
</td>
|
257 |
+
<td colspan="2" class="a-right">
|
258 |
+
<small><?php echo $this->helper('checkout')->formatPrice($order->getSubtotal()); ?></small>
|
259 |
+
</td>
|
260 |
+
</tr>
|
261 |
+
<tr class="shipping">
|
262 |
+
<td class="a-right" colspan="4">
|
263 |
+
<?php echo $this->__('Shipping & Handling(' . $order->getShippingDescription() . ')'); ?>
|
264 |
+
</td>
|
265 |
+
<td colspan="2" class="last a-right">
|
266 |
+
<span class="subtotlal-value">
|
267 |
+
<?php echo $this->helper('checkout')->formatPrice($order->getShippingInclTax()); ?>
|
268 |
+
</span>
|
269 |
+
</td>
|
270 |
+
</tr>
|
271 |
+
<?php if ($order->getDiscountAmount() != 0): ?>
|
272 |
+
<tr class="discount">
|
273 |
+
<td class="a-right" colspan="4">
|
274 |
+
<?php
|
275 |
+
echo $this->__('Discount');
|
276 |
+
echo $order->getDiscountDescription() ? '(' . $order->getDiscountDescription() . ')' : "";
|
277 |
+
?>
|
278 |
+
</td>
|
279 |
+
<td class="last a-right">
|
280 |
+
<span class="subtotlal-value">
|
281 |
+
<?php echo $this->helper('checkout')->formatPrice($order->getDiscountAmount()); ?>
|
282 |
+
</span>
|
283 |
+
</td>
|
284 |
+
</tr><?php
|
285 |
+
endif;
|
286 |
+
?>
|
287 |
+
<tr class="grand_total last">
|
288 |
+
<td class="a-right" colspan="4"><strong><?php echo $this->__('Total') ?></strong></td>
|
289 |
+
<td colspan="2" class="last a-right">
|
290 |
+
<span class="subtotlal-value">
|
291 |
+
<strong><?php echo $this->helper('checkout')->formatPrice($order->getGrandTotal()); ?></strong>
|
292 |
+
</span>
|
293 |
+
</td>
|
294 |
+
</tr>
|
295 |
+
</tfoot>
|
296 |
+
</table>
|
297 |
+
</div>
|
298 |
+
|
299 |
+
<div class="buttons-set">
|
300 |
+
<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>
|
301 |
+
</div>
|
302 |
+
<?php
|
303 |
+
if ($belowenable == 1 && $belowenableid != "") {
|
304 |
+
echo $this->getLayout()->createBlock('cms/block')->setBlockId($belowenableid)->toHtml();
|
305 |
+
}
|
306 |
+
if ($newsLetter) {
|
307 |
+
?>
|
308 |
+
<div class="order-newsletter">
|
309 |
+
<?php echo $this->getLayout()->createBlock('newsletter/subscribe')->setTemplate('newsletter/subscribe.phtml')->toHtml(); ?>
|
310 |
+
</div>
|
311 |
+
<?php
|
312 |
+
}
|
package.xml
CHANGED
@@ -1,23 +1,23 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Solwin_AdvanceOrderSuccess</name>
|
4 |
-
<version>1.0.
|
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
|
11 |
1) Billing Information
|
12 |
2) Shipping Information
|
13 |
3) Shipping and Payment Methods
|
14 |
4) Product Details
|
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&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-
|
19 |
-
<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="
|
21 |
<compatible/>
|
22 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
23 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Solwin_AdvanceOrderSuccess</name>
|
4 |
+
<version>1.0.1</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:
|
11 |
1) Billing Information
|
12 |
2) Shipping Information
|
13 |
3) Shipping and Payment Methods
|
14 |
4) Product Details
|
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-12-02</date>
|
19 |
+
<time>08:18:58</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="Helper"><file name="Data.php" hash="453384d77df8d66f291cc74f9aefba71"/></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></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="4f301ce7a383fb00f4a42d699ef394d1"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="advanceordersuccess.xml" hash="99ddfaa28b4523d5152b9c82a7e64e29"/></dir><dir name="template"><dir name="advanceordersuccess"><file name="index.phtml" hash="4f301ce7a383fb00f4a42d699ef394d1"/></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 name="rwd"><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/rwd/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 |
+
}
|