Version Notes
This Extension provides delivery quotes from Australia's largest Carriers in a Seamless checkout process.
Download this release
Release Info
Developer | Joshua Oliver |
Extension | Transdirect_Shipping |
Version | 1.1.5 |
Comparing to | |
See all releases |
Code changes from version 1.1.4 to 1.1.5
- app/code/local/Transdirect/Ship/Block/.DS_Store +0 -0
- app/code/local/Transdirect/Ship/Model/Carrier/Transdirect.php +317 -269
- app/code/local/Transdirect/Ship/Model/Source/Couriers.php +10 -2
- app/code/local/Transdirect/Ship/etc/system.xml +348 -14
- app/code/local/Transdirect/Ship/sql/.DS_Store +0 -0
- app/code/local/Transdirect/Ship/sql/ship_setup_sales/.DS_Store +0 -0
- app/design/frontend/default/default/template/checkout/.DS_Store +0 -0
- app/design/frontend/default/default/template/checkout/onepage.tar.gz +0 -0
- app/design/frontend/default/default/template/checkout/onepage/.DS_Store +0 -0
- app/design/frontend/default/default/template/checkout/onepage/shipping.phtml +166 -0
- app/design/frontend/default/default/template/ship/checkout/cart/totals.phtml +48 -0
- app/design/frontend/default/default/template/ship/footer/js.phtml +5 -0
- app/design/frontend/default/default/template/ship/product_shipping.phtml +614 -0
- app/design/frontend/default/default/template/ship/shipping.phtml +719 -0
- app/design/frontend/rwd/default/template/checkout/cart.phtml +177 -0
- app/design/frontend/rwd/default/template/checkout/cart/coupon.phtml +60 -0
- app/design/frontend/rwd/default/template/checkout/cart/crosssell.phtml +63 -0
- app/design/frontend/rwd/default/template/checkout/cart/item/configure/updatecart.phtml +43 -0
- app/design/frontend/rwd/default/template/checkout/cart/item/default.phtml +332 -0
- app/design/frontend/rwd/default/template/checkout/cart/minicart.phtml +50 -0
- app/design/frontend/rwd/default/template/checkout/cart/minicart/default.phtml +191 -0
- app/design/frontend/rwd/default/template/checkout/cart/minicart/items.phtml +109 -0
- app/design/frontend/rwd/default/template/checkout/cart/render/default.phtml +72 -0
- app/design/frontend/rwd/default/template/checkout/cart/render/simple.phtml +72 -0
- app/design/frontend/rwd/default/template/checkout/cart/shipping.phtml +150 -0
- app/design/frontend/rwd/default/template/checkout/cart/sidebar.phtml +80 -0
- app/design/frontend/rwd/default/template/checkout/cart/sidebar/default.phtml +145 -0
- app/design/frontend/rwd/default/template/checkout/multishipping/addresses.phtml +87 -0
- app/design/frontend/rwd/default/template/checkout/multishipping/billing.phtml +119 -0
- app/design/frontend/rwd/default/template/checkout/multishipping/item/default.phtml +48 -0
- app/design/frontend/rwd/default/template/checkout/multishipping/overview.phtml +245 -0
- app/design/frontend/rwd/default/template/checkout/multishipping/overview/item.phtml +242 -0
- app/design/frontend/rwd/default/template/checkout/onepage.phtml +61 -0
- app/design/frontend/rwd/default/template/checkout/onepage/billing.phtml +216 -0
- app/design/frontend/rwd/default/template/checkout/onepage/payment.phtml +76 -0
- app/design/frontend/rwd/default/template/checkout/onepage/progress.phtml +59 -0
- app/design/frontend/rwd/default/template/checkout/onepage/review/info.phtml +85 -0
- app/design/frontend/rwd/default/template/checkout/onepage/review/item.phtml +244 -0
- app/design/frontend/rwd/default/template/checkout/onepage/shipping.phtml +157 -0
- app/design/frontend/rwd/default/template/ship/shipping.phtml +35 -16
- package.xml +7 -35
app/code/local/Transdirect/Ship/Block/.DS_Store
ADDED
Binary file
|
app/code/local/Transdirect/Ship/Model/Carrier/Transdirect.php
CHANGED
@@ -16,11 +16,16 @@ class Transdirect_Ship_Model_Carrier_Transdirect extends Mage_Shipping_Model_Car
|
|
16 |
$price = 0;
|
17 |
|
18 |
/* API Request Start */
|
19 |
-
|
|
|
20 |
$account_password = Mage::getStoreConfig('transdirect_section/authentication/password');
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
24 |
$dimension_width = Mage::getStoreConfig('transdirect_section/defaultitemsize/dimensionswidth');
|
25 |
$dimension_height = Mage::getStoreConfig('transdirect_section/defaultitemsize/dimensionsheight');
|
26 |
$dimension_dim = Mage::getStoreConfig('transdirect_section/defaultitemsize/dimensionsdim');
|
@@ -41,7 +46,7 @@ class Transdirect_Ship_Model_Carrier_Transdirect extends Mage_Shipping_Model_Car
|
|
41 |
|
42 |
// Cart Total Weight Code Start by Nayan
|
43 |
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
44 |
-
|
45 |
$total_qty = Mage::helper('checkout/cart')->getSummaryCount();
|
46 |
|
47 |
$weight = 0;
|
@@ -54,11 +59,11 @@ class Transdirect_Ship_Model_Carrier_Transdirect extends Mage_Shipping_Model_Car
|
|
54 |
$cart_total_width = 0;
|
55 |
$cart_total_length = 0;
|
56 |
|
57 |
-
|
58 |
//echo '<pre>'; print_r($item->getQty()); die('qty');
|
59 |
-
|
60 |
$productQty = $item->getQty();
|
61 |
-
|
62 |
|
63 |
//echo $product->getItemWeight();
|
64 |
// $weight += $product->getItemWeight() * $productQty;
|
@@ -66,12 +71,12 @@ class Transdirect_Ship_Model_Carrier_Transdirect extends Mage_Shipping_Model_Car
|
|
66 |
// $width += $product->getItemWidth() * $productQty;
|
67 |
// $length += $product->getItemDim() * $productQty;
|
68 |
$items_list = array();
|
69 |
-
|
70 |
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
|
76 |
// Cart Total Weight Code End by Nayan
|
77 |
if(!$weight) {
|
@@ -102,56 +107,56 @@ class Transdirect_Ship_Model_Carrier_Transdirect extends Mage_Shipping_Model_Car
|
|
102 |
$cubic_weight = $cart_total_weight;
|
103 |
}
|
104 |
for($x = 1; $x <= $productQty; $x++) {
|
105 |
-
|
106 |
|
107 |
-
|
108 |
-
|
109 |
// 'itemidx' => $i,
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
// 'itemidx' => $i,
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
// 'itemidx' => $i,
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
}
|
128 |
|
129 |
-
|
130 |
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
|
156 |
// $cart_total_weight = $weight;
|
157 |
// $cart_total_height = $height;
|
@@ -194,21 +199,67 @@ class Transdirect_Ship_Model_Carrier_Transdirect extends Mage_Shipping_Model_Car
|
|
194 |
// return false;
|
195 |
// // $this->_redirect('checkout/cart');
|
196 |
//}
|
197 |
-
|
198 |
if(!$receiver_regionId) {
|
199 |
-
|
200 |
} else {
|
201 |
-
|
202 |
}
|
203 |
|
204 |
// echo $tmp_cart_postcode_val = $_COOKIE['cart_postocde'];
|
205 |
// echo $tmp_cart_locality_val = $_COOKIE['cart_locality'];
|
206 |
//die('val');
|
207 |
|
208 |
-
|
209 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
|
211 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
// echo Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getCountryId();
|
213 |
// echo Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getRegion();
|
214 |
// echo Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getRegionId();
|
@@ -219,99 +270,96 @@ class Transdirect_Ship_Model_Carrier_Transdirect extends Mage_Shipping_Model_Car
|
|
219 |
|
220 |
|
221 |
if ($order_box_enable == 1) {
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
$json_data = json_encode($quoteDetails);
|
270 |
-
//echo '<pre>'; print_r($json_data); die('json');
|
271 |
|
272 |
-
|
273 |
-
|
274 |
// curl_setopt($ch, CURLOPT_URL, "https://www.staging.transdirect.com.au/api/bookings");
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
//echo "<pre>"; print_r($quotes_val); die('quotes');
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
|
306 |
-
|
307 |
|
308 |
//$available_carriers = array($display_carriers);
|
309 |
-
|
310 |
|
311 |
// function cmp1($a, $b) {
|
312 |
// return strcmp($a['transit_time'], $b['transit_time']);
|
313 |
//}
|
314 |
-
|
315 |
// function build_sorter($key) {
|
316 |
// return function ($a, $b) use ($key) {
|
317 |
// return strnatcmp($a[$key], $b[$key]);
|
@@ -321,103 +369,103 @@ class Transdirect_Ship_Model_Carrier_Transdirect extends Mage_Shipping_Model_Car
|
|
321 |
|
322 |
|
323 |
if(!function_exists(getCheapest)){
|
324 |
-
|
325 |
-
|
326 |
// Sort row primarily by total being cheapest total on top
|
327 |
-
|
328 |
-
|
329 |
}
|
330 |
|
331 |
-
|
332 |
-
|
333 |
//if($display_quote == 'display_cheapest'){ uasort($quotes_val, build_sorter('total')); }
|
334 |
//if($display_quote == 'display_cheapest_fastest'){ uasort($quotes_val, build_sorter('transit_time')); }
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
//Mage::getSingleton('core/session')->addError("Please enter correct details, either suburb or postcode not entered properly.");
|
343 |
//session_write_close();
|
344 |
//return false;
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
// find the config for this quote
|
373 |
-
|
374 |
// var_dump($couriersConfig[$key]['enable_surcharge_courier']);
|
375 |
-
|
376 |
|
377 |
|
378 |
// var_dump($courierVal);
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
|
|
|
|
418 |
|
419 |
-
$method_title = ucwords(str_replace('_', ' ', $key));
|
420 |
-
|
421 |
// if($key=='fastway'){ $method_title = "Fastway"; }
|
422 |
// if($key=='toll_priority_overnight'){$method_title = "Toll Priority Overnight"; }
|
423 |
// if($key=='couriers_please'){$method_title = "Couriers Please"; }
|
@@ -436,8 +484,8 @@ class Transdirect_Ship_Model_Carrier_Transdirect extends Mage_Shipping_Model_Car
|
|
436 |
// if($key=='direct_couriers_regular'){$method_title = "Direct Couriers Regular"; }
|
437 |
// if($key=='direct_couriers_express'){$method_title = "Direct Couriers Express"; }
|
438 |
// if($key=='direct_couriers_elite'){$method_title = "Direct Couriers Elite"; }
|
439 |
-
|
440 |
-
|
441 |
|
442 |
//echo $method_title; die;
|
443 |
// echo count($val); die;
|
@@ -445,66 +493,66 @@ class Transdirect_Ship_Model_Carrier_Transdirect extends Mage_Shipping_Model_Car
|
|
445 |
//print_r($available_carriers);
|
446 |
//usort($quotes_val, 'cmp1');
|
447 |
// var_dump($couriersConfig[$key]);
|
448 |
-
|
449 |
-
|
450 |
|
451 |
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
|
465 |
-
|
466 |
-
|
467 |
|
468 |
-
|
469 |
-
|
470 |
|
471 |
-
|
472 |
|
473 |
// if(in_array($key,$available_carriers)) {
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
// }
|
478 |
|
479 |
-
|
480 |
|
481 |
// if(in_array($key,$available_carriers)) {
|
482 |
//echo '<br>'.$key . ' - matched<br>';
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
// }
|
488 |
-
|
489 |
|
490 |
-
|
491 |
-
|
492 |
|
493 |
//die('arr');
|
494 |
-
|
495 |
//echo '<pre>'; print_r($result); die('model');
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
|
510 |
}
|
16 |
$price = 0;
|
17 |
|
18 |
/* API Request Start */
|
19 |
+
|
20 |
+
$account_email = Mage::getStoreConfig('transdirect_section/authentication/email');
|
21 |
$account_password = Mage::getStoreConfig('transdirect_section/authentication/password');
|
22 |
+
|
23 |
+
for($i= 1 ;$i< 11;$i++){
|
24 |
+
$warehouse_address[] = Mage::getStoreConfig('transdirect_section/warehouseaddress'.$i.'/address');
|
25 |
+
$warehouse_postcode[] = Mage::getStoreConfig('transdirect_section/warehouseaddress'.$i.'/postcode');
|
26 |
+
$warehouse_suburb[] = Mage::getStoreConfig('transdirect_section/warehouseaddress'.$i.'/suburb');
|
27 |
+
}
|
28 |
+
|
29 |
$dimension_width = Mage::getStoreConfig('transdirect_section/defaultitemsize/dimensionswidth');
|
30 |
$dimension_height = Mage::getStoreConfig('transdirect_section/defaultitemsize/dimensionsheight');
|
31 |
$dimension_dim = Mage::getStoreConfig('transdirect_section/defaultitemsize/dimensionsdim');
|
46 |
|
47 |
// Cart Total Weight Code Start by Nayan
|
48 |
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
49 |
+
$cartItems = $quote->getAllVisibleItems();
|
50 |
$total_qty = Mage::helper('checkout/cart')->getSummaryCount();
|
51 |
|
52 |
$weight = 0;
|
59 |
$cart_total_width = 0;
|
60 |
$cart_total_length = 0;
|
61 |
|
62 |
+
foreach ($cartItems as $item) {
|
63 |
//echo '<pre>'; print_r($item->getQty()); die('qty');
|
64 |
+
$productId = $item->getProductId();
|
65 |
$productQty = $item->getQty();
|
66 |
+
$product = Mage::getModel('catalog/product')->load($productId);
|
67 |
|
68 |
//echo $product->getItemWeight();
|
69 |
// $weight += $product->getItemWeight() * $productQty;
|
71 |
// $width += $product->getItemWidth() * $productQty;
|
72 |
// $length += $product->getItemDim() * $productQty;
|
73 |
$items_list = array();
|
74 |
+
$box_items = array();
|
75 |
|
76 |
+
$weight = $product->getItemWeight();
|
77 |
+
$height = $product->getItemHeight();
|
78 |
+
$width = $product->getItemWidth() ;
|
79 |
+
$length = $product->getItemDim();
|
80 |
|
81 |
// Cart Total Weight Code End by Nayan
|
82 |
if(!$weight) {
|
107 |
$cubic_weight = $cart_total_weight;
|
108 |
}
|
109 |
for($x = 1; $x <= $productQty; $x++) {
|
110 |
+
if ($cubic_weight > $order_box_size) {
|
111 |
|
112 |
+
for($x = $order_box_size; $x <= $cubic_weight; $x *= 2) {
|
113 |
+
array_push($items_list, array(
|
114 |
// 'itemidx' => $i,
|
115 |
+
'cubic_weight' => $order_box_size
|
116 |
+
));
|
117 |
+
}
|
118 |
+
$r = 0;
|
119 |
+
if (($r = $cubic_weight % $order_box_size)) {
|
120 |
+
array_push($items_list, array(
|
121 |
// 'itemidx' => $i,
|
122 |
+
'cubic_weight' => $r
|
123 |
+
));
|
124 |
+
}
|
125 |
+
} else {
|
126 |
+
array_push($items_list, array(
|
127 |
// 'itemidx' => $i,
|
128 |
+
'cubic_weight' => $cubic_weight
|
129 |
+
));
|
130 |
+
}
|
131 |
+
}
|
132 |
}
|
133 |
|
134 |
+
}
|
135 |
|
136 |
+
if ($order_box_enable == 1) {
|
137 |
+
foreach ($items_list as $item) {
|
138 |
+
$newBox = true;
|
139 |
+
foreach ($box_items as $box) {
|
140 |
+
if($item['cubic_weight'] <= $order_box_size - $box['weight']) {
|
141 |
+
$box['weight'] += $item['cubic_weight'];
|
142 |
+
$box['quantity']++;
|
143 |
+
$newBox = false;
|
144 |
+
break;
|
145 |
+
}
|
146 |
+
}
|
147 |
+
if ($newBox) {
|
148 |
+
$length = $width = $height = pow(250 * $item['cubic_weight'], 1/3);
|
149 |
+
array_push($box_items, array(
|
150 |
+
'weight' => $item['cubic_weight'],
|
151 |
+
'height' => $height,
|
152 |
+
'width' => $width,
|
153 |
+
'length' => $length,
|
154 |
+
'quantity' => 1,
|
155 |
+
'description' =>'item description'
|
156 |
+
));
|
157 |
+
}
|
158 |
+
}
|
159 |
+
}
|
160 |
|
161 |
// $cart_total_weight = $weight;
|
162 |
// $cart_total_height = $height;
|
199 |
// return false;
|
200 |
// // $this->_redirect('checkout/cart');
|
201 |
//}
|
|
|
202 |
if(!$receiver_regionId) {
|
203 |
+
$receiver_suburb = $receiver_region;
|
204 |
} else {
|
205 |
+
$receiver_suburb = $receiver_region_tmp;
|
206 |
}
|
207 |
|
208 |
// echo $tmp_cart_postcode_val = $_COOKIE['cart_postocde'];
|
209 |
// echo $tmp_cart_locality_val = $_COOKIE['cart_locality'];
|
210 |
//die('val');
|
211 |
|
212 |
+
//$receiver_postcode = $_COOKIE['cart_postocde'];
|
213 |
+
//$receiver_suburb = $_COOKIE['cart_locality'];
|
214 |
+
|
215 |
+
|
216 |
+
|
217 |
+
|
218 |
+
if(isset($_COOKIE['cart_postocde']) && !empty($_COOKIE['cart_postocde']) && $receiver_country == 'AU'){
|
219 |
+
$receiver_postcode = $_COOKIE['cart_postocde'];
|
220 |
+
$receiver_suburb = $_COOKIE['cart_locality'];
|
221 |
+
} else {
|
222 |
+
$_COOKIE['cart_postocde'] = '';
|
223 |
+
$_COOKIE['cart_locality'] = '';
|
224 |
+
$receiver_postcode = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getPostcode();//$_COOKIE['cart_postocde'];
|
225 |
+
$receiver_suburb = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getCity();//$_COOKIE['cart_locality'];
|
226 |
+
}
|
227 |
+
|
228 |
+
$toGeoLocation = [];
|
229 |
+
$url = "http://maps.googleapis.com/maps/api/geocode/json?address=".urlencode($receiver_postcode).",".urlencode($receiver_suburb)."&sensor=false";
|
230 |
+
|
231 |
+
$request = @file_get_contents($url);
|
232 |
+
$json = json_decode($request, true);
|
233 |
+
$lat2 = $json["results"][0]["geometry"]["location"]["lat"];
|
234 |
+
$lng2 = $json["results"][0]["geometry"]["location"]["lng"];
|
235 |
+
|
236 |
+
$fromGeoLocation = [];
|
237 |
+
$distance = [];
|
238 |
+
$postcode_type = [];
|
239 |
+
$totalWarehouse = 0;
|
240 |
+
foreach ($warehouse_postcode as $value) {
|
241 |
+
if(!empty($value)){
|
242 |
+
$url = "http://maps.googleapis.com/maps/api/geocode/json?address=".urlencode($value).",".urlencode($warehouse_suburb[$totalWarehouse])."&sensor=false";
|
243 |
|
244 |
+
$result_string = @file_get_contents($url);
|
245 |
+
$result = json_decode($result_string, true);
|
246 |
+
|
247 |
+
$lat1 = $result["results"][0]["geometry"]["location"]["lat"];
|
248 |
+
$lng1 = $result["results"][0]["geometry"]["location"]["lng"];
|
249 |
+
|
250 |
+
$theta = $lng1 - $lng2;
|
251 |
+
$dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta));
|
252 |
+
|
253 |
+
$dist = rad2deg($dist);
|
254 |
+
$miles = $dist * 60 * 1.1515;
|
255 |
+
$distance[$warehouse_suburb[$totalWarehouse].','.$value.','.$warehouse_address[$totalWarehouse]] = $miles * 1.609344;
|
256 |
+
$totalWarehouse++;
|
257 |
+
}
|
258 |
+
}
|
259 |
+
$from_location = min($distance);
|
260 |
+
$from_location = array_search($from_location, $distance);
|
261 |
+
$explode_from = explode(',', $from_location);
|
262 |
+
// echo Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getPostcode();
|
263 |
// echo Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getCountryId();
|
264 |
// echo Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getRegion();
|
265 |
// echo Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getRegionId();
|
270 |
|
271 |
|
272 |
if ($order_box_enable == 1) {
|
273 |
+
$quoteDetails = array(
|
274 |
+
'declared_value'=>number_format(0, 2, '.', ''),
|
275 |
+
'items' => $box_items,
|
276 |
+
'requesting_site' => $requesting_site,
|
277 |
+
'sender' => array(
|
278 |
+
'country' => 'AU',
|
279 |
+
'suburb'=> $explode_from[0],
|
280 |
+
'postcode' => $explode_from[1],
|
281 |
+
'type'=> $explode_from[2]
|
282 |
+
),
|
283 |
+
|
284 |
+
'receiver' => array(
|
285 |
+
'country' => $receiver_country,
|
286 |
+
'suburb'=>$receiver_suburb,
|
287 |
+
'postcode' => is_null($receiver_postcode)?'':$receiver_postcode,
|
288 |
+
'type'=> 'residential'
|
289 |
+
)
|
290 |
+
);
|
291 |
+
} else {
|
292 |
+
$quoteDetails = array(
|
293 |
+
'declared_value'=>number_format(0, 2, '.', ''),
|
294 |
+
'requesting_site' => $requesting_site,
|
295 |
+
'items' => array(array(
|
296 |
+
'width' => $cart_total_width,
|
297 |
+
'height' => $cart_total_height,
|
298 |
+
'weight'=> $cart_total_weight,
|
299 |
+
'length'=> $cart_total_length,
|
300 |
+
'quantity'=>$total_qty,
|
301 |
+
'description'=>'item description'
|
302 |
+
)),
|
303 |
+
|
304 |
+
'sender' => array(
|
305 |
+
'country' => 'AU',
|
306 |
+
'suburb'=> $explode_from[0],
|
307 |
+
'postcode' => $explode_from[1],
|
308 |
+
'type'=> $explode_from[2]
|
309 |
+
),
|
310 |
+
|
311 |
+
'receiver' => array(
|
312 |
+
'country' => $receiver_country,
|
313 |
+
'suburb'=>$receiver_suburb,
|
314 |
+
'postcode' => is_null($receiver_postcode)?'':$receiver_postcode,
|
315 |
+
'type'=> 'residential'
|
316 |
+
)
|
317 |
+
);
|
318 |
+
}
|
|
|
|
|
|
|
319 |
|
320 |
+
$json_data = json_encode($quoteDetails);
|
321 |
+
$ch = curl_init();
|
322 |
// curl_setopt($ch, CURLOPT_URL, "https://www.staging.transdirect.com.au/api/bookings");
|
323 |
+
curl_setopt($ch, CURLOPT_URL, "https://www.transdirect.com.au/api/bookings");
|
324 |
+
curl_setopt($ch, CURLOPT_USERPWD, "$account_email:$account_password");
|
325 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
|
326 |
+
curl_setopt($ch, CURLOPT_HEADER, FALSE);
|
327 |
+
curl_setopt($ch, CURLOPT_POST, TRUE);
|
328 |
+
curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data);
|
329 |
+
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json"));
|
330 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
331 |
+
$response = curl_exec($ch);
|
332 |
+
$report = curl_getinfo($ch);
|
333 |
+
|
334 |
+
|
335 |
+
if(curl_errno($ch)) {
|
336 |
+
echo 'Response error: ' . curl_error($ch);
|
337 |
+
die;
|
338 |
+
}
|
339 |
+
curl_close($ch);
|
340 |
|
341 |
+
if ($response) {
|
342 |
+
$json_decode_varible = json_decode($response, true);
|
343 |
+
$quotes_val = $json_decode_varible['quotes'];
|
344 |
+
$booking_id = $json_decode_varible['id'];
|
345 |
//echo "<pre>"; print_r($quotes_val); die('quotes');
|
346 |
+
Mage::getSingleton('core/session')->unsTransitVal();
|
347 |
+
Mage::getSingleton('core/session')->unsSomeSessionVar();
|
348 |
+
$session_val1 = Mage::getSingleton('core/session')->setSomeSessionVar1($quotes_val);
|
349 |
+
$session_val2 = Mage::getSingleton('core/session')->setSomeSessionVar2($booking_id);
|
350 |
+
} else {
|
351 |
+
echo "Failed";
|
352 |
+
}
|
353 |
|
354 |
+
/* End */
|
355 |
|
356 |
//$available_carriers = array($display_carriers);
|
357 |
+
$available_carriers = explode( ',', $display_carriers);
|
358 |
|
359 |
// function cmp1($a, $b) {
|
360 |
// return strcmp($a['transit_time'], $b['transit_time']);
|
361 |
//}
|
362 |
+
|
363 |
// function build_sorter($key) {
|
364 |
// return function ($a, $b) use ($key) {
|
365 |
// return strnatcmp($a[$key], $b[$key]);
|
369 |
|
370 |
|
371 |
if(!function_exists(getCheapest)){
|
372 |
+
function getCheapest($a, $b)
|
373 |
+
{
|
374 |
// Sort row primarily by total being cheapest total on top
|
375 |
+
return $a['total'] - $b['total'];
|
376 |
+
}
|
377 |
}
|
378 |
|
379 |
+
|
380 |
+
$display_quote = Mage::getStoreConfig('transdirect_section/displayoptions/quotedisplay');
|
381 |
//if($display_quote == 'display_cheapest'){ uasort($quotes_val, build_sorter('total')); }
|
382 |
//if($display_quote == 'display_cheapest_fastest'){ uasort($quotes_val, build_sorter('transit_time')); }
|
383 |
+
$handling = Mage::getStoreConfig('carriers/'.$this->_code.'/handling');
|
384 |
+
$result = Mage::getModel('shipping/rate_result');
|
385 |
+
$show = true;
|
386 |
|
387 |
+
if($show){
|
388 |
+
if($quotes_val == ''){
|
389 |
+
Mage::getSingleton('core/session')->unsetAll();
|
390 |
//Mage::getSingleton('core/session')->addError("Please enter correct details, either suburb or postcode not entered properly.");
|
391 |
//session_write_close();
|
392 |
//return false;
|
393 |
+
$method = Mage::getModel('shipping/rate_result_method');
|
394 |
+
$method->setCarrier($this->_code);
|
395 |
+
$method->setMethod($this->_code);
|
396 |
+
$method->setCarrierTitle($this->getConfigData('title'));
|
397 |
+
$method->setMethodTitle('Fixed Price');
|
398 |
+
|
399 |
+
|
400 |
+
if($display_fixedprice == '1'){
|
401 |
+
$method->setPrice($display_fixedprice1);
|
402 |
+
$method->setCost($display_fixedprice1);
|
403 |
+
}
|
404 |
+
|
405 |
+
$result->append($method);
|
406 |
+
|
407 |
+
} else {
|
408 |
+
$quotesKeys = array_keys($quotes_val);
|
409 |
+
$couriersConfig = unserialize($couriers_name);
|
410 |
+
$courierVal;
|
411 |
+
$x = 0;
|
412 |
+
while (1) {
|
413 |
+
if ($x >= count($quotesKeys)) {
|
414 |
+
break;
|
415 |
+
}
|
416 |
+
|
417 |
+
$key = $quotesKeys[$x];
|
418 |
+
$val = $quotes_val[$key];
|
419 |
+
$skip = false;
|
420 |
// find the config for this quote
|
421 |
+
if (isset($couriersConfig[$key])) {
|
422 |
// var_dump($couriersConfig[$key]['enable_surcharge_courier']);
|
423 |
+
$courierVal = $couriersConfig[$key];
|
424 |
|
425 |
|
426 |
// var_dump($courierVal);
|
427 |
+
if($courierVal['enable_surcharge_courier'] == 1) {
|
428 |
+
if($courierVal['surcharge_courier_unit'] == '%') {
|
429 |
+
$courierVal['surcharge_courier'] = $courierVal['surcharge_courier'] / 100;
|
430 |
+
}
|
431 |
+
$val['total'] += (int) $courierVal['surcharge_courier'];
|
432 |
+
}
|
433 |
+
|
434 |
+
|
435 |
+
if($courierVal['enable_courier'] == 1) {
|
436 |
+
if ($courierVal['rename_group']) {
|
437 |
+
$renameKey = strtolower($courierVal['rename_group']);
|
438 |
+
if (isset($quotes_val[$renameKey])) {
|
439 |
+
if ($val['total'] < $quotes_val[$renameKey]['total']) {
|
440 |
+
$quotes_val[$renameKey] = $val;
|
441 |
+
$couriersConfig[$renameKey] = $courierVal;
|
442 |
+
$couriersConfig[$renameKey]['rename_group'] = '';
|
443 |
+
$couriersConfig[$renameKey]['enable_surcharge_courier'] = 0;
|
444 |
+
}
|
445 |
+
} else {
|
446 |
+
$quotes_val[$renameKey] = $val;
|
447 |
+
$couriersConfig[$renameKey] = $courierVal;
|
448 |
+
$couriersConfig[$renameKey]['rename_group'] = '';
|
449 |
+
$couriersConfig[$renameKey]['enable_surcharge_courier'] = 0;
|
450 |
+
}
|
451 |
+
|
452 |
+
$quotesKeys[] = $renameKey;
|
453 |
+
$skip = true;
|
454 |
+
}
|
455 |
+
} else {
|
456 |
+
$skip = true;
|
457 |
+
}
|
458 |
+
}
|
459 |
+
|
460 |
+
$x++;
|
461 |
+
|
462 |
+
if ($skip) {
|
463 |
+
continue;
|
464 |
+
}
|
465 |
+
|
466 |
+
|
467 |
+
$method_title = ucwords(str_replace('_', ' ', $key));
|
468 |
|
|
|
|
|
469 |
// if($key=='fastway'){ $method_title = "Fastway"; }
|
470 |
// if($key=='toll_priority_overnight'){$method_title = "Toll Priority Overnight"; }
|
471 |
// if($key=='couriers_please'){$method_title = "Couriers Please"; }
|
484 |
// if($key=='direct_couriers_regular'){$method_title = "Direct Couriers Regular"; }
|
485 |
// if($key=='direct_couriers_express'){$method_title = "Direct Couriers Express"; }
|
486 |
// if($key=='direct_couriers_elite'){$method_title = "Direct Couriers Elite"; }
|
487 |
+
|
488 |
+
$quote_form_region_val = Mage::getSingleton('core/session')->setTransitVal($quotes_val[$key]['transit_time']);
|
489 |
|
490 |
//echo $method_title; die;
|
491 |
// echo count($val); die;
|
493 |
//print_r($available_carriers);
|
494 |
//usort($quotes_val, 'cmp1');
|
495 |
// var_dump($couriersConfig[$key]);
|
496 |
+
$courier_title = $method_title;
|
497 |
+
$courier_price = $val['total'];
|
498 |
|
499 |
|
500 |
+
$method = Mage::getModel('shipping/rate_result_method');
|
501 |
+
$method->setCarrier($this->_code);
|
502 |
+
$method->setMethod($courier_title);
|
503 |
+
$method->setCarrierTitle($this->getConfigData('title'));
|
504 |
|
505 |
+
if($courierVal['enable_surcharge_courier'] == 1) {
|
506 |
+
$courier_price = $courier_price + ($courier_price * $courierVal['surcharge_courier']);
|
507 |
+
}
|
508 |
|
509 |
+
if($display_surcharge == '1'){
|
510 |
+
if($display_surcharge_unit == '%') {
|
511 |
+
$display_surcharge1 = $display_surcharge1 / 100;
|
512 |
|
513 |
+
$tmp_display_surcharge = $courier_price + ($courier_price * $display_surcharge1);
|
514 |
+
} else {
|
515 |
|
516 |
+
$tmp_display_surcharge = $courier_price + $display_surcharge1;
|
517 |
+
}
|
518 |
|
519 |
+
$tmp_method_title = $method_title.' + Handling Charge';
|
520 |
|
521 |
// if(in_array($key,$available_carriers)) {
|
522 |
+
$method->setMethodTitle($tmp_method_title);
|
523 |
+
$method->setPrice($tmp_display_surcharge);
|
524 |
+
$method->setCost($tmp_display_surcharge);
|
525 |
// }
|
526 |
|
527 |
+
} else {
|
528 |
|
529 |
// if(in_array($key,$available_carriers)) {
|
530 |
//echo '<br>'.$key . ' - matched<br>';
|
531 |
+
$method->setMethodTitle($method_title);
|
532 |
+
$method->setSortOrder($quotes_val[$key]['transit_time']);
|
533 |
+
$method->setPrice($courier_price);
|
534 |
+
$method->setCost($courier_price);
|
535 |
// }
|
536 |
+
}
|
537 |
|
538 |
+
$result->append($method);
|
539 |
+
}
|
540 |
|
541 |
//die('arr');
|
542 |
+
}
|
543 |
//echo '<pre>'; print_r($result); die('model');
|
544 |
+
} else{
|
545 |
+
$error = Mage::getModel('shipping/rate_result_error');
|
546 |
+
$error->setCarrier($this->_code);
|
547 |
+
$error->setCarrierTitle($this->getConfigData('name'));
|
548 |
+
$error->setErrorMessage($this->getConfigData('specificerrmsg'));
|
549 |
+
$result->append($error);
|
550 |
+
}
|
551 |
+
return $result;
|
552 |
+
}
|
553 |
|
554 |
+
public function getAllowedMethods() {
|
555 |
+
return array('transdirect'=>$this->getConfigData('name'));
|
556 |
+
}
|
557 |
|
558 |
}
|
app/code/local/Transdirect/Ship/Model/Source/Couriers.php
CHANGED
@@ -13,13 +13,21 @@ class Transdirect_Ship_Model_Source_Couriers extends Varien_Object
|
|
13 |
array('value' => 'toll', 'label' => $hlp->__('Toll')),
|
14 |
array('value' => 'toll_priority_sameday', 'label' => $hlp->__('Toll Priority Sameday')),
|
15 |
array('value' => 'toll_priority_overnight', 'label' => $hlp->__('Toll Priority')),
|
16 |
-
array('value' => 'auspost_regular_eparcel', 'label' => $hlp->__('Auspost Regular Eparcel')),
|
17 |
-
array('value' => 'auspost_express_eparcel', 'label' => $hlp->__('Auspost Express Eparcel'))
|
18 |
array('value' => 'tnt_nine_express', 'label' => $hlp->__('TNT Nine Express')),
|
19 |
array('value' => 'tnt_overnight_express', 'label' => $hlp->__('TNT Overnight Express')),
|
20 |
array('value' => 'tnt_road_express', 'label' => $hlp->__('TNT Road Express')),
|
21 |
array('value' => 'tnt_ten_express', 'label' => $hlp->__('TNT Ten Express')),
|
22 |
array('value' => 'tnt_twelve_express', 'label' => $hlp->__('TNT Twelve Express')),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
array('value' => 'direct_couriers_regular', 'label' => $hlp->__('Direct Regular Couriers')),
|
24 |
array('value' => 'direct_couriers_express', 'label' => $hlp->__('Direct Express Couriers')),
|
25 |
array('value' => 'direct_couriers_elite', 'label' => $hlp->__('Direct Elite Couriers')),
|
13 |
array('value' => 'toll', 'label' => $hlp->__('Toll')),
|
14 |
array('value' => 'toll_priority_sameday', 'label' => $hlp->__('Toll Priority Sameday')),
|
15 |
array('value' => 'toll_priority_overnight', 'label' => $hlp->__('Toll Priority')),
|
16 |
+
/*array('value' => 'auspost_regular_eparcel', 'label' => $hlp->__('Auspost Regular Eparcel')),
|
17 |
+
array('value' => 'auspost_express_eparcel', 'label' => $hlp->__('Auspost Express Eparcel')),*/
|
18 |
array('value' => 'tnt_nine_express', 'label' => $hlp->__('TNT Nine Express')),
|
19 |
array('value' => 'tnt_overnight_express', 'label' => $hlp->__('TNT Overnight Express')),
|
20 |
array('value' => 'tnt_road_express', 'label' => $hlp->__('TNT Road Express')),
|
21 |
array('value' => 'tnt_ten_express', 'label' => $hlp->__('TNT Ten Express')),
|
22 |
array('value' => 'tnt_twelve_express', 'label' => $hlp->__('TNT Twelve Express')),
|
23 |
+
array('value' => 'tnt_international_express_export', 'label' => $hlp->__('TNT International Express Export')),
|
24 |
+
array('value' => 'tnt_international_express_import', 'label' => $hlp->__('TNT International Express Import')),
|
25 |
+
array('value' => 'tnt_international_express_document_export', 'label' => $hlp->__('TNT International Express Document Export')),
|
26 |
+
array('value' => 'tnt_international_express_document_import', 'label' => $hlp->__('TNT International Express Document Import')),
|
27 |
+
array('value' => 'tnt_international_economy_express_export', 'label' => $hlp->__('TNT International Economy Express Export')),
|
28 |
+
array('value' => 'tnt_international_economy_express_import', 'label' => $hlp->__('TNT International Economy Express Import')),
|
29 |
+
array('value' => 'tnt_international_economy_express_document_export', 'label' => $hlp->__('TNT International Economy Express Document Export')),
|
30 |
+
array('value' => 'tnt_international_economy_express_document_import', 'label' => $hlp->__('TNT International Economy Express Document Import')),
|
31 |
array('value' => 'direct_couriers_regular', 'label' => $hlp->__('Direct Regular Couriers')),
|
32 |
array('value' => 'direct_couriers_express', 'label' => $hlp->__('Direct Express Couriers')),
|
33 |
array('value' => 'direct_couriers_elite', 'label' => $hlp->__('Direct Elite Couriers')),
|
app/code/local/Transdirect/Ship/etc/system.xml
CHANGED
@@ -65,17 +65,17 @@
|
|
65 |
</fields>
|
66 |
</authentication>
|
67 |
|
68 |
-
<
|
69 |
-
<label>
|
70 |
<sort_order>3</sort_order>
|
71 |
<show_in_default>1</show_in_default>
|
72 |
<show_in_website>1</show_in_website>
|
73 |
<show_in_store>1</show_in_store>
|
74 |
|
75 |
<fields>
|
76 |
-
|
77 |
<label>Suburb</label>
|
78 |
-
|
79 |
<show_in_default>1</show_in_default>
|
80 |
<show_in_website>1</show_in_website>
|
81 |
<show_in_store>1</show_in_store>
|
@@ -84,7 +84,7 @@
|
|
84 |
|
85 |
<postcode translate="label tooltip comment">
|
86 |
<label>Postcode</label>
|
87 |
-
|
88 |
<show_in_default>1</show_in_default>
|
89 |
<show_in_website>1</show_in_website>
|
90 |
<show_in_store>1</show_in_store>
|
@@ -93,19 +93,353 @@
|
|
93 |
|
94 |
<address translate="label tooltip comment">
|
95 |
<label>Address</label>
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
<show_in_default>1</show_in_default>
|
98 |
<show_in_website>1</show_in_website>
|
99 |
<show_in_store>1</show_in_store>
|
100 |
<frontend_type>select</frontend_type>
|
101 |
-
<source_model>ship/source_addressType</source_model>
|
102 |
</address>
|
103 |
</fields>
|
104 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
<defaultitemsize translate="label">
|
107 |
<label>Default Item Size</label>
|
108 |
-
<sort_order>
|
109 |
<show_in_default>1</show_in_default>
|
110 |
<show_in_website>1</show_in_website>
|
111 |
<show_in_store>1</show_in_store>
|
@@ -154,7 +488,7 @@
|
|
154 |
|
155 |
<ordersync translate="label">
|
156 |
<label>Order Sync</label>
|
157 |
-
<sort_order>
|
158 |
<show_in_default>1</show_in_default>
|
159 |
<show_in_website>1</show_in_website>
|
160 |
<show_in_store>1</show_in_store>
|
@@ -196,7 +530,7 @@
|
|
196 |
|
197 |
<fromaddress translate="label">
|
198 |
<label>From Address</label>
|
199 |
-
<sort_order>
|
200 |
<show_in_default>1</show_in_default>
|
201 |
<show_in_website>1</show_in_website>
|
202 |
<show_in_store>1</show_in_store>
|
@@ -253,7 +587,7 @@
|
|
253 |
<label>Display Options</label>
|
254 |
<comment>This selects which couriers you are able to quote from,
|
255 |
this is an option on the api.</comment>
|
256 |
-
<sort_order>
|
257 |
<show_in_default>1</show_in_default>
|
258 |
<show_in_website>1</show_in_website>
|
259 |
<show_in_store>1</show_in_store>
|
@@ -389,7 +723,7 @@
|
|
389 |
|
390 |
<orderbox translate="label">
|
391 |
<label>Order Boxing</label>
|
392 |
-
<sort_order>
|
393 |
<show_in_default>1</show_in_default>
|
394 |
<show_in_website>1</show_in_website>
|
395 |
<show_in_store>1</show_in_store>
|
@@ -420,4 +754,4 @@
|
|
420 |
</groups>
|
421 |
</transdirect_section>
|
422 |
</sections>
|
423 |
-
</config>
|
65 |
</fields>
|
66 |
</authentication>
|
67 |
|
68 |
+
<warehouseaddress1 translate="label">
|
69 |
+
<label>Warehous1 Address</label>
|
70 |
<sort_order>3</sort_order>
|
71 |
<show_in_default>1</show_in_default>
|
72 |
<show_in_website>1</show_in_website>
|
73 |
<show_in_store>1</show_in_store>
|
74 |
|
75 |
<fields>
|
76 |
+
<suburb translate="label tooltip comment">
|
77 |
<label>Suburb</label>
|
78 |
+
<sort_order>1</sort_order>
|
79 |
<show_in_default>1</show_in_default>
|
80 |
<show_in_website>1</show_in_website>
|
81 |
<show_in_store>1</show_in_store>
|
84 |
|
85 |
<postcode translate="label tooltip comment">
|
86 |
<label>Postcode</label>
|
87 |
+
<sort_order>2</sort_order>
|
88 |
<show_in_default>1</show_in_default>
|
89 |
<show_in_website>1</show_in_website>
|
90 |
<show_in_store>1</show_in_store>
|
93 |
|
94 |
<address translate="label tooltip comment">
|
95 |
<label>Address</label>
|
96 |
+
<sort_order>3</sort_order>
|
97 |
+
<show_in_default>1</show_in_default>
|
98 |
+
<show_in_website>1</show_in_website>
|
99 |
+
<show_in_store>1</show_in_store>
|
100 |
+
<frontend_type>select</frontend_type>
|
101 |
+
<source_model>ship/source_addressType</source_model>
|
102 |
+
</address>
|
103 |
+
</fields>
|
104 |
+
</warehouseaddress1>
|
105 |
+
<warehouseaddress2 translate="label">
|
106 |
+
<label>Warehouse2 Address</label>
|
107 |
+
<sort_order>4</sort_order>
|
108 |
+
<show_in_default>1</show_in_default>
|
109 |
+
<show_in_website>1</show_in_website>
|
110 |
+
<show_in_store>1</show_in_store>
|
111 |
+
|
112 |
+
<fields>
|
113 |
+
<suburb translate="label tooltip comment">
|
114 |
+
<label>Suburb</label>
|
115 |
+
<sort_order>1</sort_order>
|
116 |
+
<show_in_default>1</show_in_default>
|
117 |
+
<show_in_website>1</show_in_website>
|
118 |
+
<show_in_store>1</show_in_store>
|
119 |
+
<frontend_type>text</frontend_type>
|
120 |
+
</suburb>
|
121 |
+
|
122 |
+
<postcode translate="label tooltip comment">
|
123 |
+
<label>Postcode</label>
|
124 |
+
<sort_order>2</sort_order>
|
125 |
+
<show_in_default>1</show_in_default>
|
126 |
+
<show_in_website>1</show_in_website>
|
127 |
+
<show_in_store>1</show_in_store>
|
128 |
+
<frontend_type>text</frontend_type>
|
129 |
+
</postcode>
|
130 |
+
|
131 |
+
<address translate="label tooltip comment">
|
132 |
+
<label>Address</label>
|
133 |
+
<sort_order>3</sort_order>
|
134 |
+
<show_in_default>1</show_in_default>
|
135 |
+
<show_in_website>1</show_in_website>
|
136 |
+
<show_in_store>1</show_in_store>
|
137 |
+
<frontend_type>select</frontend_type>
|
138 |
+
<source_model>ship/source_addressType</source_model>
|
139 |
+
</address>
|
140 |
+
</fields>
|
141 |
+
</warehouseaddress2>
|
142 |
+
<warehouseaddress3 translate="label">
|
143 |
+
<label>Warehouse3 Address</label>
|
144 |
+
<sort_order>5</sort_order>
|
145 |
+
<show_in_default>1</show_in_default>
|
146 |
+
<show_in_website>1</show_in_website>
|
147 |
+
<show_in_store>1</show_in_store>
|
148 |
+
|
149 |
+
<fields>
|
150 |
+
<suburb translate="label tooltip comment">
|
151 |
+
<label>Suburb</label>
|
152 |
+
<sort_order>1</sort_order>
|
153 |
+
<show_in_default>1</show_in_default>
|
154 |
+
<show_in_website>1</show_in_website>
|
155 |
+
<show_in_store>1</show_in_store>
|
156 |
+
<frontend_type>text</frontend_type>
|
157 |
+
</suburb>
|
158 |
+
|
159 |
+
<postcode translate="label tooltip comment">
|
160 |
+
<label>Postcode</label>
|
161 |
+
<sort_order>2</sort_order>
|
162 |
+
<show_in_default>1</show_in_default>
|
163 |
+
<show_in_website>1</show_in_website>
|
164 |
+
<show_in_store>1</show_in_store>
|
165 |
+
<frontend_type>text</frontend_type>
|
166 |
+
</postcode>
|
167 |
+
|
168 |
+
<address translate="label tooltip comment">
|
169 |
+
<label>Address</label>
|
170 |
+
<sort_order>3</sort_order>
|
171 |
+
<show_in_default>1</show_in_default>
|
172 |
+
<show_in_website>1</show_in_website>
|
173 |
+
<show_in_store>1</show_in_store>
|
174 |
+
<frontend_type>select</frontend_type>
|
175 |
+
<source_model>ship/source_addressType</source_model>
|
176 |
+
</address>
|
177 |
+
</fields>
|
178 |
+
</warehouseaddress3>
|
179 |
+
<warehouseaddress4 translate="label">
|
180 |
+
<label>Warehouse4 Address</label>
|
181 |
+
<sort_order>6</sort_order>
|
182 |
+
<show_in_default>1</show_in_default>
|
183 |
+
<show_in_website>1</show_in_website>
|
184 |
+
<show_in_store>1</show_in_store>
|
185 |
+
|
186 |
+
<fields>
|
187 |
+
<suburb translate="label tooltip comment">
|
188 |
+
<label>Suburb</label>
|
189 |
+
<sort_order>1</sort_order>
|
190 |
+
<show_in_default>1</show_in_default>
|
191 |
+
<show_in_website>1</show_in_website>
|
192 |
+
<show_in_store>1</show_in_store>
|
193 |
+
<frontend_type>text</frontend_type>
|
194 |
+
</suburb>
|
195 |
+
|
196 |
+
<postcode translate="label tooltip comment">
|
197 |
+
<label>Postcode</label>
|
198 |
+
<sort_order>2</sort_order>
|
199 |
+
<show_in_default>1</show_in_default>
|
200 |
+
<show_in_website>1</show_in_website>
|
201 |
+
<show_in_store>1</show_in_store>
|
202 |
+
<frontend_type>text</frontend_type>
|
203 |
+
</postcode>
|
204 |
+
|
205 |
+
<address translate="label tooltip comment">
|
206 |
+
<label>Address</label>
|
207 |
+
<sort_order>3</sort_order>
|
208 |
+
<show_in_default>1</show_in_default>
|
209 |
+
<show_in_website>1</show_in_website>
|
210 |
+
<show_in_store>1</show_in_store>
|
211 |
+
<frontend_type>select</frontend_type>
|
212 |
+
<source_model>ship/source_addressType</source_model>
|
213 |
+
</address>
|
214 |
+
</fields>
|
215 |
+
</warehouseaddress4>
|
216 |
+
<warehouseaddress5 translate="label">
|
217 |
+
<label>Warehouse5 Address</label>
|
218 |
+
<sort_order>7</sort_order>
|
219 |
+
<show_in_default>1</show_in_default>
|
220 |
+
<show_in_website>1</show_in_website>
|
221 |
+
<show_in_store>1</show_in_store>
|
222 |
+
|
223 |
+
<fields>
|
224 |
+
<suburb translate="label tooltip comment">
|
225 |
+
<label>Suburb</label>
|
226 |
+
<sort_order>1</sort_order>
|
227 |
+
<show_in_default>1</show_in_default>
|
228 |
+
<show_in_website>1</show_in_website>
|
229 |
+
<show_in_store>1</show_in_store>
|
230 |
+
<frontend_type>text</frontend_type>
|
231 |
+
</suburb>
|
232 |
+
|
233 |
+
<postcode translate="label tooltip comment">
|
234 |
+
<label>Postcode</label>
|
235 |
+
<sort_order>2</sort_order>
|
236 |
+
<show_in_default>1</show_in_default>
|
237 |
+
<show_in_website>1</show_in_website>
|
238 |
+
<show_in_store>1</show_in_store>
|
239 |
+
<frontend_type>text</frontend_type>
|
240 |
+
</postcode>
|
241 |
+
|
242 |
+
<address translate="label tooltip comment">
|
243 |
+
<label>Address</label>
|
244 |
+
<sort_order>3</sort_order>
|
245 |
+
<show_in_default>1</show_in_default>
|
246 |
+
<show_in_website>1</show_in_website>
|
247 |
+
<show_in_store>1</show_in_store>
|
248 |
+
<frontend_type>select</frontend_type>
|
249 |
+
<source_model>ship/source_addressType</source_model>
|
250 |
+
</address>
|
251 |
+
</fields>
|
252 |
+
</warehouseaddress5>
|
253 |
+
<warehouseaddress6 translate="label">
|
254 |
+
<label>Warehouse6 Address</label>
|
255 |
+
<sort_order>8</sort_order>
|
256 |
+
<show_in_default>1</show_in_default>
|
257 |
+
<show_in_website>1</show_in_website>
|
258 |
+
<show_in_store>1</show_in_store>
|
259 |
+
|
260 |
+
<fields>
|
261 |
+
<suburb translate="label tooltip comment">
|
262 |
+
<label>Suburb</label>
|
263 |
+
<sort_order>1</sort_order>
|
264 |
+
<show_in_default>1</show_in_default>
|
265 |
+
<show_in_website>1</show_in_website>
|
266 |
+
<show_in_store>1</show_in_store>
|
267 |
+
<frontend_type>text</frontend_type>
|
268 |
+
</suburb>
|
269 |
+
|
270 |
+
<postcode translate="label tooltip comment">
|
271 |
+
<label>Postcode</label>
|
272 |
+
<sort_order>2</sort_order>
|
273 |
+
<show_in_default>1</show_in_default>
|
274 |
+
<show_in_website>1</show_in_website>
|
275 |
+
<show_in_store>1</show_in_store>
|
276 |
+
<frontend_type>text</frontend_type>
|
277 |
+
</postcode>
|
278 |
+
|
279 |
+
<address translate="label tooltip comment">
|
280 |
+
<label>Address</label>
|
281 |
+
<sort_order>3</sort_order>
|
282 |
<show_in_default>1</show_in_default>
|
283 |
<show_in_website>1</show_in_website>
|
284 |
<show_in_store>1</show_in_store>
|
285 |
<frontend_type>select</frontend_type>
|
286 |
+
<source_model>ship/source_addressType</source_model>
|
287 |
</address>
|
288 |
</fields>
|
289 |
+
</warehouseaddress6>
|
290 |
+
<warehouseaddress7 translate="label">
|
291 |
+
<label>Warehouse7 Address</label>
|
292 |
+
<sort_order>9</sort_order>
|
293 |
+
<show_in_default>1</show_in_default>
|
294 |
+
<show_in_website>1</show_in_website>
|
295 |
+
<show_in_store>1</show_in_store>
|
296 |
+
|
297 |
+
<fields>
|
298 |
+
<suburb translate="label tooltip comment">
|
299 |
+
<label>Suburb</label>
|
300 |
+
<sort_order>1</sort_order>
|
301 |
+
<show_in_default>1</show_in_default>
|
302 |
+
<show_in_website>1</show_in_website>
|
303 |
+
<show_in_store>1</show_in_store>
|
304 |
+
<frontend_type>text</frontend_type>
|
305 |
+
</suburb>
|
306 |
+
|
307 |
+
<postcode translate="label tooltip comment">
|
308 |
+
<label>Postcode</label>
|
309 |
+
<sort_order>2</sort_order>
|
310 |
+
<show_in_default>1</show_in_default>
|
311 |
+
<show_in_website>1</show_in_website>
|
312 |
+
<show_in_store>1</show_in_store>
|
313 |
+
<frontend_type>text</frontend_type>
|
314 |
+
</postcode>
|
315 |
+
|
316 |
+
<address translate="label tooltip comment">
|
317 |
+
<label>Address</label>
|
318 |
+
<sort_order>3</sort_order>
|
319 |
+
<show_in_default>1</show_in_default>
|
320 |
+
<show_in_website>1</show_in_website>
|
321 |
+
<show_in_store>1</show_in_store>
|
322 |
+
<frontend_type>select</frontend_type>
|
323 |
+
<source_model>ship/source_addressType</source_model>
|
324 |
+
</address>
|
325 |
+
</fields>
|
326 |
+
</warehouseaddress7>
|
327 |
+
<warehouseaddress8 translate="label">
|
328 |
+
<label>Warehouse8 Address</label>
|
329 |
+
<sort_order>10</sort_order>
|
330 |
+
<show_in_default>1</show_in_default>
|
331 |
+
<show_in_website>1</show_in_website>
|
332 |
+
<show_in_store>1</show_in_store>
|
333 |
+
|
334 |
+
<fields>
|
335 |
+
<suburb translate="label tooltip comment">
|
336 |
+
<label>Suburb</label>
|
337 |
+
<sort_order>1</sort_order>
|
338 |
+
<show_in_default>1</show_in_default>
|
339 |
+
<show_in_website>1</show_in_website>
|
340 |
+
<show_in_store>1</show_in_store>
|
341 |
+
<frontend_type>text</frontend_type>
|
342 |
+
</suburb>
|
343 |
+
|
344 |
+
<postcode translate="label tooltip comment">
|
345 |
+
<label>Postcode</label>
|
346 |
+
<sort_order>2</sort_order>
|
347 |
+
<show_in_default>1</show_in_default>
|
348 |
+
<show_in_website>1</show_in_website>
|
349 |
+
<show_in_store>1</show_in_store>
|
350 |
+
<frontend_type>text</frontend_type>
|
351 |
+
</postcode>
|
352 |
+
|
353 |
+
<address translate="label tooltip comment">
|
354 |
+
<label>Address</label>
|
355 |
+
<sort_order>3</sort_order>
|
356 |
+
<show_in_default>1</show_in_default>
|
357 |
+
<show_in_website>1</show_in_website>
|
358 |
+
<show_in_store>1</show_in_store>
|
359 |
+
<frontend_type>select</frontend_type>
|
360 |
+
<source_model>ship/source_addressType</source_model>
|
361 |
+
</address>
|
362 |
+
</fields>
|
363 |
+
</warehouseaddress8>
|
364 |
+
<warehouseaddress9 translate="label">
|
365 |
+
<label>Warehouse9 Address</label>
|
366 |
+
<sort_order>11</sort_order>
|
367 |
+
<show_in_default>1</show_in_default>
|
368 |
+
<show_in_website>1</show_in_website>
|
369 |
+
<show_in_store>1</show_in_store>
|
370 |
+
|
371 |
+
<fields>
|
372 |
+
<suburb translate="label tooltip comment">
|
373 |
+
<label>Suburb</label>
|
374 |
+
<sort_order>1</sort_order>
|
375 |
+
<show_in_default>1</show_in_default>
|
376 |
+
<show_in_website>1</show_in_website>
|
377 |
+
<show_in_store>1</show_in_store>
|
378 |
+
<frontend_type>text</frontend_type>
|
379 |
+
</suburb>
|
380 |
+
|
381 |
+
<postcode translate="label tooltip comment">
|
382 |
+
<label>Postcode</label>
|
383 |
+
<sort_order>2</sort_order>
|
384 |
+
<show_in_default>1</show_in_default>
|
385 |
+
<show_in_website>1</show_in_website>
|
386 |
+
<show_in_store>1</show_in_store>
|
387 |
+
<frontend_type>text</frontend_type>
|
388 |
+
</postcode>
|
389 |
+
|
390 |
+
<address translate="label tooltip comment">
|
391 |
+
<label>Address</label>
|
392 |
+
<sort_order>3</sort_order>
|
393 |
+
<show_in_default>1</show_in_default>
|
394 |
+
<show_in_website>1</show_in_website>
|
395 |
+
<show_in_store>1</show_in_store>
|
396 |
+
<frontend_type>select</frontend_type>
|
397 |
+
<source_model>ship/source_addressType</source_model>
|
398 |
+
</address>
|
399 |
+
</fields>
|
400 |
+
</warehouseaddress9>
|
401 |
+
<warehouseaddress10 translate="label">
|
402 |
+
<label>Warehouse10 Address</label>
|
403 |
+
<sort_order>12</sort_order>
|
404 |
+
<show_in_default>1</show_in_default>
|
405 |
+
<show_in_website>1</show_in_website>
|
406 |
+
<show_in_store>1</show_in_store>
|
407 |
+
|
408 |
+
<fields>
|
409 |
+
<suburb translate="label tooltip comment">
|
410 |
+
<label>Suburb</label>
|
411 |
+
<sort_order>1</sort_order>
|
412 |
+
<show_in_default>1</show_in_default>
|
413 |
+
<show_in_website>1</show_in_website>
|
414 |
+
<show_in_store>1</show_in_store>
|
415 |
+
<frontend_type>text</frontend_type>
|
416 |
+
</suburb>
|
417 |
+
|
418 |
+
<postcode translate="label tooltip comment">
|
419 |
+
<label>Postcode</label>
|
420 |
+
<sort_order>2</sort_order>
|
421 |
+
<show_in_default>1</show_in_default>
|
422 |
+
<show_in_website>1</show_in_website>
|
423 |
+
<show_in_store>1</show_in_store>
|
424 |
+
<frontend_type>text</frontend_type>
|
425 |
+
</postcode>
|
426 |
+
|
427 |
+
<address translate="label tooltip comment">
|
428 |
+
<label>Address</label>
|
429 |
+
<sort_order>3</sort_order>
|
430 |
+
<show_in_default>1</show_in_default>
|
431 |
+
<show_in_website>1</show_in_website>
|
432 |
+
<show_in_store>1</show_in_store>
|
433 |
+
<frontend_type>select</frontend_type>
|
434 |
+
<source_model>ship/source_addressType</source_model>
|
435 |
+
</address>
|
436 |
+
</fields>
|
437 |
+
</warehouseaddress10>
|
438 |
+
|
439 |
|
440 |
<defaultitemsize translate="label">
|
441 |
<label>Default Item Size</label>
|
442 |
+
<sort_order>13</sort_order>
|
443 |
<show_in_default>1</show_in_default>
|
444 |
<show_in_website>1</show_in_website>
|
445 |
<show_in_store>1</show_in_store>
|
488 |
|
489 |
<ordersync translate="label">
|
490 |
<label>Order Sync</label>
|
491 |
+
<sort_order>14</sort_order>
|
492 |
<show_in_default>1</show_in_default>
|
493 |
<show_in_website>1</show_in_website>
|
494 |
<show_in_store>1</show_in_store>
|
530 |
|
531 |
<fromaddress translate="label">
|
532 |
<label>From Address</label>
|
533 |
+
<sort_order>15</sort_order>
|
534 |
<show_in_default>1</show_in_default>
|
535 |
<show_in_website>1</show_in_website>
|
536 |
<show_in_store>1</show_in_store>
|
587 |
<label>Display Options</label>
|
588 |
<comment>This selects which couriers you are able to quote from,
|
589 |
this is an option on the api.</comment>
|
590 |
+
<sort_order>16</sort_order>
|
591 |
<show_in_default>1</show_in_default>
|
592 |
<show_in_website>1</show_in_website>
|
593 |
<show_in_store>1</show_in_store>
|
723 |
|
724 |
<orderbox translate="label">
|
725 |
<label>Order Boxing</label>
|
726 |
+
<sort_order>17</sort_order>
|
727 |
<show_in_default>1</show_in_default>
|
728 |
<show_in_website>1</show_in_website>
|
729 |
<show_in_store>1</show_in_store>
|
754 |
</groups>
|
755 |
</transdirect_section>
|
756 |
</sections>
|
757 |
+
</config>
|
app/code/local/Transdirect/Ship/sql/.DS_Store
ADDED
Binary file
|
app/code/local/Transdirect/Ship/sql/ship_setup_sales/.DS_Store
ADDED
Binary file
|
app/design/frontend/default/default/template/checkout/.DS_Store
ADDED
Binary file
|
app/design/frontend/default/default/template/checkout/onepage.tar.gz
ADDED
Binary file
|
app/design/frontend/default/default/template/checkout/onepage/.DS_Store
ADDED
Binary file
|
app/design/frontend/default/default/template/checkout/onepage/shipping.phtml
ADDED
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<form action="" id="co-shipping-form">
|
28 |
+
<ul class="form-list">
|
29 |
+
<?php if ($this->customerHasAddresses()): ?>
|
30 |
+
<li class="wide">
|
31 |
+
<label for="shipping-address-select"><?php echo $this->__('Select a shipping address from your address book or enter a new address.') ?></label>
|
32 |
+
<div class="input-box">
|
33 |
+
<?php echo $this->getAddressesHtmlSelect('shipping') ?>
|
34 |
+
</div>
|
35 |
+
</li>
|
36 |
+
<?php endif ?>
|
37 |
+
<li id="shipping-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif ?>>
|
38 |
+
<fieldset>
|
39 |
+
<input type="hidden" name="shipping[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="shipping:address_id" />
|
40 |
+
<ul>
|
41 |
+
<li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())->setFieldIdFormat('shipping:%s')->setFieldNameFormat('shipping[%s]')->setFieldParams('onchange="shipping.setSameAsBilling(false)"')->toHtml() ?></li>
|
42 |
+
<li class="fields">
|
43 |
+
<div class="fields">
|
44 |
+
<label for="shipping:company"><?php echo $this->__('Company') ?></label>
|
45 |
+
<div class="input-box">
|
46 |
+
<input type="text" id="shipping:company" name="shipping[company]" value="<?php echo $this->escapeHtml($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('company') ?>" onchange="shipping.setSameAsBilling(false);" />
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
</li>
|
50 |
+
<?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
|
51 |
+
<li class="wide">
|
52 |
+
<label for="shipping:street1" class="required"><em>*</em><?php echo $this->__('Address') ?></label>
|
53 |
+
<div class="input-box">
|
54 |
+
<input type="text" title="<?php echo $this->__('Street Address') ?>" name="shipping[street][]" id="shipping:street1" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(1)) ?>" class="input-text <?php echo $_streetValidationClass ?>" onchange="shipping.setSameAsBilling(false);" />
|
55 |
+
</div>
|
56 |
+
</li>
|
57 |
+
<?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
58 |
+
<?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
|
59 |
+
<li class="wide">
|
60 |
+
<div class="input-box">
|
61 |
+
<input type="text" title="<?php echo $this->__('Street Address %s', $_i) ?>" name="shipping[street][]" id="shipping:street<?php echo $_i ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet($_i)) ?>" class="input-text <?php echo $_streetValidationClass ?>" onchange="shipping.setSameAsBilling(false);" />
|
62 |
+
</div>
|
63 |
+
</li>
|
64 |
+
<?php endfor; ?>
|
65 |
+
<?php if ($this->helper('customer/address')->isVatAttributeVisible()) : ?>
|
66 |
+
<li class="wide">
|
67 |
+
<label for="billing:vat_id"><?php echo $this->__('VAT Number'); ?></label>
|
68 |
+
<div class="input-box">
|
69 |
+
<input type="text" id="shipping:vat_id" name="shipping[vat_id]" value="<?php echo $this->escapeHtml($this->getAddress()->getVatId()); ?>" title="<?php echo $this->__('VAT Number'); ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('vat_id') ?>" />
|
70 |
+
</div>
|
71 |
+
</li>
|
72 |
+
<?php endif; ?>
|
73 |
+
<li class="fields">
|
74 |
+
<div class="field">
|
75 |
+
<label for="shipping:city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
|
76 |
+
<div class="input-box">
|
77 |
+
<input type="text" title="<?php echo $this->__('City') ?>" name="shipping[city]" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="shipping:city" onchange="shipping.setSameAsBilling(false);" />
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
<div class="field">
|
81 |
+
<label for="shipping:region" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
82 |
+
<div class="input-box">
|
83 |
+
<select id="shipping:region_id" name="shipping[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
|
84 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
85 |
+
</select>
|
86 |
+
<script type="text/javascript">
|
87 |
+
//<![CDATA[
|
88 |
+
$('shipping:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
89 |
+
//]]>
|
90 |
+
</script>
|
91 |
+
<input type="text" id="shipping:region" name="shipping[region]" value="<?php echo $this->escapeHtml($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" style="display:none;" />
|
92 |
+
</div>
|
93 |
+
</div>
|
94 |
+
</li>
|
95 |
+
<li class="fields">
|
96 |
+
<div class="field">
|
97 |
+
<label for="shipping:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
98 |
+
<div class="input-box">
|
99 |
+
<input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="shipping[postcode]" id="shipping:postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" onchange="shipping.setSameAsBilling(false);" />
|
100 |
+
</div>
|
101 |
+
</div>
|
102 |
+
<div class="field">
|
103 |
+
<label for="shipping:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
104 |
+
<div class="input-box">
|
105 |
+
<?php echo $this->getCountryHtmlSelect('shipping') ?>
|
106 |
+
</div>
|
107 |
+
</div>
|
108 |
+
</li>
|
109 |
+
<li class="fields">
|
110 |
+
<div class="field">
|
111 |
+
<label for="shipping:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
112 |
+
<div class="input-box">
|
113 |
+
<input type="text" name="shipping[telephone]" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="shipping:telephone" onchange="shipping.setSameAsBilling(false);" />
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
<div class="field">
|
117 |
+
<label for="shipping:fax"><?php echo $this->__('Fax') ?></label>
|
118 |
+
<div class="input-box">
|
119 |
+
<input type="text" name="shipping[fax]" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" id="shipping:fax" onchange="shipping.setSameAsBilling(false);" />
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
</li>
|
123 |
+
<?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
|
124 |
+
<li class="control">
|
125 |
+
<input type="checkbox" name="shipping[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="shipping:save_in_address_book" onchange="shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="shipping:save_in_address_book"><?php echo $this->__('Save in address book') ?></label></li>
|
126 |
+
<?php else:?>
|
127 |
+
<li class="no-display"><input type="hidden" name="shipping[save_in_address_book]" value="1" /></li>
|
128 |
+
<?php endif;?>
|
129 |
+
</ul>
|
130 |
+
</fieldset>
|
131 |
+
</li>
|
132 |
+
<li class="control">
|
133 |
+
<input type="checkbox" name="shipping[same_as_billing]" id="shipping:same_as_billing" value="1"<?php if($this->getAddress()->getSameAsBilling()): ?> checked="checked"<?php endif; ?> title="<?php echo $this->__('Use Billing Address') ?>" onclick="shipping.setSameAsBilling(this.checked)" class="checkbox" /><label for="shipping:same_as_billing"><?php echo $this->__('Use Billing Address') ?></label>
|
134 |
+
</li>
|
135 |
+
<li class="fields">
|
136 |
+
<div class="field">
|
137 |
+
<?php $booking_id = Mage::getSingleton('core/session')->getSomeSessionVar2();?>
|
138 |
+
<div class="input-box">
|
139 |
+
<input type="hidden" name="booking_id" value="<?php echo $this->htmlEscape($booking_id) ?>" title="<?php echo $this->__('Booking ID') ?>" id="booking_id" class="input-text" />
|
140 |
+
</div>
|
141 |
+
|
142 |
+
</div>
|
143 |
+
</li>
|
144 |
+
</ul>
|
145 |
+
|
146 |
+
<div class="buttons-set" id="shipping-buttons-container">
|
147 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
148 |
+
<p class="back-link"><a href="#" onclick="checkout.back(); return false;"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
149 |
+
<button type="button" class="button" title="<?php echo $this->__('Continue') ?>" onclick="shipping.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
150 |
+
<span id="shipping-please-wait" class="please-wait" style="display:none;">
|
151 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
|
152 |
+
</span>
|
153 |
+
</div>
|
154 |
+
</form>
|
155 |
+
<script type="text/javascript">
|
156 |
+
//<![CDATA[
|
157 |
+
var shipping = new Shipping('co-shipping-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveShipping') ?>',
|
158 |
+
'<?php echo $this->getUrl('checkout/onepage/shippingMethod') ?>');
|
159 |
+
var shippingForm = new VarienForm('co-shipping-form');
|
160 |
+
shippingForm.extraChildParams = ' onchange="shipping.setSameAsBilling(false);"';
|
161 |
+
//shippingForm.setElementsRelation('shipping:country_id', 'shipping:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
|
162 |
+
$('shipping-address-select') && shipping.newAddress(!$('shipping-address-select').value);
|
163 |
+
|
164 |
+
var shippingRegionUpdater = new RegionUpdater('shipping:country_id', 'shipping:region', 'shipping:region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'shipping:postcode');
|
165 |
+
//]]>
|
166 |
+
</script>
|
app/design/frontend/default/default/template/ship/checkout/cart/totals.phtml
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Shopping cart totals template
|
30 |
+
*
|
31 |
+
* @see Mage_Checkout_Block_Cart_Totals
|
32 |
+
* @var $this Mage_Checkout_Block_Cart_Totals
|
33 |
+
*/
|
34 |
+
?>
|
35 |
+
<?php if ($this->canApplyMsrp()): ?>
|
36 |
+
<div class="cart-msrp-totals"><?php echo $this->__('ORDER TOTAL WILL BE DISPLAYED BEFORE YOU SUBMIT THE ORDER'); ?></div>
|
37 |
+
<?php else: ?>
|
38 |
+
<table id="shopping-cart-totals-table">
|
39 |
+
<col />
|
40 |
+
<col width="1" />
|
41 |
+
<tfoot>
|
42 |
+
<?php echo $this->renderTotals('footer'); ?>
|
43 |
+
</tfoot>
|
44 |
+
<tbody>
|
45 |
+
<?php echo $this->renderTotals(); ?>
|
46 |
+
</tbody>
|
47 |
+
</table>
|
48 |
+
<?php endif; ?>
|
app/design/frontend/default/default/template/ship/footer/js.phtml
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<link href="<?php echo $this->getSkinUrl();?>ship/css/jquery.autoSuggest.css" rel="stylesheet" />
|
2 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl();?>ship/js/jquery-1.11.0.js"></script>
|
3 |
+
<script type="text/javascript">jQuery.noConflict();</script>
|
4 |
+
<script type="text/javascript" src="https://www.transdirect.com.au/api/locations/script"></script>
|
5 |
+
<script src="<?php echo $this->getSkinUrl();?>ship/js/jquery.autoSuggest.js"></script>
|
app/design/frontend/default/default/template/ship/product_shipping.phtml
ADDED
@@ -0,0 +1,614 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
|
5 |
+
* Magento
|
6 |
+
|
7 |
+
*
|
8 |
+
|
9 |
+
* NOTICE OF LICENSE
|
10 |
+
|
11 |
+
*
|
12 |
+
|
13 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
14 |
+
|
15 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
16 |
+
|
17 |
+
* It is also available through the world-wide-web at this URL:
|
18 |
+
|
19 |
+
* http://opensource.org/licenses/afl-3.0.php
|
20 |
+
|
21 |
+
* If you did not receive a copy of the license and are unable to
|
22 |
+
|
23 |
+
* obtain it through the world-wide-web, please send an email
|
24 |
+
|
25 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
26 |
+
|
27 |
+
*
|
28 |
+
|
29 |
+
* DISCLAIMER
|
30 |
+
|
31 |
+
*
|
32 |
+
|
33 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
34 |
+
|
35 |
+
* versions in the future. If you wish to customize Magento for your
|
36 |
+
|
37 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
38 |
+
|
39 |
+
*
|
40 |
+
|
41 |
+
* @category design
|
42 |
+
|
43 |
+
* @package base_default
|
44 |
+
|
45 |
+
* @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
|
46 |
+
|
47 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
48 |
+
|
49 |
+
*/
|
50 |
+
|
51 |
+
?>
|
52 |
+
|
53 |
+
<?php /** @var $this Mage_Checkout_Block_Cart_Shipping */ ?>
|
54 |
+
|
55 |
+
<?php if(Mage::getStoreConfig('transdirect_section/enabletab/enable')){ ?>
|
56 |
+
|
57 |
+
|
58 |
+
|
59 |
+
<script type="text/javascript">
|
60 |
+
|
61 |
+
jQuery(document).ready(function(e) {
|
62 |
+
|
63 |
+
var result;
|
64 |
+
|
65 |
+
var data = {items: []};
|
66 |
+
|
67 |
+
jQuery.each( TDLocationsList, function( i, item ) {
|
68 |
+
|
69 |
+
data.items.push({ value: TDLocationsList[i].postcode +' '+ TDLocationsList[i].locality , name: TDLocationsList[i].postcode +' '+ TDLocationsList[i].locality});
|
70 |
+
|
71 |
+
});
|
72 |
+
|
73 |
+
jQuery("#autosuggest").autoSuggest(data.items,
|
74 |
+
|
75 |
+
{
|
76 |
+
|
77 |
+
selectedItemProp: "name",
|
78 |
+
|
79 |
+
searchObjProps: "name",
|
80 |
+
|
81 |
+
selectionLimit: 1,
|
82 |
+
|
83 |
+
minChars: 3,
|
84 |
+
|
85 |
+
selectionAdded: function(elem)
|
86 |
+
|
87 |
+
{
|
88 |
+
|
89 |
+
result = elem.text();
|
90 |
+
|
91 |
+
getresultval(result);
|
92 |
+
|
93 |
+
}
|
94 |
+
|
95 |
+
}
|
96 |
+
|
97 |
+
);
|
98 |
+
|
99 |
+
function getresultval(res){
|
100 |
+
|
101 |
+
var postcode = res.substr(1,4);
|
102 |
+
|
103 |
+
var locality = res.substr(6);
|
104 |
+
|
105 |
+
jQuery('#suburb').attr("value", locality);
|
106 |
+
|
107 |
+
jQuery('#postcode').attr("value", postcode);
|
108 |
+
|
109 |
+
|
110 |
+
var d = new Date();
|
111 |
+
d.setTime(d.getTime() + (5*24*60*60*1000));
|
112 |
+
|
113 |
+
document.cookie="cart_postocde="+postcode+"; expires="+d.toUTCString()+"; path=/";
|
114 |
+
document.cookie="cart_locality="+locality+"; expires="+d.toUTCString()+"; path=/";
|
115 |
+
|
116 |
+
}
|
117 |
+
|
118 |
+
});
|
119 |
+
|
120 |
+
|
121 |
+
|
122 |
+
</script>
|
123 |
+
|
124 |
+
|
125 |
+
|
126 |
+
<?php $tmp_cart_postcode_val = $_COOKIE['cart_postocde'];
|
127 |
+
|
128 |
+
$tmp_cart_locality_val = $_COOKIE['cart_locality'];
|
129 |
+
|
130 |
+
?>
|
131 |
+
|
132 |
+
|
133 |
+
|
134 |
+
<?php
|
135 |
+
|
136 |
+
$country_val = Mage::getSingleton('core/session')->getCountryVal();
|
137 |
+
|
138 |
+
$postocde_val = Mage::getSingleton('core/session')->getPostcodeVal();
|
139 |
+
|
140 |
+
$regionid_val = Mage::getSingleton('core/session')->getRegionIdVal();
|
141 |
+
|
142 |
+
$region_val = Mage::getSingleton('core/session')->getRegionVal();
|
143 |
+
|
144 |
+
?>
|
145 |
+
|
146 |
+
<div class="shipping_product">
|
147 |
+
|
148 |
+
<h2><?php echo $this->__('Get A Shipping Quote') ?></h2>
|
149 |
+
|
150 |
+
<div class="shipping-form">
|
151 |
+
|
152 |
+
<form action="<?php echo $this->getUrl('ship/index/index/') ?>" method="post" id="shipping-zip-form">
|
153 |
+
|
154 |
+
<p><?php echo $this->__('Enter your destination to get a shipping estimate.') ?></p>
|
155 |
+
|
156 |
+
<ul class="form-list">
|
157 |
+
|
158 |
+
<li>
|
159 |
+
|
160 |
+
<label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
161 |
+
|
162 |
+
<div class="input-box">
|
163 |
+
|
164 |
+
<select name="country_id" id="country" class="validate-select" title="Country" >
|
165 |
+
|
166 |
+
<option value="AU" selected="selected" ><?php echo $this->__('Australia') ?></option>
|
167 |
+
|
168 |
+
</select>
|
169 |
+
|
170 |
+
</div>
|
171 |
+
|
172 |
+
<?php /*?><div class="input-box">
|
173 |
+
|
174 |
+
<?php echo Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect($this->getEstimateCountryId()) ?>
|
175 |
+
|
176 |
+
</div><?php */?>
|
177 |
+
|
178 |
+
</li>
|
179 |
+
|
180 |
+
<?php /*
|
181 |
+
|
182 |
+
//if($this->getStateActive()):
|
183 |
+
|
184 |
+
|
185 |
+
|
186 |
+
?>
|
187 |
+
|
188 |
+
<li>
|
189 |
+
|
190 |
+
<label for="region_id"<?php if ($this->isStateProvinceRequired()) echo ' class="required"' ?>><?php if ($this->isStateProvinceRequired()) echo '<em>*</em>' ?><?php echo $this->__('Suburb') ?></label>
|
191 |
+
|
192 |
+
<div class="input-box">
|
193 |
+
|
194 |
+
<select id="region_id" name="region_id" title="<?php echo $this->__('Suburb') ?>" style="display:none;"<?php echo ($this->isStateProvinceRequired() ? ' class="validate-select"' : '') ?>>
|
195 |
+
|
196 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
197 |
+
|
198 |
+
</select>
|
199 |
+
|
200 |
+
<script type="text/javascript">
|
201 |
+
|
202 |
+
//<![CDATA[
|
203 |
+
|
204 |
+
$('region_id').setAttribute('defaultValue', "<?php echo $this->getEstimateRegionId() ?>");
|
205 |
+
|
206 |
+
//]]>
|
207 |
+
|
208 |
+
</script>
|
209 |
+
|
210 |
+
<input type="text" id="region" name="region" value="<?php if($region_val){ echo $region_val;} else { echo $this->escapeHtml($this->getEstimateRegion()); } ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text required-entry" style="display:none;" />
|
211 |
+
|
212 |
+
</div>
|
213 |
+
|
214 |
+
</li>
|
215 |
+
|
216 |
+
<?php //endif; */ ?>
|
217 |
+
|
218 |
+
<?php if($this->getCityActive()): ?>
|
219 |
+
|
220 |
+
<li>
|
221 |
+
|
222 |
+
<label for="city"<?php if ($this->isCityRequired()) echo ' class="required"' ?>><?php if ($this->isCityRequired()) echo '<em>*</em>' ?><?php echo $this->__('City') ?></label>
|
223 |
+
|
224 |
+
<div class="input-box">
|
225 |
+
|
226 |
+
<input class="input-text<?php if ($this->isCityRequired()):?> required-entry<?php endif;?>" id="city" type="text" name="estimate_city" value="<?php echo $this->escapeHtml($this->getEstimateCity()) ?>" />
|
227 |
+
|
228 |
+
</div>
|
229 |
+
|
230 |
+
</li>
|
231 |
+
|
232 |
+
<?php endif; ?>
|
233 |
+
|
234 |
+
<li>
|
235 |
+
|
236 |
+
<label for="postcode"<?php if ($this->isZipCodeRequired()) echo ' class="required"' ?>><?php if ($this->isZipCodeRequired()) echo '<em>*</em>' ?><?php echo $this->__('Zip/Postal Code') ?></label>
|
237 |
+
|
238 |
+
<div class="input-box postcode_suburb">
|
239 |
+
|
240 |
+
<?php /*?><input class="input-text validate-number validate-postcode<?php if ($this->isZipCodeRequired()):?> required-entry<?php endif;?>" type="text" id="postcode" name="estimate_postcode" value="<?php if($postocde_val){ echo $postocde_val;} else { echo $this->escapeHtml($this->getEstimatePostcode()); } ?>" maxlength="4" /><?php */?>
|
241 |
+
|
242 |
+
|
243 |
+
|
244 |
+
<input id="autosuggest" type="text" />
|
245 |
+
|
246 |
+
<input type="hidden" name="suburb" id="suburb" value="" />
|
247 |
+
|
248 |
+
<input type="hidden" name="postcode" id="postcode" value="" />
|
249 |
+
|
250 |
+
|
251 |
+
|
252 |
+
<?php
|
253 |
+
|
254 |
+
//echo $tmp_cart_postcode_val; die('val');
|
255 |
+
|
256 |
+
if(!$tmp_cart_postcode_val=='' || !$tmp_cart_locality_val==''){ ?>
|
257 |
+
|
258 |
+
<script type="text/javascript">
|
259 |
+
|
260 |
+
var prev_suggest_value = '<div class="previous-selection"><span class="text"><?php echo 'Your Last Selection:'.' '?></span><span class="post"><?php echo 'Postcode:'.' '.$tmp_cart_postcode_val.' '; ?></span><span class="locality"><?php echo 'Suburb:'.' '.$tmp_cart_locality_val?></span></div>';
|
261 |
+
|
262 |
+
|
263 |
+
|
264 |
+
jQuery(document).ready(function(e) {
|
265 |
+
|
266 |
+
if(jQuery(".as-selections").find(".as-selection-item").html()){
|
267 |
+
|
268 |
+
} else {
|
269 |
+
|
270 |
+
jQuery("#shipping-zip-form .postcode_suburb").after(prev_suggest_value);
|
271 |
+
|
272 |
+
}
|
273 |
+
|
274 |
+
});
|
275 |
+
|
276 |
+
</script>
|
277 |
+
|
278 |
+
<?php } ?>
|
279 |
+
|
280 |
+
|
281 |
+
|
282 |
+
</div>
|
283 |
+
|
284 |
+
</li>
|
285 |
+
|
286 |
+
</ul>
|
287 |
+
|
288 |
+
<div class="buttons-set">
|
289 |
+
|
290 |
+
<button type="button" title="<?php echo $this->__('Get a Quote') ?>" onclick="coShippingMethodForm.submit()" class="button"><span><span><?php echo $this->__('Get a Quote') ?></span></span></button>
|
291 |
+
|
292 |
+
</div>
|
293 |
+
|
294 |
+
</form>
|
295 |
+
|
296 |
+
<script type="text/javascript">
|
297 |
+
|
298 |
+
//<![CDATA[
|
299 |
+
|
300 |
+
new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>);
|
301 |
+
|
302 |
+
//]]>
|
303 |
+
|
304 |
+
</script>
|
305 |
+
|
306 |
+
<?php //if (($_shippingRateGroups = $this->getEstimateRates())): ?>
|
307 |
+
|
308 |
+
<form id="co-shipping-method-form" action="<?php echo $this->getUrl('checkout/cart/estimateUpdatePost') ?>">
|
309 |
+
|
310 |
+
<dl class="sp-methods">
|
311 |
+
|
312 |
+
|
313 |
+
|
314 |
+
<?php
|
315 |
+
|
316 |
+
|
317 |
+
|
318 |
+
//$quotes_val = Mage::register('store_id', Mage::app()->getStore()->getId());
|
319 |
+
|
320 |
+
//$quotes_val = Mage::registry('quotes_val');
|
321 |
+
|
322 |
+
//echo '<pre>'; print_r($quotes_val); //die('val');
|
323 |
+
|
324 |
+
|
325 |
+
|
326 |
+
//$val = Mage::getSingleton('checkout/session')->getQuote();
|
327 |
+
|
328 |
+
|
329 |
+
|
330 |
+
$quotes_val = Mage::getSingleton('core/session')->getSomeSessionVar();
|
331 |
+
|
332 |
+
|
333 |
+
|
334 |
+
|
335 |
+
|
336 |
+
|
337 |
+
|
338 |
+
//echo $country_val. $postocde_val . $regionid_val . $region_val; //die('data');
|
339 |
+
|
340 |
+
|
341 |
+
|
342 |
+
//echo '<pre>'; print_r($quotes_val);
|
343 |
+
|
344 |
+
//die('sess set');
|
345 |
+
|
346 |
+
|
347 |
+
|
348 |
+
if($quotes_val){ //die('response');
|
349 |
+
|
350 |
+
|
351 |
+
|
352 |
+
?>
|
353 |
+
|
354 |
+
<dt><?php echo $this->__('Carrier');?></dt>
|
355 |
+
|
356 |
+
<dd>
|
357 |
+
|
358 |
+
<ul>
|
359 |
+
|
360 |
+
|
361 |
+
|
362 |
+
<?php
|
363 |
+
|
364 |
+
|
365 |
+
|
366 |
+
//foreach($quotes_val as $key => $val) {
|
367 |
+
|
368 |
+
|
369 |
+
|
370 |
+
$display_carriers = Mage::getStoreConfig('transdirect_section/displayoptions/availablecoriers');
|
371 |
+
|
372 |
+
$available_carriers = explode( ',', $display_carriers);
|
373 |
+
|
374 |
+
|
375 |
+
|
376 |
+
foreach ($quotes_val as $key => $val):
|
377 |
+
|
378 |
+
|
379 |
+
|
380 |
+
if(in_array($key,$available_carriers)) {
|
381 |
+
|
382 |
+
//echo '<br>'.$key . ' - matched<br>';
|
383 |
+
|
384 |
+
$xyz[$key] = $quotes_val[$key];
|
385 |
+
|
386 |
+
}
|
387 |
+
|
388 |
+
|
389 |
+
|
390 |
+
endforeach; //die;
|
391 |
+
|
392 |
+
|
393 |
+
|
394 |
+
foreach($xyz as $key => $abc):
|
395 |
+
|
396 |
+
if($key){
|
397 |
+
|
398 |
+
?>
|
399 |
+
|
400 |
+
|
401 |
+
|
402 |
+
<li>
|
403 |
+
|
404 |
+
<label for="s_method">
|
405 |
+
|
406 |
+
<?php
|
407 |
+
|
408 |
+
$display_showcouriername = Mage::getStoreConfig('transdirect_section/displayoptions/showcouriernames');
|
409 |
+
|
410 |
+
$display_surcharge = Mage::getStoreConfig('transdirect_section/displayoptions/handlingsurcharge');
|
411 |
+
|
412 |
+
$display_surcharge1 = Mage::getStoreConfig('transdirect_section/displayoptions/handlingsurcharge1');
|
413 |
+
|
414 |
+
|
415 |
+
|
416 |
+
if($display_showcouriername == '1'){
|
417 |
+
|
418 |
+
//echo $key;
|
419 |
+
|
420 |
+
if($key=='fastway'){echo $this->__("Fastway"); }
|
421 |
+
|
422 |
+
if($key=='toll_priority_overnight'){echo $this->__("Toll Priority Overnight"); }
|
423 |
+
|
424 |
+
if($key=='couriers_please'){echo $this->__("Couriers Please"); }
|
425 |
+
|
426 |
+
if($key=='allied'){echo $this->__("Allied Express"); }
|
427 |
+
|
428 |
+
if($key=='toll'){echo $this->__("Toll"); }
|
429 |
+
|
430 |
+
if($key=='mainfreight'){echo $this->__("Mainfreight"); }
|
431 |
+
|
432 |
+
if($key=='northline'){echo $this->__("Northline"); }
|
433 |
+
|
434 |
+
|
435 |
+
|
436 |
+
}
|
437 |
+
|
438 |
+
if($display_showcouriername == '1' && $display_surcharge == '1') {
|
439 |
+
|
440 |
+
echo ' + '.$this->__("Handling Charge");
|
441 |
+
|
442 |
+
}
|
443 |
+
|
444 |
+
?>
|
445 |
+
|
446 |
+
<?php //echo $key.' '; ?>
|
447 |
+
|
448 |
+
<?php $curr_symbol = Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();?>
|
449 |
+
|
450 |
+
<span class="price">
|
451 |
+
|
452 |
+
<?php
|
453 |
+
|
454 |
+
$tmp_display_surcharge = $abc['total'] + $display_surcharge1;
|
455 |
+
|
456 |
+
if($display_surcharge == '1'){
|
457 |
+
|
458 |
+
echo $curr_symbol. number_format($tmp_display_surcharge,2);
|
459 |
+
|
460 |
+
} else {
|
461 |
+
|
462 |
+
echo $curr_symbol. number_format($abc['total'],2);
|
463 |
+
|
464 |
+
}
|
465 |
+
|
466 |
+
|
467 |
+
|
468 |
+
?></span>
|
469 |
+
|
470 |
+
<span>
|
471 |
+
|
472 |
+
<?php echo '(Shipping Time - '. $abc['transit_time'].')'; ?>
|
473 |
+
|
474 |
+
</span>
|
475 |
+
|
476 |
+
</label>
|
477 |
+
|
478 |
+
</li>
|
479 |
+
|
480 |
+
|
481 |
+
|
482 |
+
<?php }
|
483 |
+
|
484 |
+
endforeach; //} ?>
|
485 |
+
|
486 |
+
|
487 |
+
|
488 |
+
</ul>
|
489 |
+
|
490 |
+
</dd>
|
491 |
+
|
492 |
+
<?php }
|
493 |
+
|
494 |
+
if($quotes_val == '' && $postocde_val != ''){
|
495 |
+
|
496 |
+
|
497 |
+
|
498 |
+
$display_fixedprice = Mage::getStoreConfig('transdirect_section/displayoptions/fixedpriceonerror');
|
499 |
+
|
500 |
+
$display_fixedprice1 = Mage::getStoreConfig('transdirect_section/displayoptions/fixedpriceonerror1');
|
501 |
+
|
502 |
+
?>
|
503 |
+
|
504 |
+
|
505 |
+
|
506 |
+
<dt><?php echo $this->__('Carrier');?></dt>
|
507 |
+
|
508 |
+
<dd>
|
509 |
+
|
510 |
+
<ul>
|
511 |
+
|
512 |
+
<li>
|
513 |
+
|
514 |
+
<label for="s_method"> <?php echo $this->__('Fixed Price'); ?>
|
515 |
+
|
516 |
+
<span class="price"> <?php echo $display_fixedprice1; ?> </span>
|
517 |
+
|
518 |
+
</label>
|
519 |
+
|
520 |
+
</li>
|
521 |
+
|
522 |
+
</ul>
|
523 |
+
|
524 |
+
</dd>
|
525 |
+
|
526 |
+
|
527 |
+
|
528 |
+
<?php } ?>
|
529 |
+
|
530 |
+
|
531 |
+
|
532 |
+
</dl>
|
533 |
+
|
534 |
+
|
535 |
+
|
536 |
+
<script type="text/javascript">
|
537 |
+
|
538 |
+
//<![CDATA[
|
539 |
+
|
540 |
+
var coShippingMethodForm = new VarienForm('shipping-zip-form');
|
541 |
+
|
542 |
+
var countriesWithOptionalZip = <?php echo $this->helper('directory')->getCountriesWithOptionalZip(true) ?>;
|
543 |
+
|
544 |
+
coShippingMethodForm.submit = function () {
|
545 |
+
|
546 |
+
var country = $F('country');
|
547 |
+
|
548 |
+
var optionalZip = false;
|
549 |
+
|
550 |
+
var optionregion = false;
|
551 |
+
|
552 |
+
for (i=0; i < countriesWithOptionalZip.length; i++) {
|
553 |
+
|
554 |
+
if (countriesWithOptionalZip[i] == country) {
|
555 |
+
|
556 |
+
optionalZip = true;
|
557 |
+
|
558 |
+
}
|
559 |
+
|
560 |
+
}
|
561 |
+
|
562 |
+
if (optionalZip) {
|
563 |
+
|
564 |
+
$('postcode').removeClassName('required-entry');
|
565 |
+
|
566 |
+
}
|
567 |
+
|
568 |
+
else {
|
569 |
+
|
570 |
+
$('postcode').addClassName('required-entry');
|
571 |
+
|
572 |
+
}
|
573 |
+
|
574 |
+
|
575 |
+
|
576 |
+
/*if (optionregion) {
|
577 |
+
|
578 |
+
$('region').removeClassName('required-entry');
|
579 |
+
|
580 |
+
}
|
581 |
+
|
582 |
+
else {
|
583 |
+
|
584 |
+
$('region').addClassName('required-entry');
|
585 |
+
|
586 |
+
}*/
|
587 |
+
|
588 |
+
|
589 |
+
|
590 |
+
return VarienForm.prototype.submit.bind(coShippingMethodForm)();
|
591 |
+
|
592 |
+
}
|
593 |
+
|
594 |
+
//]]>
|
595 |
+
|
596 |
+
</script>
|
597 |
+
|
598 |
+
</div>
|
599 |
+
|
600 |
+
</div>
|
601 |
+
|
602 |
+
<style type="text/css">
|
603 |
+
|
604 |
+
.shipping_product {border: 1px solid #D0CBC1; margin: 0 0 18px; padding: 10px;}
|
605 |
+
|
606 |
+
.shipping-form,.form-list .input-box, .form-list select {width:100%;}
|
607 |
+
|
608 |
+
.form-list input.input-text{width:97%;}
|
609 |
+
|
610 |
+
</style>
|
611 |
+
|
612 |
+
|
613 |
+
|
614 |
+
<?php } ?>
|
app/design/frontend/default/default/template/ship/shipping.phtml
ADDED
@@ -0,0 +1,719 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
|
5 |
+
* Magento
|
6 |
+
|
7 |
+
*
|
8 |
+
|
9 |
+
* NOTICE OF LICENSE
|
10 |
+
|
11 |
+
*
|
12 |
+
|
13 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
14 |
+
|
15 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
16 |
+
|
17 |
+
* It is also available through the world-wide-web at this URL:
|
18 |
+
|
19 |
+
* http://opensource.org/licenses/afl-3.0.php
|
20 |
+
|
21 |
+
* If you did not receive a copy of the license and are unable to
|
22 |
+
|
23 |
+
* obtain it through the world-wide-web, please send an email
|
24 |
+
|
25 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
26 |
+
|
27 |
+
*
|
28 |
+
|
29 |
+
* DISCLAIMER
|
30 |
+
|
31 |
+
*
|
32 |
+
|
33 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
34 |
+
|
35 |
+
* versions in the future. If you wish to customize Magento for your
|
36 |
+
|
37 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
38 |
+
|
39 |
+
*
|
40 |
+
|
41 |
+
* @category design
|
42 |
+
|
43 |
+
* @package base_default
|
44 |
+
|
45 |
+
* @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
|
46 |
+
|
47 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
48 |
+
|
49 |
+
*/
|
50 |
+
|
51 |
+
?>
|
52 |
+
|
53 |
+
<?php /** @var $this Mage_Checkout_Block_Cart_Shipping */
|
54 |
+
|
55 |
+
|
56 |
+
|
57 |
+
?>
|
58 |
+
|
59 |
+
|
60 |
+
|
61 |
+
<?php if(Mage::getStoreConfig('transdirect_section/enabletab/enable')){ ?>
|
62 |
+
|
63 |
+
|
64 |
+
|
65 |
+
<!--<link href="<?php echo $this->getSkinUrl();?>ship/js/jquery.autoSuggest.css" rel="stylesheet" />
|
66 |
+
|
67 |
+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
68 |
+
|
69 |
+
<script type="text/javascript" src="https://www.transdirect.com.au/api/locations/script"></script>
|
70 |
+
|
71 |
+
<script src="<?php //echo $this->getSkinUrl();?>ship/js/location_script.js"></script>
|
72 |
+
|
73 |
+
<script src="<?php echo $this->getSkinUrl();?>ship/js/jquery.autoSuggest.js"></script>-->
|
74 |
+
|
75 |
+
|
76 |
+
|
77 |
+
<script type="text/javascript">
|
78 |
+
|
79 |
+
jQuery(document).ready(function(e) {
|
80 |
+
|
81 |
+
var result;
|
82 |
+
|
83 |
+
var data = {items: []};
|
84 |
+
|
85 |
+
jQuery.each( TDLocationsList, function( i, item ) {
|
86 |
+
|
87 |
+
data.items.push({ value: TDLocationsList[i].postcode +' '+ TDLocationsList[i].locality , name: TDLocationsList[i].postcode +' '+ TDLocationsList[i].locality});
|
88 |
+
|
89 |
+
});
|
90 |
+
|
91 |
+
jQuery("#autosuggest").autoSuggest(data.items,
|
92 |
+
|
93 |
+
{
|
94 |
+
|
95 |
+
selectedItemProp: "name",
|
96 |
+
|
97 |
+
searchObjProps: "name",
|
98 |
+
|
99 |
+
selectionLimit: 1,
|
100 |
+
|
101 |
+
minChars: 3,
|
102 |
+
|
103 |
+
selectionAdded: function(elem)
|
104 |
+
|
105 |
+
{
|
106 |
+
|
107 |
+
result = elem.text();
|
108 |
+
|
109 |
+
getresultval(result);
|
110 |
+
|
111 |
+
}
|
112 |
+
|
113 |
+
}
|
114 |
+
|
115 |
+
);
|
116 |
+
|
117 |
+
function getresultval(res){
|
118 |
+
|
119 |
+
var postcode = res.substr(1,4);
|
120 |
+
|
121 |
+
var locality = res.substr(6);
|
122 |
+
|
123 |
+
jQuery('#suburb').attr("value", locality);
|
124 |
+
|
125 |
+
jQuery('#postcode').attr("value", postcode);
|
126 |
+
|
127 |
+
|
128 |
+
var d = new Date();
|
129 |
+
d.setTime(d.getTime() + (5*24*60*60*1000));
|
130 |
+
|
131 |
+
document.cookie="cart_postocde="+postcode+"; expires="+d.toUTCString()+"; path=/";
|
132 |
+
document.cookie="cart_locality="+locality+"; expires="+d.toUTCString()+"; path=/";
|
133 |
+
|
134 |
+
/*document.cookie="cart_postocde="+postcode;
|
135 |
+
|
136 |
+
document.cookie="cart_locality="+locality;*/
|
137 |
+
|
138 |
+
}
|
139 |
+
|
140 |
+
if(jQuery( ".as-results .as-message:contains('No Results Found')" )){
|
141 |
+
|
142 |
+
jQuery(".postcode_suburb .as-results").css("display","none");
|
143 |
+
|
144 |
+
}
|
145 |
+
|
146 |
+
});
|
147 |
+
|
148 |
+
|
149 |
+
|
150 |
+
</script>
|
151 |
+
|
152 |
+
|
153 |
+
|
154 |
+
<?php
|
155 |
+
|
156 |
+
$tmp_cart_postcode_val = $_COOKIE['cart_postocde'];
|
157 |
+
|
158 |
+
$tmp_cart_locality_val = $_COOKIE['cart_locality'];
|
159 |
+
|
160 |
+
?>
|
161 |
+
|
162 |
+
|
163 |
+
|
164 |
+
<?php Mage::getSingleton('core/session')->unsCartpostcodeVal();
|
165 |
+
|
166 |
+
Mage::getSingleton('core/session')->unsCartlocalityVal();
|
167 |
+
|
168 |
+
|
169 |
+
|
170 |
+
// $cart_postcode_val = Mage::getSingleton('core/session')->setCartpostcodeVal($tmp_cart_postcode_val);
|
171 |
+
|
172 |
+
// $cart_locality_val = Mage::getSingleton('core/session')->setCartlocalityVal($tmp_cart_locality_val);
|
173 |
+
|
174 |
+
|
175 |
+
|
176 |
+
?>
|
177 |
+
|
178 |
+
|
179 |
+
|
180 |
+
<?php
|
181 |
+
$transit_val = Mage::getSingleton('core/session')->getTransitVal(); //die('tra');
|
182 |
+
$quotes_val1 = Mage::getSingleton('core/session')->getSomeSessionVar1();
|
183 |
+
$booking_id = Mage::getSingleton('core/session')->getSomeSessionVar2();
|
184 |
+
|
185 |
+
|
186 |
+
|
187 |
+
// var_dump($transit_val);
|
188 |
+
|
189 |
+
// var_dump($quotes_val1);
|
190 |
+
|
191 |
+
//echo '<pre>'; print_r($quotes_val1); die;
|
192 |
+
|
193 |
+
|
194 |
+
|
195 |
+
//$quote_form_postcode_val = Mage::getSingleton('core/session')->setPostcodeVal($postcode); // In the Controller
|
196 |
+
|
197 |
+
|
198 |
+
|
199 |
+
?>
|
200 |
+
|
201 |
+
<div class="shipping">
|
202 |
+
|
203 |
+
<h2><?php echo $this->__('Get A Shipping Quote') ?></h2>
|
204 |
+
|
205 |
+
<?php echo $this->getChildHtml('global_messages') ?>
|
206 |
+
|
207 |
+
<div class="shipping-form">
|
208 |
+
|
209 |
+
<form action="<?php echo $this->getUrl('checkout/cart/estimatePost') ?>" method="post" id="shipping-zip-form">
|
210 |
+
|
211 |
+
<p><?php echo $this->__('Enter your destination to get a shipping estimate.') ?></p>
|
212 |
+
|
213 |
+
<ul class="form-list">
|
214 |
+
|
215 |
+
<li>
|
216 |
+
|
217 |
+
<label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
218 |
+
|
219 |
+
<div class="input-box">
|
220 |
+
|
221 |
+
<select name="country_id" id="country" class="validate-select" title="Country" >
|
222 |
+
|
223 |
+
<option value="AU" selected="selected" >Australia</option>
|
224 |
+
|
225 |
+
</select>
|
226 |
+
|
227 |
+
</div>
|
228 |
+
|
229 |
+
<?php /*?><div class="input-box">
|
230 |
+
|
231 |
+
<?php echo Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect($this->getEstimateCountryId()) ?>
|
232 |
+
|
233 |
+
</div><?php */?>
|
234 |
+
|
235 |
+
</li>
|
236 |
+
|
237 |
+
<?php //if($this->getStateActive()): ?>
|
238 |
+
|
239 |
+
<?php /*?>
|
240 |
+
|
241 |
+
<li>
|
242 |
+
|
243 |
+
<label for="region_id"<?php if ($this->isStateProvinceRequired()) echo ' class="required"' ?>>
|
244 |
+
|
245 |
+
<?php if ($this->isStateProvinceRequired()) echo '<em>*</em>' ?>
|
246 |
+
|
247 |
+
<?php echo $this->__('Suburb') ?></label>
|
248 |
+
|
249 |
+
<div class="input-box">
|
250 |
+
|
251 |
+
<select id="region_id" name="region_id" title="<?php echo $this->__('Suburb') ?>" style="display:none;"<?php echo ($this->isStateProvinceRequired() ? ' class="validate-select"' : '') ?>>
|
252 |
+
|
253 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
254 |
+
|
255 |
+
</select>
|
256 |
+
|
257 |
+
<script type="text/javascript">
|
258 |
+
|
259 |
+
//<![CDATA[
|
260 |
+
|
261 |
+
$('region_id').setAttribute('defaultValue', "<?php echo $this->getEstimateRegionId() ?>");
|
262 |
+
|
263 |
+
//]]>
|
264 |
+
|
265 |
+
</script>
|
266 |
+
|
267 |
+
<input type="text" id="region" name="region" value="<?php echo $this->escapeHtml($this->getEstimateRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text required-entry" />
|
268 |
+
|
269 |
+
</div>
|
270 |
+
|
271 |
+
</li><?php */?>
|
272 |
+
|
273 |
+
<?php //endif; ?>
|
274 |
+
|
275 |
+
<?php if($this->getCityActive()): ?>
|
276 |
+
|
277 |
+
<li>
|
278 |
+
|
279 |
+
<label for="city"<?php if ($this->isCityRequired()) echo ' class="required"' ?>>
|
280 |
+
|
281 |
+
<?php if ($this->isCityRequired()) echo '<em>*</em>' ?>
|
282 |
+
|
283 |
+
<?php echo $this->__('City') ?></label>
|
284 |
+
|
285 |
+
<div class="input-box">
|
286 |
+
|
287 |
+
<input class="input-text<?php if ($this->isCityRequired()):?> required-entry<?php endif;?>" id="city" type="text" name="estimate_city" value="<?php echo $this->escapeHtml($this->getEstimateCity()) ?>" />
|
288 |
+
|
289 |
+
</div>
|
290 |
+
|
291 |
+
</li>
|
292 |
+
|
293 |
+
<?php endif; ?>
|
294 |
+
|
295 |
+
<li>
|
296 |
+
|
297 |
+
<label for="postcode"<?php if ($this->isZipCodeRequired()) echo ' class="required"' ?>>
|
298 |
+
|
299 |
+
<?php if ($this->isZipCodeRequired()) echo '<em>*</em>' ?>
|
300 |
+
|
301 |
+
<?php echo $this->__('Suburb / Postal Code') ?></label>
|
302 |
+
|
303 |
+
<div class="input-box postcode_suburb">
|
304 |
+
|
305 |
+
<?php /*?><input class="input-text validate-number validate-postcode<?php if ($this->isZipCodeRequired()):?> required-entry<?php endif;?>" type="text" id="postcode" name="estimate_postcode" value="<?php echo $this->escapeHtml($this->getEstimatePostcode()) ?>" maxlength="4"/><?php */?>
|
306 |
+
|
307 |
+
|
308 |
+
|
309 |
+
<input id="autosuggest" type="text" />
|
310 |
+
|
311 |
+
<input type="hidden" name="suburb" id="suburb" value="" />
|
312 |
+
|
313 |
+
<input type="hidden" name="postcode" id="postcode" value="" />
|
314 |
+
|
315 |
+
|
316 |
+
|
317 |
+
<?php
|
318 |
+
|
319 |
+
//echo $tmp_cart_postcode_val; die('val');
|
320 |
+
|
321 |
+
if(!$tmp_cart_postcode_val=='' || !$tmp_cart_locality_val==''){ ?>
|
322 |
+
|
323 |
+
<script type="text/javascript">
|
324 |
+
|
325 |
+
var prev_suggest_value = '<div class="previous-selection"><span class="text"><?php echo 'Your Last Selection:'.' '?></span><span class="post"><?php echo 'Postcode:'.' '.$tmp_cart_postcode_val.' '; ?></span><span class="locality"><?php echo 'Suburb:'.' '.$tmp_cart_locality_val?></span></div>';
|
326 |
+
|
327 |
+
|
328 |
+
|
329 |
+
jQuery(document).ready(function(e) {
|
330 |
+
|
331 |
+
if(jQuery(".as-selections").find(".as-selection-item").html()){
|
332 |
+
|
333 |
+
jQuery(".previous-selection").css('display','none');
|
334 |
+
|
335 |
+
} else {
|
336 |
+
|
337 |
+
jQuery("#shipping-zip-form .postcode_suburb").after(prev_suggest_value);
|
338 |
+
|
339 |
+
}
|
340 |
+
|
341 |
+
});
|
342 |
+
|
343 |
+
</script>
|
344 |
+
|
345 |
+
<?php } ?>
|
346 |
+
|
347 |
+
|
348 |
+
|
349 |
+
</div>
|
350 |
+
|
351 |
+
</li>
|
352 |
+
|
353 |
+
</ul>
|
354 |
+
|
355 |
+
<div class="buttons-set">
|
356 |
+
|
357 |
+
<button type="button" title="<?php echo $this->__('Get a Quote') ?>" onclick="coShippingMethodForm.submit()" class="button"><span><span><?php echo $this->__('Get a Quote') ?></span></span></button>
|
358 |
+
|
359 |
+
</div>
|
360 |
+
|
361 |
+
</form>
|
362 |
+
|
363 |
+
<script type="text/javascript">
|
364 |
+
|
365 |
+
//<![CDATA[
|
366 |
+
|
367 |
+
new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>);
|
368 |
+
|
369 |
+
//]]>
|
370 |
+
|
371 |
+
</script>
|
372 |
+
|
373 |
+
|
374 |
+
|
375 |
+
<?php if (($_shippingRateGroups = $this->getEstimateRates())): ?>
|
376 |
+
|
377 |
+
|
378 |
+
|
379 |
+
<form id="co-shipping-method-form" action="<?php echo $this->getUrl('checkout/cart/estimateUpdatePost') ?>">
|
380 |
+
|
381 |
+
<dl class="sp-methods">
|
382 |
+
|
383 |
+
<dt><?php echo $this->__("Carrier"); ?></dt>
|
384 |
+
|
385 |
+
<?php
|
386 |
+
|
387 |
+
/*function cmp($a, $b) {
|
388 |
+
|
389 |
+
$display_quote = Mage::getStoreConfig('transdirect_section/displayoptions/quotedisplay');
|
390 |
+
|
391 |
+
|
392 |
+
|
393 |
+
if($display_quote == 'display_cheapest'){ return strcmp($a['price'], $b['price']); } else { return strcmp($a['method_title'], $b['method_title']); }
|
394 |
+
|
395 |
+
} */
|
396 |
+
|
397 |
+
function cmp($key) {
|
398 |
+
|
399 |
+
return function ($a, $b) use ($key) {
|
400 |
+
|
401 |
+
return strnatcmp($a[$key], $b[$key]);
|
402 |
+
|
403 |
+
};
|
404 |
+
|
405 |
+
}
|
406 |
+
|
407 |
+
|
408 |
+
|
409 |
+
$display_quote = Mage::getStoreConfig('transdirect_section/displayoptions/quotedisplay');
|
410 |
+
|
411 |
+
|
412 |
+
|
413 |
+
/* function build_sorter($key) {
|
414 |
+
|
415 |
+
return function ($a, $b) use ($key) {
|
416 |
+
|
417 |
+
return strnatcmp($a[$key], $b[$key]);
|
418 |
+
|
419 |
+
};
|
420 |
+
|
421 |
+
}*/
|
422 |
+
|
423 |
+
//echo '<pre>'; print_r($_shippingRateGroups); die;
|
424 |
+
|
425 |
+
?>
|
426 |
+
|
427 |
+
<!-- get data -->
|
428 |
+
|
429 |
+
<?php /*?> <dt><?php echo $this->escapeHtml($this->getCarrierName($code)) ?></dt><?php */
|
430 |
+
|
431 |
+
?>
|
432 |
+
|
433 |
+
<dd>
|
434 |
+
|
435 |
+
<ul>
|
436 |
+
|
437 |
+
<?php //usort($_rates, 'cmp');
|
438 |
+
|
439 |
+
foreach ($_shippingRateGroups as $code => $_rates):
|
440 |
+
|
441 |
+
foreach ($_rates as $ratekey => $_rate):
|
442 |
+
|
443 |
+
|
444 |
+
|
445 |
+
$xyz[] = $_rates[$ratekey]->getData();
|
446 |
+
|
447 |
+
$ratekey = sizeof($xyz) - 1;
|
448 |
+
|
449 |
+
|
450 |
+
|
451 |
+
foreach ($quotes_val1 as $key => $val):
|
452 |
+
|
453 |
+
//echo $key .' = '. $xyz[$ratekey]['method'].'<br>';
|
454 |
+
|
455 |
+
//echo $quotes_val1[$key]['transit_time'];
|
456 |
+
|
457 |
+
if($key == $xyz[$ratekey]['method']) {
|
458 |
+
|
459 |
+
// var_dump($xyz[$ratekey]);
|
460 |
+
|
461 |
+
$xyz[$ratekey]['transit_time'] = $quotes_val1[$key]['transit_time'];
|
462 |
+
|
463 |
+
break;
|
464 |
+
|
465 |
+
}
|
466 |
+
|
467 |
+
endforeach;
|
468 |
+
|
469 |
+
//die;
|
470 |
+
|
471 |
+
//$xyz[] = $transit_val;
|
472 |
+
|
473 |
+
//echo '<pre>'; print_r($_rate->getData());
|
474 |
+
|
475 |
+
endforeach;
|
476 |
+
|
477 |
+
|
478 |
+
|
479 |
+
endforeach;
|
480 |
+
|
481 |
+
//echo '<pre>'; print_r($xyz); die;
|
482 |
+
|
483 |
+
|
484 |
+
|
485 |
+
// sorting
|
486 |
+
|
487 |
+
if($display_quote == 'display_cheapest'){ usort($xyz, cmp('price')); }
|
488 |
+
|
489 |
+
if($display_quote == 'display_all_quotes'){ usort($xyz, cmp('method_title')); }
|
490 |
+
|
491 |
+
if($display_quote == 'display_cheapest_fastest'){ usort($xyz, cmp('transit_time')); }
|
492 |
+
|
493 |
+
//usort($xyz, cmp('price'));
|
494 |
+
|
495 |
+
|
496 |
+
|
497 |
+
/*
|
498 |
+
|
499 |
+
$display_quote = Mage::getStoreConfig('transdirect_section/displayoptions/quotedisplay');
|
500 |
+
|
501 |
+
|
502 |
+
|
503 |
+
if($display_quote == 'display_cheapest'){ usort($xyz, build_sorter('price')); }
|
504 |
+
|
505 |
+
if($display_quote == 'display_all_quotes'){ usort($xyz, build_sorter('price')); }
|
506 |
+
|
507 |
+
if($display_quote == 'display_cheapest_fastest'){ usort($xyz, build_sorter('price')); }
|
508 |
+
|
509 |
+
*/
|
510 |
+
|
511 |
+
|
512 |
+
|
513 |
+
//echo '<pre>'; print_r($xyz);
|
514 |
+
|
515 |
+
|
516 |
+
|
517 |
+
// display
|
518 |
+
|
519 |
+
foreach($xyz as $key => $abc):
|
520 |
+
|
521 |
+
//echo '<pre>'; print_r($abc); die('ship');
|
522 |
+
|
523 |
+
//endforeach;
|
524 |
+
|
525 |
+
//echo $abc['code'];die;
|
526 |
+
|
527 |
+
|
528 |
+
|
529 |
+
if($abc['method_title']){?>
|
530 |
+
|
531 |
+
<li<?php if ($_rate->getErrorMessage()) echo ' class="error-msg"';?>>
|
532 |
+
|
533 |
+
<?php if ($_rate->getErrorMessage()): ?>
|
534 |
+
|
535 |
+
<?php echo $this->escapeHtml($_rate->getErrorMessage()) ?>
|
536 |
+
|
537 |
+
<?php else: ?>
|
538 |
+
|
539 |
+
<input name="estimate_method" type="radio" value="<?php echo $abc['code'];
|
540 |
+
|
541 |
+
//$this->escapeHtml($_rate->getCode()) ?>" id="s_method_<?php echo $abc['code'] ?>"
|
542 |
+
|
543 |
+
<?php if($abc['code']===$this->getAddressShippingMethod()) echo ' checked="checked"' ?>
|
544 |
+
|
545 |
+
class="radio" />
|
546 |
+
|
547 |
+
<label for="s_method_<?php echo $abc['code']; ?>">
|
548 |
+
|
549 |
+
<?php
|
550 |
+
|
551 |
+
$display_showcouriername = Mage::getStoreConfig('transdirect_section/displayoptions/showcouriernames');
|
552 |
+
|
553 |
+
if($display_showcouriername == '1'){
|
554 |
+
|
555 |
+
echo $abc['method_title'];
|
556 |
+
|
557 |
+
/*
|
558 |
+
|
559 |
+
if($abc['method_title']=='fastway'){echo $this->__("Fastway"); }
|
560 |
+
|
561 |
+
if($abc['method_title']=='toll_priority_overnight'){echo $this->__("Toll Priority Overnight"); }
|
562 |
+
|
563 |
+
if($abc['method_title']=='couriers_please'){echo $this->__("Couriers Please"); }
|
564 |
+
|
565 |
+
if($abc['method_title']=='allied'){echo $this->__("Allied Express"); }
|
566 |
+
|
567 |
+
if($abc['method_title']=='toll'){echo $this->__("Toll"); }
|
568 |
+
|
569 |
+
if($abc['method_title']=='mainfreight'){echo $this->__("Mainfreight"); }
|
570 |
+
|
571 |
+
if($abc['method_title']=='northline'){echo $this->__("Northline"); }
|
572 |
+
|
573 |
+
*/
|
574 |
+
|
575 |
+
//$this->escapeHtml($_rate->getMethodTitle());
|
576 |
+
|
577 |
+
}
|
578 |
+
|
579 |
+
?>
|
580 |
+
|
581 |
+
<?php $_excl = $this->getShippingPrice($abc['price'],
|
582 |
+
|
583 |
+
$this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
584 |
+
|
585 |
+
<?php $_incl = $this->getShippingPrice($abc['price'], true); ?>
|
586 |
+
|
587 |
+
<?php echo $_excl; ?>
|
588 |
+
|
589 |
+
|
590 |
+
|
591 |
+
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
592 |
+
|
593 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
594 |
+
|
595 |
+
<?php endif; ?>
|
596 |
+
|
597 |
+
|
598 |
+
|
599 |
+
<?php if($abc['method_title'] != 'Fixed Price' && $abc['transit_time'] != '') {?>
|
600 |
+
|
601 |
+
<span> <?php echo ' (Shipping Time - '. $abc['transit_time'].')';?> </span>
|
602 |
+
|
603 |
+
<?php } ?>
|
604 |
+
|
605 |
+
</label>
|
606 |
+
|
607 |
+
<?php endif; ?>
|
608 |
+
|
609 |
+
</li>
|
610 |
+
|
611 |
+
<?php }
|
612 |
+
|
613 |
+
endforeach;
|
614 |
+
|
615 |
+
// die('rate'); ?>
|
616 |
+
|
617 |
+
<?php /*?> <li>
|
618 |
+
|
619 |
+
<input name="estimate_method" type="radio" value="<?php echo $this->escapeHtml($_rate->getCode()) ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio" />
|
620 |
+
|
621 |
+
<label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $this->escapeHtml($_rate->getMethodTitleOne()) ?>
|
622 |
+
|
623 |
+
<?php $_incl = $this->getShippingPrice($_rate->getPriceOne(), true); ?>
|
624 |
+
|
625 |
+
</li><?php */?>
|
626 |
+
|
627 |
+
</ul>
|
628 |
+
|
629 |
+
</dd>
|
630 |
+
|
631 |
+
<?php //endforeach; ?>
|
632 |
+
|
633 |
+
</dl>
|
634 |
+
|
635 |
+
|
636 |
+
|
637 |
+
|
638 |
+
|
639 |
+
<div class="buttons-set">
|
640 |
+
|
641 |
+
<button type="submit" title="<?php echo $this->__('Update Total') ?>" class="button" name="do" value="<?php echo $this->__('Update Total') ?>"><span><span><?php echo $this->__('Update Total') ?></span></span></button>
|
642 |
+
|
643 |
+
</div>
|
644 |
+
|
645 |
+
|
646 |
+
|
647 |
+
</form>
|
648 |
+
|
649 |
+
<?php endif; ?>
|
650 |
+
|
651 |
+
|
652 |
+
|
653 |
+
<script type="text/javascript">
|
654 |
+
|
655 |
+
//<![CDATA[
|
656 |
+
|
657 |
+
var coShippingMethodForm = new VarienForm('shipping-zip-form');
|
658 |
+
|
659 |
+
var countriesWithOptionalZip = <?php echo $this->helper('directory')->getCountriesWithOptionalZip(true) ?>;
|
660 |
+
|
661 |
+
coShippingMethodForm.submit = function () {
|
662 |
+
|
663 |
+
var country = $F('country');
|
664 |
+
|
665 |
+
var optionalZip = false;
|
666 |
+
|
667 |
+
var optionregion = false;
|
668 |
+
|
669 |
+
for (i=0; i < countriesWithOptionalZip.length; i++) {
|
670 |
+
|
671 |
+
if (countriesWithOptionalZip[i] == country) {
|
672 |
+
|
673 |
+
optionalZip = true;
|
674 |
+
|
675 |
+
}
|
676 |
+
|
677 |
+
}
|
678 |
+
|
679 |
+
if (optionalZip) {
|
680 |
+
|
681 |
+
$('postcode').removeClassName('required-entry');
|
682 |
+
|
683 |
+
}
|
684 |
+
|
685 |
+
else {
|
686 |
+
|
687 |
+
$('postcode').addClassName('required-entry');
|
688 |
+
|
689 |
+
}
|
690 |
+
|
691 |
+
/* if (optionregion) {
|
692 |
+
|
693 |
+
$('region').removeClassName('required-entry');
|
694 |
+
|
695 |
+
}
|
696 |
+
|
697 |
+
else {
|
698 |
+
|
699 |
+
$('region').addClassName('required-entry');
|
700 |
+
|
701 |
+
}
|
702 |
+
|
703 |
+
*/
|
704 |
+
|
705 |
+
return VarienForm.prototype.submit.bind(coShippingMethodForm)();
|
706 |
+
|
707 |
+
}
|
708 |
+
|
709 |
+
//]]>
|
710 |
+
|
711 |
+
</script>
|
712 |
+
|
713 |
+
</div>
|
714 |
+
|
715 |
+
</div>
|
716 |
+
|
717 |
+
|
718 |
+
|
719 |
+
<?php } ?>
|
app/design/frontend/rwd/default/template/checkout/cart.phtml
ADDED
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Shopping cart template
|
30 |
+
*
|
31 |
+
* @var $this Mage_Checkout_Block_Cart
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php $_priceDisplay = ($this->helper('tax')->displayCartBothPrices()) ? 'display-both-prices' : 'display-single-price'; ?>
|
35 |
+
<div class="cart <?php echo $_priceDisplay; ?>">
|
36 |
+
<div class="page-title title-buttons">
|
37 |
+
<h1><?php echo $this->__('Shopping Cart') ?></h1>
|
38 |
+
<?php if(!$this->hasError()): ?>
|
39 |
+
<ul class="checkout-types top">
|
40 |
+
<?php foreach ($this->getMethods('top_methods') as $method): ?>
|
41 |
+
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
|
42 |
+
<li><?php echo $methodHtml; ?></li>
|
43 |
+
<?php endif; ?>
|
44 |
+
<?php endforeach; ?>
|
45 |
+
</ul>
|
46 |
+
<?php endif; ?>
|
47 |
+
</div>
|
48 |
+
<?php echo $this->getMessagesBlock()->toHtml() ?>
|
49 |
+
<?php echo $this->getChildHtml('form_before') ?>
|
50 |
+
<form action="<?php echo $this->getFormActionUrl() ?>" method="post">
|
51 |
+
<?php echo $this->getBlockHtml('formkey'); ?>
|
52 |
+
<table id="shopping-cart-table" class="cart-table data-table">
|
53 |
+
<col width="1" />
|
54 |
+
<col width="1" />
|
55 |
+
<col width="1" />
|
56 |
+
<col width="1" />
|
57 |
+
<col width="1" />
|
58 |
+
<col width="1" />
|
59 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
60 |
+
<col width="1" />
|
61 |
+
<col width="1" />
|
62 |
+
<?php endif; ?>
|
63 |
+
|
64 |
+
<?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
|
65 |
+
<thead>
|
66 |
+
<tr>
|
67 |
+
<th rowspan="<?php echo $mergedCells; ?>"><span class="nobr"><?php echo $this->__('Product') ?></span></th>
|
68 |
+
|
69 |
+
<th rowspan="<?php echo $mergedCells; ?>"> </th>
|
70 |
+
|
71 |
+
<th class="a-center cart-price-head" colspan="<?php echo $mergedCells; ?>">
|
72 |
+
<!-- <div class="cart-price-placeholder">-->
|
73 |
+
<span class="nobr"><?php echo $this->__('Price') ?></span>
|
74 |
+
<!-- </div>-->
|
75 |
+
</th>
|
76 |
+
|
77 |
+
<th rowspan="<?php echo $mergedCells; ?>" class="a-center">
|
78 |
+
<?php echo $this->__('Qty') ?>
|
79 |
+
|
80 |
+
<?php /*if ($this->helper('wishlist')->isAllowInCart()) : ?>
|
81 |
+
<span class="nobr"><?php echo $this->__('Move to Wishlist') ?></span>
|
82 |
+
<?php endif*/ ?>
|
83 |
+
|
84 |
+
</th>
|
85 |
+
|
86 |
+
<th class="a-center cart-total-head" colspan="<?php echo $mergedCells; ?>">
|
87 |
+
<!-- <div class="cart-total-placeholder">-->
|
88 |
+
<?php echo $this->__('Subtotal') ?>
|
89 |
+
<!-- </div>-->
|
90 |
+
</th>
|
91 |
+
|
92 |
+
<th class="a-center" rowspan="<?php echo $mergedCells; ?>"> </th>
|
93 |
+
|
94 |
+
</tr>
|
95 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
96 |
+
<tr>
|
97 |
+
<th class="a-center cart-price-head"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
98 |
+
<th class="a-center cart-price-head"><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
99 |
+
<th class="a-center cart-total-head"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
100 |
+
<th class="a-center cart-total-head"><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
101 |
+
</tr>
|
102 |
+
<?php endif; ?>
|
103 |
+
</thead>
|
104 |
+
<tfoot>
|
105 |
+
<tr>
|
106 |
+
<td colspan="50" class="a-right cart-footer-actions">
|
107 |
+
|
108 |
+
<!-- Make this button the first responder rather than empty cart -->
|
109 |
+
<button type="submit" style="visibility:hidden;" data-cart-item-update name="update_cart_action" value="update_qty" title="<?php echo $this->quoteEscape($this->__('Update Shopping Cart')); ?>" class="button2 btn-update"><span><span><?php echo $this->__('Update Shopping Cart'); ?></span></span></button>
|
110 |
+
|
111 |
+
<button type="submit" name="update_cart_action" data-cart-empty value="empty_cart" title="<?php echo $this->quoteEscape($this->__('Empty Cart')); ?>" class="button2 btn-empty" id="empty_cart_button"><span><span><?php echo $this->__('Empty Cart'); ?></span></span></button>
|
112 |
+
|
113 |
+
<button type="submit" name="update_cart_action" data-cart-item-update value="update_qty" title="<?php echo $this->quoteEscape($this->__('Update Shopping Cart')); ?>" class="button2 btn-update"><span><span><?php echo $this->__('Update Shopping Cart'); ?></span></span></button>
|
114 |
+
|
115 |
+
<span class="or">-<?php echo $this->__('or'); ?>-</span>
|
116 |
+
|
117 |
+
<?php if($this->getContinueShoppingUrl()): ?>
|
118 |
+
<button type="button" title="<?php echo $this->quoteEscape($this->__('Continue Shopping')) ?>" class="button2 btn-continue" onclick="setLocation('<?php echo Mage::helper('core')->quoteEscape($this->getContinueShoppingUrl()) ?>')"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
|
119 |
+
<?php endif; ?>
|
120 |
+
<!--[if lt IE 8]>
|
121 |
+
<input type="hidden" id="update_cart_action_container" data-cart-item-update />
|
122 |
+
<script type="text/javascript">
|
123 |
+
//<![CDATA[
|
124 |
+
Event.observe(window, 'load', function()
|
125 |
+
{
|
126 |
+
// Internet Explorer (lt 8) does not support value attribute in button elements
|
127 |
+
$emptyCartButton = $('empty_cart_button');
|
128 |
+
$cartActionContainer = $('update_cart_action_container');
|
129 |
+
if ($emptyCartButton && $cartActionContainer) {
|
130 |
+
Event.observe($emptyCartButton, 'click', function()
|
131 |
+
{
|
132 |
+
$emptyCartButton.setAttribute('name', 'update_cart_action_temp');
|
133 |
+
$cartActionContainer.setAttribute('name', 'update_cart_action');
|
134 |
+
$cartActionContainer.setValue('empty_cart');
|
135 |
+
});
|
136 |
+
}
|
137 |
+
|
138 |
+
});
|
139 |
+
//]]>
|
140 |
+
</script>
|
141 |
+
<![endif]-->
|
142 |
+
</td>
|
143 |
+
</tr>
|
144 |
+
</tfoot>
|
145 |
+
<tbody>
|
146 |
+
<?php foreach($this->getItems() as $_item): ?>
|
147 |
+
<?php echo $this->getItemHtml($_item) ?>
|
148 |
+
<?php endforeach ?>
|
149 |
+
</tbody>
|
150 |
+
</table>
|
151 |
+
<script type="text/javascript">decorateTable('shopping-cart-table')</script>
|
152 |
+
</form>
|
153 |
+
|
154 |
+
<?php echo $this->getChildHtml('shopping.cart.table.after'); ?>
|
155 |
+
<div class="cart-forms">
|
156 |
+
<?php /* Extensions placeholder */ ?>
|
157 |
+
<?php echo $this->getChildHtml('checkout_cart_widget') ?>
|
158 |
+
<?php echo $this->getChildHtml('coupon') ?>
|
159 |
+
<?php echo $this->getChildHtml('checkout.cart.extra') ?>
|
160 |
+
<?php if (!$this->getIsVirtual()): echo $this->getChildHtml('shipping'); endif; ?>
|
161 |
+
</div>
|
162 |
+
<div class="cart-totals-wrapper">
|
163 |
+
<div class="cart-totals">
|
164 |
+
<?php echo $this->getChildHtml('totals'); ?>
|
165 |
+
<?php if(!$this->hasError()): ?>
|
166 |
+
<ul class="checkout-types bottom">
|
167 |
+
<?php foreach ($this->getMethods('methods') as $method): ?>
|
168 |
+
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
|
169 |
+
<li class="method-<?php echo preg_replace("/[^_a-zA-Z0-9-]/", '-', $method); ?>"><?php echo $methodHtml; ?></li>
|
170 |
+
<?php endif; ?>
|
171 |
+
<?php endforeach; ?>
|
172 |
+
</ul>
|
173 |
+
<?php endif; ?>
|
174 |
+
</div>
|
175 |
+
</div>
|
176 |
+
<?php echo $this->getChildHtml('crosssell') ?>
|
177 |
+
</div>
|
app/design/frontend/rwd/default/template/checkout/cart/coupon.phtml
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<form id="discount-coupon-form" action="<?php echo $this->getFormActionUrl() ?>" method="post">
|
28 |
+
<div class="discount">
|
29 |
+
<h2><?php echo $this->__('Discount Codes') ?></h2>
|
30 |
+
<div class="discount-form">
|
31 |
+
<label for="coupon_code"><?php echo $this->__('Discount Codes') ?></label>
|
32 |
+
<input type="hidden" name="remove" id="remove-coupone" value="0" />
|
33 |
+
<div class="field-wrapper">
|
34 |
+
<input class="input-text" type="text" id="coupon_code" name="coupon_code" value="<?php echo $this->escapeHtml($this->getCouponCode()) ?>" />
|
35 |
+
<div class="button-wrapper">
|
36 |
+
<button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Apply')) ?>" class="button2" onclick="discountForm.submit(false)" value="<?php echo $this->__('Apply') ?>"><span><span><?php echo $this->__('Apply') ?></span></span></button>
|
37 |
+
<?php if(strlen($this->getCouponCode())): ?>
|
38 |
+
<button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Cancel')) ?>" class="button2 cancel-coupon" onclick="discountForm.submit(true)" value="<?php echo $this->__('Cancel') ?>"><span><span><?php echo $this->__('Cancel') ?></span></span>
|
39 |
+
</button>
|
40 |
+
<?php endif;?>
|
41 |
+
</div>
|
42 |
+
</div>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
</form>
|
46 |
+
<script type="text/javascript">
|
47 |
+
//<![CDATA[
|
48 |
+
var discountForm = new VarienForm('discount-coupon-form');
|
49 |
+
discountForm.submit = function (isRemove) {
|
50 |
+
if (isRemove) {
|
51 |
+
$('coupon_code').removeClassName('required-entry');
|
52 |
+
$('remove-coupone').value = "1";
|
53 |
+
} else {
|
54 |
+
$('coupon_code').addClassName('required-entry');
|
55 |
+
$('remove-coupone').value = "0";
|
56 |
+
}
|
57 |
+
return VarienForm.prototype.submit.bind(discountForm)();
|
58 |
+
}
|
59 |
+
//]]>
|
60 |
+
</script>
|
app/design/frontend/rwd/default/template/checkout/cart/crosssell.phtml
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Cart cross sell items template
|
30 |
+
*
|
31 |
+
* @see Mage_Checkout_Block_Cart_Crosssell
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php if($this->getItemCount()): ?>
|
35 |
+
<div class="crosssell">
|
36 |
+
<h2><?php echo $this->__('Based on your selection, you may be interested in the following items:') ?></h2>
|
37 |
+
<ul id="crosssell-products-list" class="products-grid products-grid--max-3-col">
|
38 |
+
<?php foreach ($this->getItems() as $_item): ?>
|
39 |
+
<li class="item">
|
40 |
+
<div class="product-info">
|
41 |
+
<a class="product-image" href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->escapeHtml($_item->getName()) ?>">
|
42 |
+
<img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(210); ?>" alt="<?php echo $this->escapeHtml($_item->getName()) ?>" />
|
43 |
+
</a>
|
44 |
+
<h3 class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->escapeHtml($_item->getName()) ?></a></h3>
|
45 |
+
<?php echo $this->getPriceHtml($_item, true) ?>
|
46 |
+
<div class="actions">
|
47 |
+
<button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Add to Cart')) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_item) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
48 |
+
<ul class="add-to-links">
|
49 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
50 |
+
<li><a href="<?php echo $this->getAddToWishlistUrl($_item) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
51 |
+
<?php endif; ?>
|
52 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_item)): ?>
|
53 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
54 |
+
<?php endif; ?>
|
55 |
+
</ul>
|
56 |
+
</div>
|
57 |
+
</div>
|
58 |
+
</li>
|
59 |
+
<?php endforeach; ?>
|
60 |
+
</ul>
|
61 |
+
<?php // <script type="text/javascript">decorateList('crosssell-products-list', 'none-recursive')</script> ?>
|
62 |
+
</div>
|
63 |
+
<?php endif; ?>
|
app/design/frontend/rwd/default/template/checkout/cart/item/configure/updatecart.phtml
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
|
28 |
+
<?php $_product = $this->getProduct(); ?>
|
29 |
+
<?php $buttonTitle = $this->__('Update Cart'); ?>
|
30 |
+
<?php if ($_product->isSaleable()): ?>
|
31 |
+
<div class="add-to-cart">
|
32 |
+
<?php if (!$_product->isGrouped()): ?>
|
33 |
+
<div class="qty-wrapper">
|
34 |
+
<label for="qty"><?php echo $this->__('Qty:') ?></label>
|
35 |
+
<input type="text" pattern="\d*" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Qty')) ?>" class="input-text qty" />
|
36 |
+
</div>
|
37 |
+
<?php endif; ?>
|
38 |
+
<div class="add-to-cart-buttons">
|
39 |
+
<button type="button" title="<?php echo Mage::helper('core')->quoteEscape($buttonTitle) ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
|
40 |
+
<?php echo $this->getChildHtml('', true, true) ?>
|
41 |
+
</div>
|
42 |
+
</div>
|
43 |
+
<?php endif; ?>
|
app/design/frontend/rwd/default/template/checkout/cart/item/default.phtml
ADDED
@@ -0,0 +1,332 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
$_item = $this->getItem();
|
29 |
+
$isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
|
30 |
+
$canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
|
31 |
+
?>
|
32 |
+
<tr>
|
33 |
+
<td class="product-cart-image">
|
34 |
+
<?php if ($this->hasProductUrl()):?>
|
35 |
+
<a href="<?php echo $this->getProductUrl() ?>" title="<?php echo $this->escapeHtml($this->getProductName()) ?>" class="product-image">
|
36 |
+
<?php endif;?>
|
37 |
+
<img src="<?php echo $this->getProductThumbnail()->resize(180); ?>" alt="<?php echo $this->escapeHtml($this->getProductName()) ?>" />
|
38 |
+
<?php if ($this->hasProductUrl()):?>
|
39 |
+
</a>
|
40 |
+
<?php endif;?>
|
41 |
+
|
42 |
+
<ul class="cart-links">
|
43 |
+
<?php if ($isVisibleProduct): ?>
|
44 |
+
<li>
|
45 |
+
<a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Edit item parameters')) ?>"><?php echo $this->__('Edit') ?></a>
|
46 |
+
</li>
|
47 |
+
<?php endif ?>
|
48 |
+
|
49 |
+
<?php if ($this->helper('wishlist')->isAllowInCart() && $isVisibleProduct) : ?>
|
50 |
+
<li>
|
51 |
+
<a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist use-ajax"><?php echo $this->__('Move to wishlist'); ?></a>
|
52 |
+
</li>
|
53 |
+
<?php endif ?>
|
54 |
+
</ul>
|
55 |
+
</td>
|
56 |
+
|
57 |
+
<td class="product-cart-info">
|
58 |
+
|
59 |
+
<a href="<?php echo $this->getDeleteUrl() ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Remove Item')) ?>" class="btn-remove btn-remove2"><?php echo $this->__('Remove Item') ?></a>
|
60 |
+
|
61 |
+
<h2 class="product-name">
|
62 |
+
<?php if ($this->hasProductUrl()):?>
|
63 |
+
<a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->escapeHtml($this->getProductName()) ?></a>
|
64 |
+
<?php else: ?>
|
65 |
+
<?php echo $this->escapeHtml($this->getProductName()) ?>
|
66 |
+
<?php endif; ?>
|
67 |
+
</h2>
|
68 |
+
|
69 |
+
<div class="product-cart-sku">
|
70 |
+
<span class="label"><?php echo $this->__('SKU'); ?>:</span> <?php echo $this->escapeHtml($_item->getSku()); ?>
|
71 |
+
</div>
|
72 |
+
|
73 |
+
<?php if ($_options = $this->getOptionList()):?>
|
74 |
+
<dl class="item-options">
|
75 |
+
<?php foreach ($_options as $_option) : ?>
|
76 |
+
<?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
|
77 |
+
<dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
|
78 |
+
<dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
|
79 |
+
<?php if (isset($_formatedOptionValue['full_view'])): ?>
|
80 |
+
<div class="truncated_full_value">
|
81 |
+
<dl class="item-options">
|
82 |
+
<dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
|
83 |
+
<dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
|
84 |
+
</dl>
|
85 |
+
</div>
|
86 |
+
<?php endif; ?>
|
87 |
+
</dd>
|
88 |
+
<?php endforeach; ?>
|
89 |
+
</dl>
|
90 |
+
<?php endif;?>
|
91 |
+
|
92 |
+
<?php if ($messages = $this->getMessages()): ?>
|
93 |
+
<?php foreach ($messages as $message): ?>
|
94 |
+
<p class="item-msg <?php echo $message['type'] ?>">
|
95 |
+
* <?php echo $this->escapeHtml($message['text']) ?>
|
96 |
+
</p>
|
97 |
+
<?php endforeach; ?>
|
98 |
+
<?php endif; ?>
|
99 |
+
|
100 |
+
<?php $addInfoBlock = $this->getProductAdditionalInformationBlock(); ?>
|
101 |
+
<?php if ($addInfoBlock): ?>
|
102 |
+
<?php echo $addInfoBlock->setItem($_item)->toHtml() ?>
|
103 |
+
<?php endif;?>
|
104 |
+
|
105 |
+
</td>
|
106 |
+
|
107 |
+
<?php if ($canApplyMsrp): ?>
|
108 |
+
<td class="a-center product-cart-price"<?php if ($this->helper('tax')->displayCartBothPrices()): ?> colspan="2"<?php endif; ?>>
|
109 |
+
<span class="cart-price">
|
110 |
+
<span class="cart-msrp-unit"><?php echo $this->__('See price before order confirmation.'); ?></span>
|
111 |
+
<?php $helpLinkId = 'cart-msrp-help-' . $_item->getId(); ?>
|
112 |
+
<a id="<?php echo $helpLinkId ?>" href="#" class="map-help-link"><?php echo $this->__("What's this?"); ?></a>
|
113 |
+
|
114 |
+
<script type="text/javascript">
|
115 |
+
Catalog.Map.addHelpLink($('<?php echo $helpLinkId ?>'), "<?php echo $this->__("What's this?") ?>");
|
116 |
+
</script>
|
117 |
+
|
118 |
+
</span>
|
119 |
+
</td>
|
120 |
+
<?php else: ?>
|
121 |
+
|
122 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
123 |
+
<td class="product-cart-price" data-rwd-label="<?php echo $this->__('Price'); ?>" data-rwd-tax-label="<?php echo $this->__('Excl. Tax'); ?>">
|
124 |
+
|
125 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
126 |
+
<span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
127 |
+
<?php else: ?>
|
128 |
+
<span class="cart-price">
|
129 |
+
<?php endif; ?>
|
130 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
131 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
|
132 |
+
<?php else: ?>
|
133 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
134 |
+
<?php endif; ?>
|
135 |
+
|
136 |
+
</span>
|
137 |
+
|
138 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
139 |
+
|
140 |
+
<div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
141 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
142 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
143 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
|
144 |
+
<?php endforeach; ?>
|
145 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
146 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
147 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
|
148 |
+
<?php endforeach; ?>
|
149 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
150 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
151 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
|
152 |
+
<?php endforeach; ?>
|
153 |
+
<?php endif; ?>
|
154 |
+
</div>
|
155 |
+
|
156 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
157 |
+
<div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
158 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
|
159 |
+
</div>
|
160 |
+
<?php endif; ?>
|
161 |
+
<?php endif; ?>
|
162 |
+
</td>
|
163 |
+
<?php endif; ?><!-- inclusive price starts here -->
|
164 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
165 |
+
<td class="product-cart-price" data-rwd-label="<?php echo $this->__('Price'); ?>" data-rwd-tax-label="<?php echo $this->__('Incl. Tax'); ?>">
|
166 |
+
<?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
|
167 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
168 |
+
<span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
169 |
+
<?php else: ?>
|
170 |
+
<span class="cart-price">
|
171 |
+
<?php endif; ?>
|
172 |
+
|
173 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
174 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
|
175 |
+
<?php else: ?>
|
176 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
|
177 |
+
<?php endif; ?>
|
178 |
+
|
179 |
+
</span>
|
180 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
181 |
+
|
182 |
+
<div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
183 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
184 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
185 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
|
186 |
+
<?php endforeach; ?>
|
187 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
188 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
189 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
|
190 |
+
<?php endforeach; ?>
|
191 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
192 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
193 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
|
194 |
+
<?php endforeach; ?>
|
195 |
+
<?php endif; ?>
|
196 |
+
</div>
|
197 |
+
|
198 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
199 |
+
<div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
200 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
|
201 |
+
</div>
|
202 |
+
<?php endif; ?>
|
203 |
+
<?php endif; ?>
|
204 |
+
</td>
|
205 |
+
<?php endif; ?>
|
206 |
+
<?php endif; ?>
|
207 |
+
<td class="product-cart-actions" data-rwd-label="<?php echo $this->__('Qty'); ?>">
|
208 |
+
<input type="text" pattern="\d*" name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4"
|
209 |
+
data-cart-item-id="<?php echo $this->jsQuoteEscape($_item->getSku()) ?>"
|
210 |
+
title="<?php echo Mage::helper('core')->quoteEscape($this->__('Qty')) ?>" class="input-text qty" maxlength="12" />
|
211 |
+
|
212 |
+
<button type="submit" name="update_cart_action" data-cart-item-update value="update_qty" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Update')); ?>" class="button btn-update"><span><span><?php echo $this->__('Update'); ?></span></span>
|
213 |
+
</button>
|
214 |
+
|
215 |
+
<ul class="cart-links">
|
216 |
+
<?php if ($isVisibleProduct): ?>
|
217 |
+
<li>
|
218 |
+
<a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Edit item parameters')) ?>"><?php echo $this->__('Edit') ?></a>
|
219 |
+
</li>
|
220 |
+
<?php endif ?>
|
221 |
+
|
222 |
+
<?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
|
223 |
+
<li>
|
224 |
+
<?php if ($isVisibleProduct): ?>
|
225 |
+
<a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist use-ajax"><?php echo $this->__('Move to wishlist'); ?></a>
|
226 |
+
<?php endif ?>
|
227 |
+
</li>
|
228 |
+
<?php endif ?>
|
229 |
+
</ul>
|
230 |
+
|
231 |
+
</td>
|
232 |
+
|
233 |
+
<!--Sub total starts here -->
|
234 |
+
<?php if (($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
|
235 |
+
<td class="product-cart-total" data-rwd-label="<?php echo $this->__('Subtotal'); ?>">
|
236 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
237 |
+
<span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
238 |
+
<?php else: ?>
|
239 |
+
<span class="cart-price">
|
240 |
+
<?php endif; ?>
|
241 |
+
|
242 |
+
<?php if ($canApplyMsrp): ?>
|
243 |
+
<span class="cart-msrp-subtotal">--</span>
|
244 |
+
<?php else: ?>
|
245 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
246 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
|
247 |
+
<?php else: ?>
|
248 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
|
249 |
+
<?php endif; ?>
|
250 |
+
<?php endif; ?>
|
251 |
+
|
252 |
+
</span>
|
253 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
254 |
+
|
255 |
+
<div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
256 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
257 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
258 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
|
259 |
+
<?php endforeach; ?>
|
260 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
261 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
262 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
|
263 |
+
<?php endforeach; ?>
|
264 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
265 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
266 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
|
267 |
+
<?php endforeach; ?>
|
268 |
+
<?php endif; ?>
|
269 |
+
</div>
|
270 |
+
|
271 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
272 |
+
<div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
273 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
|
274 |
+
</div>
|
275 |
+
<?php endif; ?>
|
276 |
+
<?php endif; ?>
|
277 |
+
</td>
|
278 |
+
<?php endif; ?>
|
279 |
+
<?php if (($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
|
280 |
+
<td class="product-cart-total" data-rwd-label="<?php echo $this->__('Subtotal'); ?>">
|
281 |
+
<?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
|
282 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
283 |
+
<span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
284 |
+
<?php else: ?>
|
285 |
+
<span class="cart-price">
|
286 |
+
<?php endif; ?>
|
287 |
+
|
288 |
+
<?php if ($canApplyMsrp): ?>
|
289 |
+
<span class="cart-msrp-subtotal">--</span>
|
290 |
+
<?php else: ?>
|
291 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
292 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?>
|
293 |
+
<?php else: ?>
|
294 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
|
295 |
+
<?php endif; ?>
|
296 |
+
<?php endif; ?>
|
297 |
+
|
298 |
+
</span>
|
299 |
+
|
300 |
+
|
301 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
302 |
+
|
303 |
+
<div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
304 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
305 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
306 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
|
307 |
+
<?php endforeach; ?>
|
308 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
309 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
310 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
|
311 |
+
<?php endforeach; ?>
|
312 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
313 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
314 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
|
315 |
+
<?php endforeach; ?>
|
316 |
+
<?php endif; ?>
|
317 |
+
</div>
|
318 |
+
|
319 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
320 |
+
<div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
321 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
|
322 |
+
</div>
|
323 |
+
<?php endif; ?>
|
324 |
+
<?php endif; ?>
|
325 |
+
</td>
|
326 |
+
<?php endif; ?>
|
327 |
+
<td class="a-center product-cart-remove">
|
328 |
+
<a href="<?php echo $this->getDeleteUrl() ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Remove Item')) ?>" class="btn-remove btn-remove2"><?php echo $this->__('Remove Item') ?></a>
|
329 |
+
</td>
|
330 |
+
</tr>
|
331 |
+
|
332 |
+
|
app/design/frontend/rwd/default/template/checkout/cart/minicart.phtml
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Shoping cart sidebar
|
29 |
+
*
|
30 |
+
* @see Mage_Checkout_Block_Cart_Sidebar
|
31 |
+
*/
|
32 |
+
|
33 |
+
?>
|
34 |
+
|
35 |
+
<?php
|
36 |
+
$_cartQty = $this->getSummaryCount();
|
37 |
+
if(empty($_cartQty)) {
|
38 |
+
$_cartQty = 0;
|
39 |
+
}
|
40 |
+
?>
|
41 |
+
|
42 |
+
<a href="<?php echo $this->helper('checkout/cart')->getCartUrl(); ?>" data-target-element="#header-cart" class="skip-link skip-cart <?php if($_cartQty <= 0): ?> no-count<?php endif; ?>">
|
43 |
+
<span class="icon"></span>
|
44 |
+
<span class="label"><?php echo $this->__('Cart'); ?></span>
|
45 |
+
<span class="count"><?php echo $_cartQty; ?></span>
|
46 |
+
</a>
|
47 |
+
|
48 |
+
<div id="header-cart" class="block block-cart skip-content">
|
49 |
+
<?php echo $this->getChildHtml('minicart_content');?>
|
50 |
+
</div>
|
app/design/frontend/rwd/default/template/checkout/cart/minicart/default.phtml
ADDED
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
$_item = $this->getItem();
|
29 |
+
$isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
|
30 |
+
$canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
|
31 |
+
?>
|
32 |
+
<li class="item" xmlns="http://www.w3.org/1999/html">
|
33 |
+
<?php if ($this->hasProductUrl()): ?>
|
34 |
+
<a href="<?php echo $this->getProductUrl()?>" title="<?php echo $this->escapeHtml($this->getProductName()) ?>" class="product-image"><img src="<?php echo $this->getProductThumbnail()->resize(50, 50)->setWatermarkSize('30x10'); ?>" width="50" height="50" alt="<?php echo $this->escapeHtml($this->getProductName()) ?>" /></a>
|
35 |
+
<?php else: ?>
|
36 |
+
<span class="product-image"><img src="<?php echo $this->getProductThumbnail()->resize(50, 50)->setWatermarkSize('30x10'); ?>" width="50" height="50" alt="<?php echo $this->escapeHtml($this->getProductName()) ?>" /></span>
|
37 |
+
<?php endif; ?>
|
38 |
+
<div class="product-details">
|
39 |
+
<p class="product-name"><?php if ($this->hasProductUrl()): ?><a href="<?php echo $this->getProductUrl() ?>"><?php endif; ?><?php echo $this->escapeHtml($this->getProductName()) ?><?php if ($this->hasProductUrl()): ?></a><?php endif; ?></p>
|
40 |
+
|
41 |
+
<table class="info-wrapper">
|
42 |
+
<tbody>
|
43 |
+
<tr>
|
44 |
+
<th><?php echo $this->__('Price'); ?></th>
|
45 |
+
<td>
|
46 |
+
<?php if ($canApplyMsrp): ?>
|
47 |
+
|
48 |
+
<span class="map-cart-sidebar-item"><?php echo $this->__('See price before order confirmation.'); ?></span>
|
49 |
+
|
50 |
+
<?php else: ?>
|
51 |
+
|
52 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
53 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
54 |
+
<?php echo $this->__('Excl. Tax'); ?>:
|
55 |
+
<?php endif; ?>
|
56 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales')): ?>
|
57 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
|
58 |
+
<?php else: ?>
|
59 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
60 |
+
<?php endif; ?>
|
61 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
62 |
+
<br />
|
63 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales')): ?>
|
64 |
+
<small>
|
65 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
66 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
|
67 |
+
<?php endforeach; ?>
|
68 |
+
</small>
|
69 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
70 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
71 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
72 |
+
<?php endforeach; ?>
|
73 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales')): ?>
|
74 |
+
<small>
|
75 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
76 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
77 |
+
<?php endforeach; ?>
|
78 |
+
</small>
|
79 |
+
<?php endif; ?>
|
80 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
81 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
|
82 |
+
<?php endif; ?>
|
83 |
+
<?php endif; ?>
|
84 |
+
<?php endif; ?>
|
85 |
+
|
86 |
+
|
87 |
+
|
88 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
89 |
+
<?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
|
90 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
91 |
+
<br /><?php echo $this->__('Incl. Tax'); ?>:
|
92 |
+
<?php endif; ?>
|
93 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales')): ?>
|
94 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
|
95 |
+
<?php else: ?>
|
96 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
|
97 |
+
<?php endif; ?>
|
98 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
99 |
+
<br />
|
100 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales')): ?>
|
101 |
+
<small>
|
102 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
103 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
104 |
+
<?php endforeach; ?>
|
105 |
+
</small>
|
106 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
107 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
108 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span>
|
109 |
+
<?php endforeach; ?>
|
110 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales')): ?>
|
111 |
+
<small>
|
112 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
113 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
114 |
+
<?php endforeach; ?>
|
115 |
+
</small>
|
116 |
+
<?php endif; ?>
|
117 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
118 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
|
119 |
+
<?php endif; ?>
|
120 |
+
<?php endif; ?>
|
121 |
+
<?php endif; ?>
|
122 |
+
|
123 |
+
<?php endif; //Can apply MSRP ?>
|
124 |
+
</td>
|
125 |
+
</tr>
|
126 |
+
<tr class="qty-wrapper">
|
127 |
+
<th><?php echo $this->__('Qty'); ?></th>
|
128 |
+
<td>
|
129 |
+
<input
|
130 |
+
id="qinput-<?php echo $_item->getId(); ?>"
|
131 |
+
data-link="<?php echo $this->getAjaxUpdateUrl() ?>"
|
132 |
+
data-item-id="<?php echo $_item->getId(); ?>"
|
133 |
+
data-cart-item-id="<?php echo $_item->getSku(); ?>"
|
134 |
+
class="qty cart-item-quantity input-text" name=""
|
135 |
+
value="<?php echo $this->getQty()?>"
|
136 |
+
<?php if ($this->isOnCheckoutPage()) echo 'disabled'; ?>
|
137 |
+
/>
|
138 |
+
|
139 |
+
<button id="qbutton-<?php echo $_item->getId(); ?>"
|
140 |
+
data-item-id="<?php echo $_item->getId(); ?>"
|
141 |
+
disabled="disabled"
|
142 |
+
data-update
|
143 |
+
data-cart-item-update
|
144 |
+
class="button quantity-button">
|
145 |
+
<?php echo $this->__('ok'); ?>
|
146 |
+
</button>
|
147 |
+
</td>
|
148 |
+
</tr>
|
149 |
+
</tbody>
|
150 |
+
</table>
|
151 |
+
|
152 |
+
<?php if ($isVisibleProduct): ?>
|
153 |
+
<a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Edit item')) ?>" class="btn-edit">
|
154 |
+
<?php echo $this->__('Edit item')?>
|
155 |
+
</a>
|
156 |
+
|
|
157 |
+
<?php if (!$this->isOnCheckoutPage()): ?>
|
158 |
+
<a href="<?php echo $this->getAjaxDeleteUrl() ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Remove This Item')) ?>"
|
159 |
+
data-confirm="<?php echo $this->__('Are you sure you would like to remove this item from the shopping cart?') ?>"
|
160 |
+
class="remove">
|
161 |
+
<?php echo $this->__('Remove Item') ?>
|
162 |
+
</a>
|
163 |
+
<?php else: ?>
|
164 |
+
<span><?php echo $this->__('Remove Item') ?></span>
|
165 |
+
<?php endif; ?>
|
166 |
+
<?php endif ?>
|
167 |
+
|
168 |
+
|
169 |
+
|
170 |
+
<?php if ($_options = $this->getOptionList()):?>
|
171 |
+
<div class="truncated">
|
172 |
+
<div class="truncated_full_value">
|
173 |
+
<dl class="item-options">
|
174 |
+
<?php foreach ($_options as $_option) : ?>
|
175 |
+
<dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
|
176 |
+
<dd>
|
177 |
+
<?php if (is_array($_option['value'])): ?>
|
178 |
+
<?php echo nl2br(implode("\n", $_option['value'])) ?>
|
179 |
+
<?php else: ?>
|
180 |
+
<?php echo $_option['value'] ?>
|
181 |
+
<?php endif; ?>
|
182 |
+
</dd>
|
183 |
+
<?php endforeach; ?>
|
184 |
+
</dl>
|
185 |
+
</div>
|
186 |
+
<a href="#" onclick="return false;" class="details"><?php echo $this->__('Details') ?></a>
|
187 |
+
</div>
|
188 |
+
<?php endif; ?>
|
189 |
+
|
190 |
+
</div>
|
191 |
+
</li>
|
app/design/frontend/rwd/default/template/checkout/cart/minicart/items.phtml
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Shoping cart sidebar
|
29 |
+
*
|
30 |
+
* @var Mage_Checkout_Block_Cart_Minicart $this
|
31 |
+
*/
|
32 |
+
?>
|
33 |
+
|
34 |
+
<?php
|
35 |
+
$_cartQty = $this->getSummaryCount();
|
36 |
+
if(empty($_cartQty)) {
|
37 |
+
$_cartQty = 0;
|
38 |
+
}
|
39 |
+
?>
|
40 |
+
<div id="minicart-error-message" class="minicart-message"></div>
|
41 |
+
<div id="minicart-success-message" class="minicart-message"></div>
|
42 |
+
|
43 |
+
<div class="minicart-wrapper">
|
44 |
+
|
45 |
+
<p class="block-subtitle">
|
46 |
+
<?php echo $this->__('Recently added item(s)') ?>
|
47 |
+
<a class="close skip-link-close" href="#" title="<?php echo $this->quoteEscape($this->__('Close')); ?>">×</a>
|
48 |
+
</p>
|
49 |
+
|
50 |
+
<?php $_items = $this->getRecentItems() ?>
|
51 |
+
<?php $countItems = count($_items); ?>
|
52 |
+
<?php if($countItems): ?>
|
53 |
+
<div>
|
54 |
+
<ul id="cart-sidebar" class="mini-products-list">
|
55 |
+
<?php foreach($_items as $_item): ?>
|
56 |
+
<?php echo $this->getItemHtml($_item) ?>
|
57 |
+
<?php endforeach; ?>
|
58 |
+
</ul>
|
59 |
+
</div>
|
60 |
+
<script type="text/javascript">
|
61 |
+
truncateOptions();
|
62 |
+
decorateList('cart-sidebar', 'none-recursive');
|
63 |
+
$j('document').ready(function() {
|
64 |
+
var minicartOptions = {
|
65 |
+
formKey: "<?php echo $this->getFormKey();?>"
|
66 |
+
}
|
67 |
+
var Mini = new Minicart(minicartOptions);
|
68 |
+
Mini.init();
|
69 |
+
});
|
70 |
+
</script>
|
71 |
+
|
72 |
+
<div id="minicart-widgets">
|
73 |
+
<?php echo $this->getChildHtml('cart_promotion') ?>
|
74 |
+
</div>
|
75 |
+
<div class="block-content">
|
76 |
+
<p class="subtotal">
|
77 |
+
<?php if ($this->canApplyMsrp()): ?>
|
78 |
+
<span class="map-cart-sidebar-total"><?php echo $this->__('ORDER TOTAL WILL BE DISPLAYED BEFORE YOU SUBMIT THE ORDER'); ?></span>
|
79 |
+
<?php else: ?>
|
80 |
+
<span class="label"><?php echo $this->__('Cart Subtotal:') ?></span> <?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?>
|
81 |
+
<?php if ($_subtotalInclTax = $this->getSubtotalInclTax()): ?>
|
82 |
+
<br />(<?php echo Mage::helper('checkout')->formatPrice($_subtotalInclTax) ?> <?php echo Mage::helper('tax')->getIncExcText(true) ?>)
|
83 |
+
<?php endif; ?>
|
84 |
+
<?php endif; ?>
|
85 |
+
</p>
|
86 |
+
</div>
|
87 |
+
|
88 |
+
|
89 |
+
<div class="minicart-actions">
|
90 |
+
<?php if($_cartQty && $this->isPossibleOnepageCheckout()): ?>
|
91 |
+
<ul class="checkout-types minicart">
|
92 |
+
<?php echo $this->getChildHtml('extra_actions') ?>
|
93 |
+
<li>
|
94 |
+
<a title="<?php echo $this->quoteEscape($this->__('Checkout')) ?>" class="button checkout-button" href="<?php echo $this->getCheckoutUrl() ?>">
|
95 |
+
<?php echo $this->__('Checkout') ?>
|
96 |
+
</a>
|
97 |
+
</li>
|
98 |
+
</ul>
|
99 |
+
<?php endif ?>
|
100 |
+
<a class="cart-link" href="<?php echo $this->getUrl('checkout/cart'); ?>">
|
101 |
+
<?php echo $this->__('View Shopping Cart'); ?>
|
102 |
+
</a>
|
103 |
+
</div>
|
104 |
+
|
105 |
+
<?php else: ?>
|
106 |
+
<p class="empty"><?php echo $this->__('You have no items in your shopping cart.') ?></p>
|
107 |
+
|
108 |
+
<?php endif ?>
|
109 |
+
</div>
|
app/design/frontend/rwd/default/template/checkout/cart/render/default.phtml
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* @deprecated after 1.4.0.0-alpha3
|
29 |
+
*/
|
30 |
+
?>
|
31 |
+
<?php $_item = $this->getItem() ?>
|
32 |
+
<tr>
|
33 |
+
<td class="a-center"><a href="<?php echo $this->getItemDeleteUrl($_item) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Remove Item')) ?>" class="btn-remove2"><?php echo $this->__('Remove Item')?></a></td>
|
34 |
+
<td><a href="<?php echo $this->getItemUrl($_item) ?>" title="<?php echo $this->escapeHtml($this->getItemName($_item)) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($this->getItemProductForThumbnail($_item), 'thumbnail')->resize(75); ?>" width="75" alt="<?php echo $this->escapeHtml($this->getItemName($_item)) ?>" /></a></td>
|
35 |
+
<td>
|
36 |
+
<h3 class="product-name"><a href="<?php echo $this->getItemUrl($_item) ?>"><?php echo $this->getItemName($_item) ?></a></h3>
|
37 |
+
<?php echo $this->getItemDescription($_item) ?>
|
38 |
+
<?php if($_item->getMessage()): ?>
|
39 |
+
<p class="item-msg <?php if($_item->getHasError()): ?>error<?php else: ?>notice<?php endif; ?>">* <?php echo $_item->getMessage() ?></p>
|
40 |
+
<?php endif; ?>
|
41 |
+
</td>
|
42 |
+
<?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
|
43 |
+
<td class="a-center">
|
44 |
+
<a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist"><?php echo $this->__('Move'); ?></a>
|
45 |
+
</td>
|
46 |
+
<?php endif ?>
|
47 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
48 |
+
<td class="a-right">
|
49 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
50 |
+
</td>
|
51 |
+
<?php endif; ?>
|
52 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
53 |
+
<td class="a-right">
|
54 |
+
<?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getPriceInclTax($_item)); ?>
|
55 |
+
</td>
|
56 |
+
<?php endif; ?>
|
57 |
+
<td class="a-center">
|
58 |
+
<input type="text" pattern="\d*" name="cart[<?php echo $_item->getId() ?>][qty]"
|
59 |
+
data-cart-item-id="<?php echo $this->jsQuoteEscape($_item->getSku()) ?>"
|
60 |
+
value="<?php echo $this->getItemQty($_item) ?>" size="4" class="input-text qty" maxlength="12" />
|
61 |
+
</td>
|
62 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
63 |
+
<td class="a-right">
|
64 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
|
65 |
+
</td>
|
66 |
+
<?php endif; ?>
|
67 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
68 |
+
<td class="a-right">
|
69 |
+
<?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)); ?>
|
70 |
+
</td>
|
71 |
+
<?php endif; ?>
|
72 |
+
</tr>
|
app/design/frontend/rwd/default/template/checkout/cart/render/simple.phtml
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* @deprecated after 1.4.0.0-alpha3
|
29 |
+
*/
|
30 |
+
?>
|
31 |
+
<?php $_item = $this->getItem() ?>
|
32 |
+
<tr>
|
33 |
+
<td class="a-center"><a href="<?php echo $this->getItemDeleteUrl($_item) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Remove Item')) ?>" class="btn-remove2"><?php echo $this->__('Remove Item')?></a></td>
|
34 |
+
<td><a href="<?php echo $this->getItemUrl($_item) ?>" title="<?php echo $this->escapeHtml($this->getItemName($_item)) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($this->getItemProductForThumbnail($_item), 'thumbnail')->resize(75); ?>" width="75" height="75" alt="<?php echo $this->escapeHtml($this->getItemName($_item)) ?>" /></a></td>
|
35 |
+
<td>
|
36 |
+
<h3 class="product-name"><a href="<?php echo $this->getItemUrl($_item) ?>"><?php echo $this->getItemName($_item) ?></a></h3>
|
37 |
+
<?php echo $this->getItemDescription($_item) ?>
|
38 |
+
<?php if($_item->getMessage()): ?>
|
39 |
+
<p class="item-msg <?php if($_item->getHasError()): ?>error<?php else: ?>notice<?php endif; ?>">* <?php echo $_item->getMessage() ?></p>
|
40 |
+
<?php endif; ?>
|
41 |
+
</td>
|
42 |
+
<?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
|
43 |
+
<td class="a-center">
|
44 |
+
<a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist"><?php echo $this->__('Move'); ?></a>
|
45 |
+
</td>
|
46 |
+
<?php endif ?>
|
47 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
48 |
+
<td class="a-right">
|
49 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
50 |
+
</td>
|
51 |
+
<?php endif; ?>
|
52 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
53 |
+
<td class="a-right">
|
54 |
+
<?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getPriceInclTax($_item)); ?>
|
55 |
+
</td>
|
56 |
+
<?php endif; ?>
|
57 |
+
<td class="a-center">
|
58 |
+
<input type="text" pattern="\d*" name="cart[<?php echo $_item->getId() ?>][qty]"
|
59 |
+
data-cart-item-id="<?php echo $this->jsQuoteEscape($_item->getSku()) ?>"
|
60 |
+
value="<?php echo $this->getItemQty($_item) ?>" size="4" class="input-text qty" maxlength="12" />
|
61 |
+
</td>
|
62 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
63 |
+
<td class="a-right">
|
64 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
|
65 |
+
</td>
|
66 |
+
<?php endif; ?>
|
67 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
68 |
+
<td class="a-right">
|
69 |
+
<?php echo $this->helper('checkout')->formatPrice($this->helper('checkout')->getSubtotalInclTax($_item)); ?>
|
70 |
+
</td>
|
71 |
+
<?php endif; ?>
|
72 |
+
</tr>
|
app/design/frontend/rwd/default/template/checkout/cart/shipping.phtml
ADDED
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php /** @var $this Mage_Checkout_Block_Cart_Shipping */ ?>
|
28 |
+
<div class="shipping">
|
29 |
+
<h2><?php echo $this->__('Estimate Shipping and Tax') ?></h2>
|
30 |
+
<div class="shipping-form">
|
31 |
+
<form action="<?php echo $this->getFormActionUrl() ?>" method="post" id="shipping-zip-form">
|
32 |
+
<p class="shipping-desc"><?php echo $this->__('Enter your destination to get a shipping estimate.') ?></p>
|
33 |
+
<ul class="form-list">
|
34 |
+
<li class="shipping-country">
|
35 |
+
<label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
36 |
+
<div class="input-box">
|
37 |
+
<?php echo Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect($this->getEstimateCountryId()) ?>
|
38 |
+
</div>
|
39 |
+
</li>
|
40 |
+
<?php // if($this->getStateActive()): ?>
|
41 |
+
<li class="shipping-region">
|
42 |
+
<?php /* Removing the conditional check for whether the region is required, because it doesn't work
|
43 |
+
<label for="region_id"<?php if ($this->isStateProvinceRequired()) echo ' class="required"' ?>><?php if ($this->isStateProvinceRequired()) echo '<em>*</em>' ?><?php echo $this->__('State/Province') ?></label>
|
44 |
+
*/ ?>
|
45 |
+
<label for="region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
46 |
+
<div class="input-box">
|
47 |
+
<select id="region_id" name="region_id" title="<?php echo $this->quoteEscape($this->__('State/Province')) ?>" style="display:none;"<?php echo ($this->isStateProvinceRequired() ? ' class="validate-select"' : '') ?>>
|
48 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
49 |
+
</select>
|
50 |
+
<script type="text/javascript">
|
51 |
+
//<![CDATA[
|
52 |
+
$('region_id').setAttribute('defaultValue', "<?php echo $this->getEstimateRegionId() ?>");
|
53 |
+
//]]>
|
54 |
+
</script>
|
55 |
+
<input type="text" id="region" name="region" value="<?php echo $this->escapeHtml($this->getEstimateRegion()) ?>" title="<?php echo $this->quoteEscape($this->__('State/Province')) ?>" class="input-text" style="display:none;" />
|
56 |
+
</div>
|
57 |
+
</li>
|
58 |
+
<?php // endif; ?>
|
59 |
+
<?php if($this->getCityActive()): ?>
|
60 |
+
<li class="shipping-region">
|
61 |
+
<label for="city"<?php if ($this->isCityRequired()) echo ' class="required"' ?>><?php if ($this->isCityRequired()) echo '<em>*</em>' ?><?php echo $this->__('City') ?></label>
|
62 |
+
<div class="input-box">
|
63 |
+
<input class="input-text<?php if ($this->isCityRequired()):?> required-entry<?php endif;?>" id="city" type="text" name="estimate_city" value="<?php echo $this->escapeHtml($this->getEstimateCity()) ?>" />
|
64 |
+
</div>
|
65 |
+
</li>
|
66 |
+
<?php endif; ?>
|
67 |
+
<li class="shipping-postcode">
|
68 |
+
<?php /* Removing the conditional check for whether the postal code is required, because it doesn't work
|
69 |
+
<label for="postcode"<?php if ($this->isZipCodeRequired()) echo ' class="required"' ?>><?php if ($this->isZipCodeRequired()) echo '<em>*</em>' ?><?php echo $this->__('Zip/Postal Code') ?></label>
|
70 |
+
*/ ?>
|
71 |
+
<label for="postcode" class="required"><em>*</em><?php echo $this->__('Zip') ?></label>
|
72 |
+
<div class="input-box">
|
73 |
+
<input class="input-text validate-postcode<?php if ($this->isZipCodeRequired()):?> required-entry<?php endif;?>" type="text" id="postcode" name="estimate_postcode" value="<?php echo $this->escapeHtml($this->getEstimatePostcode()) ?>" />
|
74 |
+
</div>
|
75 |
+
</li>
|
76 |
+
</ul>
|
77 |
+
<div class="buttons-set">
|
78 |
+
<button type="button" title="<?php echo $this->quoteEscape($this->__('Estimate')) ?>" onclick="coShippingMethodForm.submit()" class="button2">
|
79 |
+
<span><span><?php echo $this->__('Estimate') ?></span></span>
|
80 |
+
</button>
|
81 |
+
</div>
|
82 |
+
</form>
|
83 |
+
<script type="text/javascript">
|
84 |
+
//<![CDATA[
|
85 |
+
new RegionUpdater('country', 'region', 'region_id', Sydney<?php echo $this->helper('directory')->getRegionJson() ?>);
|
86 |
+
//]]>
|
87 |
+
</script>
|
88 |
+
|
89 |
+
<?php if (($_shippingRateGroups = $this->getEstimateRates())): ?>
|
90 |
+
<form id="co-shipping-method-form" action="<?php echo $this->getUpdateFormActionUrl() ?>">
|
91 |
+
<dl class="sp-methods">
|
92 |
+
<?php foreach ($_shippingRateGroups as $code => $_rates): ?>
|
93 |
+
<dt><?php echo $this->escapeHtml($this->getCarrierName($code)) ?></dt>
|
94 |
+
<dd>
|
95 |
+
<ul>
|
96 |
+
<?php foreach ($_rates as $_rate): ?>
|
97 |
+
<li<?php if ($_rate->getErrorMessage()) echo ' class="error-msg"';?>>
|
98 |
+
<?php if ($_rate->getErrorMessage()): ?>
|
99 |
+
<?php echo $this->escapeHtml($_rate->getErrorMessage()) ?>
|
100 |
+
<?php else: ?>
|
101 |
+
<input name="estimate_method" type="radio" value="<?php echo $this->escapeHtml($_rate->getCode()) ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio" />
|
102 |
+
<label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $this->escapeHtml($_rate->getMethodTitle()) ?>
|
103 |
+
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
104 |
+
-
|
105 |
+
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
106 |
+
<?php echo $_excl; ?>
|
107 |
+
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
108 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
109 |
+
<?php endif; ?>
|
110 |
+
</label>
|
111 |
+
<?php endif ?>
|
112 |
+
</li>
|
113 |
+
<?php endforeach; ?>
|
114 |
+
</ul>
|
115 |
+
</dd>
|
116 |
+
<?php endforeach; ?>
|
117 |
+
</dl>
|
118 |
+
<div class="buttons-set">
|
119 |
+
<button type="submit" title="<?php echo $this->quoteEscape($this->__('Update Total')) ?>" class="button" name="do" value="<?php echo $this->__('Update Total') ?>">
|
120 |
+
<span><span><?php echo $this->__('Update Total') ?></span></span>
|
121 |
+
</button>
|
122 |
+
</div>
|
123 |
+
</form>
|
124 |
+
<?php endif; ?>
|
125 |
+
<script type="text/javascript">
|
126 |
+
//<![CDATA[
|
127 |
+
var coShippingMethodForm = new VarienForm('shipping-zip-form');
|
128 |
+
var countriesWithOptionalZip = <?php echo $this->helper('directory')->getCountriesWithOptionalZip(true) ?>;
|
129 |
+
|
130 |
+
coShippingMethodForm.submit = function () {
|
131 |
+
var country = $F('country');
|
132 |
+
var optionalZip = false;
|
133 |
+
|
134 |
+
for (i=0; i < countriesWithOptionalZip.length; i++) {
|
135 |
+
if (countriesWithOptionalZip[i] == country) {
|
136 |
+
optionalZip = true;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
if (optionalZip) {
|
140 |
+
$('postcode').removeClassName('required-entry');
|
141 |
+
}
|
142 |
+
else {
|
143 |
+
$('postcode').addClassName('required-entry');
|
144 |
+
}
|
145 |
+
return VarienForm.prototype.submit.bind(coShippingMethodForm)();
|
146 |
+
}
|
147 |
+
//]]>
|
148 |
+
</script>
|
149 |
+
</div>
|
150 |
+
</div>
|
app/design/frontend/rwd/default/template/checkout/cart/sidebar.phtml
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Shoping cart sidebar
|
29 |
+
*
|
30 |
+
* @see Mage_Checkout_Block_Cart_Sidebar
|
31 |
+
*/
|
32 |
+
|
33 |
+
?>
|
34 |
+
<?php if ($this->getIsNeedToDisplaySideBar()):?>
|
35 |
+
<div class="block block-cart">
|
36 |
+
<?php $_cartQty = $this->getSummaryCount() ?>
|
37 |
+
<div class="block-title">
|
38 |
+
<strong><span><?php echo $this->__('My Cart') ?></span></strong>
|
39 |
+
</div>
|
40 |
+
<div class="block-content">
|
41 |
+
<?php if ($_cartQty>0): ?>
|
42 |
+
<div class="summary">
|
43 |
+
<?php if ($_cartQty==1): ?>
|
44 |
+
<p class="amount"><?php echo $this->__('There is <a href="%s">1 item</a> in your cart.', $this->getUrl('checkout/cart')) ?></p>
|
45 |
+
<?php else: ?>
|
46 |
+
<p class="amount"><?php echo $this->__('There are <a href="%s">%s items</a> in your cart.', $this->getUrl('checkout/cart'), $_cartQty) ?></p>
|
47 |
+
<?php endif ?>
|
48 |
+
<p class="subtotal">
|
49 |
+
<?php if ($this->canApplyMsrp()): ?>
|
50 |
+
<span class="map-cart-sidebar-total"><?php echo $this->__('ORDER TOTAL WILL BE DISPLAYED BEFORE YOU SUBMIT THE ORDER'); ?></span>
|
51 |
+
<?php else: ?>
|
52 |
+
<span class="label"><?php echo $this->__('Cart Subtotal:') ?></span> <?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?>
|
53 |
+
<?php if ($_subtotalInclTax = $this->getSubtotalInclTax()): ?>
|
54 |
+
<br />(<?php echo Mage::helper('checkout')->formatPrice($_subtotalInclTax) ?> <?php echo Mage::helper('tax')->getIncExcText(true) ?>)
|
55 |
+
<?php endif; ?>
|
56 |
+
<?php endif; ?>
|
57 |
+
</p>
|
58 |
+
</div>
|
59 |
+
<?php endif ?>
|
60 |
+
<?php $_items = $this->getRecentItems() ?>
|
61 |
+
<?php if(count($_items)): ?>
|
62 |
+
<p class="block-subtitle"><?php echo $this->__('Recently added item(s)') ?></p>
|
63 |
+
<ol id="cart-sidebar" class="mini-products-list">
|
64 |
+
<?php foreach($_items as $_item): ?>
|
65 |
+
<?php echo $this->getItemHtml($_item) ?>
|
66 |
+
<?php endforeach; ?>
|
67 |
+
</ol>
|
68 |
+
<script type="text/javascript">decorateList('cart-sidebar', 'none-recursive')</script>
|
69 |
+
<?php else: ?>
|
70 |
+
<p class="empty"><?php echo $this->__('You have no items in your shopping cart.') ?></p>
|
71 |
+
<?php endif ?>
|
72 |
+
<?php if($_cartQty && $this->isPossibleOnepageCheckout()): ?>
|
73 |
+
<div class="actions">
|
74 |
+
<?php echo $this->getChildHtml('extra_actions') ?>
|
75 |
+
<button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Checkout')) ?>" class="button" onclick="setLocation('<?php echo $this->getCheckoutUrl() ?>')"><span><span><?php echo $this->__('Checkout') ?></span></span></button>
|
76 |
+
</div>
|
77 |
+
<?php endif ?>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
<?php endif;?>
|
app/design/frontend/rwd/default/template/checkout/cart/sidebar/default.phtml
ADDED
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
$_item = $this->getItem();
|
29 |
+
$isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
|
30 |
+
$canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
|
31 |
+
?>
|
32 |
+
<li class="item">
|
33 |
+
<?php if ($this->hasProductUrl()): ?>
|
34 |
+
<a href="<?php echo $this->getProductUrl()?>" title="<?php echo $this->escapeHtml($this->getProductName()) ?>" class="product-image"><img src="<?php echo $this->getProductThumbnail()->resize(50, 50)->setWatermarkSize('30x10'); ?>" width="50" height="50" alt="<?php echo $this->escapeHtml($this->getProductName()) ?>" /></a>
|
35 |
+
<?php else: ?>
|
36 |
+
<span class="product-image"><img src="<?php echo $this->getProductThumbnail()->resize(50, 50)->setWatermarkSize('30x10'); ?>" width="50" height="50" alt="<?php echo $this->escapeHtml($this->getProductName()) ?>" /></span>
|
37 |
+
<?php endif; ?>
|
38 |
+
<div class="product-details">
|
39 |
+
<a href="<?php echo $this->getDeleteUrl() ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Remove This Item')) ?>" onclick="return confirm('<?php echo Mage::helper('core')->jsQuoteEscape($this->__('Are you sure you would like to remove this item from the shopping cart?')) ?>');" class="btn-remove"><?php echo $this->__('Remove This Item') ?></a>
|
40 |
+
<p class="product-name"><?php if ($this->hasProductUrl()): ?><a href="<?php echo $this->getProductUrl() ?>"><?php endif; ?><?php echo $this->escapeHtml($this->getProductName()) ?><?php if ($this->hasProductUrl()): ?></a><?php endif; ?></p>
|
41 |
+
<?php if ($isVisibleProduct): ?>
|
42 |
+
<a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Edit item')) ?>" class="btn-edit"><?php echo $this->__('Edit item')?></a>
|
43 |
+
<?php endif ?>
|
44 |
+
<strong><?php echo $this->getQty() ?></strong> x
|
45 |
+
|
46 |
+
<?php if ($canApplyMsrp): ?>
|
47 |
+
|
48 |
+
<span class="map-cart-sidebar-item"><?php echo $this->__('See price before order confirmation.'); ?></span>
|
49 |
+
|
50 |
+
<?php else: ?>
|
51 |
+
|
52 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
53 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
54 |
+
<?php echo $this->__('Excl. Tax'); ?>:
|
55 |
+
<?php endif; ?>
|
56 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales')): ?>
|
57 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
|
58 |
+
<?php else: ?>
|
59 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
60 |
+
<?php endif; ?>
|
61 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
62 |
+
<br />
|
63 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales')): ?>
|
64 |
+
<small>
|
65 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
66 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
67 |
+
<?php endforeach; ?>
|
68 |
+
</small>
|
69 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
70 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
71 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
72 |
+
<?php endforeach; ?>
|
73 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales')): ?>
|
74 |
+
<small>
|
75 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
76 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
77 |
+
<?php endforeach; ?>
|
78 |
+
</small>
|
79 |
+
<?php endif; ?>
|
80 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
81 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
|
82 |
+
<?php endif; ?>
|
83 |
+
<?php endif; ?>
|
84 |
+
<?php endif; ?>
|
85 |
+
|
86 |
+
|
87 |
+
|
88 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
89 |
+
<?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
|
90 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
91 |
+
<br /><?php echo $this->__('Incl. Tax'); ?>:
|
92 |
+
<?php endif; ?>
|
93 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales')): ?>
|
94 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
|
95 |
+
<?php else: ?>
|
96 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
|
97 |
+
<?php endif; ?>
|
98 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
99 |
+
<br />
|
100 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales')): ?>
|
101 |
+
<small>
|
102 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
103 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
104 |
+
<?php endforeach; ?>
|
105 |
+
</small>
|
106 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
107 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
108 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
109 |
+
<?php endforeach; ?>
|
110 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales')): ?>
|
111 |
+
<small>
|
112 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
113 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
114 |
+
<?php endforeach; ?>
|
115 |
+
</small>
|
116 |
+
<?php endif; ?>
|
117 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
118 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
|
119 |
+
<?php endif; ?>
|
120 |
+
<?php endif; ?>
|
121 |
+
<?php endif; ?>
|
122 |
+
|
123 |
+
<?php endif; //Can apply MSRP ?>
|
124 |
+
|
125 |
+
<?php if ($_options = $this->getOptionList()):?>
|
126 |
+
<div class="truncated">
|
127 |
+
<div class="truncated_full_value">
|
128 |
+
<dl class="item-options">
|
129 |
+
<?php foreach ($_options as $_option) : ?>
|
130 |
+
<dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
|
131 |
+
<dd>
|
132 |
+
<?php if (is_array($_option['value'])): ?>
|
133 |
+
<?php echo nl2br(implode("\n", $_option['value'])) ?>
|
134 |
+
<?php else: ?>
|
135 |
+
<?php echo $_option['value'] ?>
|
136 |
+
<?php endif; ?>
|
137 |
+
</dd>
|
138 |
+
<?php endforeach; ?>
|
139 |
+
</dl>
|
140 |
+
</div>
|
141 |
+
<a href="#" onclick="return false;" class="details"><?php echo $this->__('Details') ?></a>
|
142 |
+
</div>
|
143 |
+
<?php endif; ?>
|
144 |
+
</div>
|
145 |
+
</li>
|
app/design/frontend/rwd/default/template/checkout/multishipping/addresses.phtml
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Ship to multiple address template
|
30 |
+
*
|
31 |
+
* @see Mage_Checkout_Block_Multishipping_Addresses
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
35 |
+
<form id="checkout_multishipping_form" action="<?php echo $this->getPostActionUrl() ?>" method="post">
|
36 |
+
<div class="multiple-checkout">
|
37 |
+
<div class="page-title title-buttons">
|
38 |
+
<h1><?php echo $this->__('Ship to Multiple Addresses') ?></h1>
|
39 |
+
<button data-action="add-new-customer-address" type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Enter a New Address')) ?>" class="button" onclick="$('add_new_address_flag').value=1; $('checkout_multishipping_form').submit();"><span><span><?php echo $this->__('Enter a New Address') ?></span></span></button>
|
40 |
+
</div>
|
41 |
+
<input type="hidden" name="continue" value="0" id="can_continue_flag" />
|
42 |
+
<input type="hidden" name="new_address" value="0" id="add_new_address_flag" />
|
43 |
+
<h2><?php echo $this->__('Please select shipping address for applicable items') ?></h2>
|
44 |
+
<table class="data-table linearize-table" id="multiship-addresses-table">
|
45 |
+
<col />
|
46 |
+
<col width="1" />
|
47 |
+
<col width="1" />
|
48 |
+
<col width="1" />
|
49 |
+
<thead>
|
50 |
+
<tr>
|
51 |
+
<th><?php echo $this->__('Product') ?></th>
|
52 |
+
<th class="a-center"><?php echo $this->__('Qty') ?></th>
|
53 |
+
<th><?php echo $this->__('Send To') ?></th>
|
54 |
+
<th> </th>
|
55 |
+
</tr>
|
56 |
+
</thead>
|
57 |
+
<tfoot>
|
58 |
+
<tr>
|
59 |
+
<td colspan="100" class="a-right">
|
60 |
+
<button type="submit" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Update Qty & Addresses')) ?>"
|
61 |
+
class="button" onclick="$('can_continue_flag').value=0"
|
62 |
+
data-multiship-item-update>
|
63 |
+
<span><span><?php echo $this->__('Update Qty & Addresses') ?></span></span>
|
64 |
+
</button>
|
65 |
+
</td>
|
66 |
+
</tr>
|
67 |
+
</tfoot>
|
68 |
+
<tbody>
|
69 |
+
<?php foreach ($this->getItems() as $_index => $_item): ?>
|
70 |
+
<?php if ($_item->getQuoteItem()) :?>
|
71 |
+
<tr>
|
72 |
+
<td><?php echo $this->getItemHtml($_item->getQuoteItem())?></td>
|
73 |
+
<td><input type="text" data-multiship-item-id="<?php echo $this->jsQuoteEscape($_item->getSku()) ?>" name="ship[<?php echo $_index ?>][<?php echo $_item->getQuoteItemId() ?>][qty]" value="<?php echo $this->escapeHtml($_item->getQty()) ?>" size="2" class="input-text qty" /></td>
|
74 |
+
<td data-rwd-label="Send To"><?php if ($_item->getProduct()->getIsVirtual()): echo $this->__('Shipping selection is not applicable.'); else: echo $this->getAddressesHtmlSelect($_item, $_index); endif; ?></td>
|
75 |
+
<td class="a-center"><a href="<?php echo $this->getItemDeleteUrl($_item) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Remove Item')) ?>" class="btn-remove2"><?php echo $this->__('Remove Item') ?></a></td>
|
76 |
+
</tr>
|
77 |
+
<?php endif; ?>
|
78 |
+
<?php endforeach; ?>
|
79 |
+
</tbody>
|
80 |
+
</table>
|
81 |
+
<script type="text/javascript">decorateTable('multiship-addresses-table')</script>
|
82 |
+
<div class="buttons-set">
|
83 |
+
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>« </small><?php echo $this->__('Back to Shopping Cart') ?></a></p>
|
84 |
+
<button type="submit" data-action="checkout-continue-shipping" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Continue to Shipping Information')) ?>" class="button<?php if ($this->isContinueDisabled()):?> disabled<?php endif; ?>" onclick="$('can_continue_flag').value=1"<?php if ($this->isContinueDisabled()):?> disabled="disabled"<?php endif; ?>><span><span><?php echo $this->__('Continue to Shipping Information') ?></span></span></button>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</form>
|
app/design/frontend/rwd/default/template/checkout/multishipping/billing.phtml
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Multishipping checkout billing information
|
30 |
+
*
|
31 |
+
* @see Mage_Checkout_Block_Multishipping_Billing
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<div class="multiple-checkout">
|
35 |
+
<div class="page-title">
|
36 |
+
<h1><?php echo $this->__('Billing Information') ?></h1>
|
37 |
+
</div>
|
38 |
+
<?php echo $this->getMessagesBlock()->toHtml() ?>
|
39 |
+
<script src="<?php echo Mage::getBaseUrl('js') ?>varien/payment.js" type="text/javascript"></script>
|
40 |
+
<form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="multishipping-billing-form">
|
41 |
+
<div class="col2-set">
|
42 |
+
<div class="col-1 col-narrow">
|
43 |
+
<div class="box">
|
44 |
+
<div class="box-title">
|
45 |
+
<h2><?php echo $this->__('Billing Address') ?> <span class="separator">|</span> <a href="<?php echo $this->getSelectAddressUrl() ?>"><?php echo $this->__('Change') ?></a></h2>
|
46 |
+
</div>
|
47 |
+
<div class="box-content">
|
48 |
+
<?php $_address=$this->getAddress() ?>
|
49 |
+
<address><?php echo $_address->format('html') ?></address>
|
50 |
+
</div>
|
51 |
+
</div>
|
52 |
+
</div>
|
53 |
+
<div class="col-2 col-wide">
|
54 |
+
<div class="box">
|
55 |
+
<div class="box-title">
|
56 |
+
<h2><?php echo $this->__('Payment Method') ?></h2>
|
57 |
+
</div>
|
58 |
+
<div class="box-content">
|
59 |
+
<div class="tool-tip" id="payment-tool-tip" style="display:none;">
|
60 |
+
<div class="btn-close"><a href="#" id="payment-tool-tip-close" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Close')) ?>"><?php echo $this->__('Close') ?></a></div>
|
61 |
+
<div class="tool-tip-content"><img src="<?php echo $this->getSkinUrl('images/cvv.gif') ?>" alt="<?php echo Mage::helper('core')->quoteEscape($this->__('Card Verification Number Visual Reference')) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Card Verification Number Visual Reference')) ?>" /></div>
|
62 |
+
</div>
|
63 |
+
<?php echo $this->getChildHtml('payment_methods_before') ?>
|
64 |
+
<!-- Payment methods forms list -->
|
65 |
+
<dl id="payment-methods" class="sp-methods">
|
66 |
+
<?php
|
67 |
+
$_methods = $this->getMethods();
|
68 |
+
$_methodsCount = count($_methods);
|
69 |
+
?>
|
70 |
+
<?php foreach ($_methods as $_method): $_code = $_method->getCode() ?>
|
71 |
+
<dt>
|
72 |
+
<?php if ($_methodsCount > 1): ?>
|
73 |
+
<input type="radio" id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" name="payment[method]" title="<?php echo $this->escapeHtml($_method->getTitle()) ?>" onclick="payment.switchMethod('<?php echo $_code ?>')"<?php if($this->getSelectedMethodCode()==$_code): ?> checked="checked"<?php endif; ?> class="radio" />
|
74 |
+
<?php else :?>
|
75 |
+
<span class="no-display"><input type="radio" id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" name="payment[method]" checked="checked" class="radio" /></span>
|
76 |
+
<?php endif;?>
|
77 |
+
<label for="p_method_<?php echo $_code ?>"><?php echo $this->escapeHtml($_method->getTitle()) ?></label>
|
78 |
+
</dt>
|
79 |
+
<?php if($html = $this->getChildHtml('payment.method.'.$_code)) : ?>
|
80 |
+
<dd>
|
81 |
+
<?php echo $html; ?>
|
82 |
+
</dd>
|
83 |
+
<?php endif; ?>
|
84 |
+
<?php endforeach; ?>
|
85 |
+
</dl>
|
86 |
+
<?php echo $this->getChildHtml('payment_methods_after') ?>
|
87 |
+
<?php echo $this->getChildHtml('checkout_billing_items') ?>
|
88 |
+
</div>
|
89 |
+
</div>
|
90 |
+
</div>
|
91 |
+
</div>
|
92 |
+
<div class="buttons-set">
|
93 |
+
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>« </small><?php echo $this->__('Back to Shipping Information') ?></a></p>
|
94 |
+
<button id="payment-continue" type="submit" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Continue to Review Your Order')) ?>" class="button"><span><span><?php echo $this->__('Continue to Review Your Order') ?></span></span></button>
|
95 |
+
</div>
|
96 |
+
</form>
|
97 |
+
<script type="text/javascript">
|
98 |
+
//<![CDATA[
|
99 |
+
var payment = new paymentForm('multishipping-billing-form');
|
100 |
+
var quoteBaseGrandTotal = <?php echo (float)$this->getQuoteBaseGrandTotal(); ?>;
|
101 |
+
function toggleToolTip(event){
|
102 |
+
if($('payment-tool-tip')){
|
103 |
+
/*$('payment-tool-tip').setStyle({
|
104 |
+
top: (Event.pointerY(event)-510)+'px',
|
105 |
+
left: (Event.pointerX(event)-800)+'px'
|
106 |
+
})*/
|
107 |
+
$('payment-tool-tip').toggle();
|
108 |
+
}
|
109 |
+
Event.stop(event);
|
110 |
+
}
|
111 |
+
if($('payment-tool-tip-close')){
|
112 |
+
Event.observe($('payment-tool-tip-close'), 'click', toggleToolTip);
|
113 |
+
}
|
114 |
+
$$('.cvv-what-is-this').each(function(element){
|
115 |
+
Event.observe(element, 'click', toggleToolTip);
|
116 |
+
});
|
117 |
+
//]]>
|
118 |
+
</script>
|
119 |
+
</div>
|
app/design/frontend/rwd/default/template/checkout/multishipping/item/default.phtml
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<h3 class="product-name"><a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->escapeHtml($this->getProductName()) ?></a></h3>
|
28 |
+
<?php if ($_options = $this->getOptionList()):?>
|
29 |
+
<dl class="item-options">
|
30 |
+
<?php foreach ($_options as $_option) : ?>
|
31 |
+
<?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
|
32 |
+
<dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
|
33 |
+
<dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
|
34 |
+
<?php if (isset($_formatedOptionValue['full_view'])): ?>
|
35 |
+
<div class="truncated_full_value">
|
36 |
+
<dl class="item-options">
|
37 |
+
<dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
|
38 |
+
<dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
|
39 |
+
</dl>
|
40 |
+
</div>
|
41 |
+
<?php endif; ?>
|
42 |
+
</dd>
|
43 |
+
<?php endforeach; ?>
|
44 |
+
</dl>
|
45 |
+
<?php endif; ?>
|
46 |
+
<?php if ($addtInfoBlock = $this->getProductAdditionalInformationBlock()):?>
|
47 |
+
<?php echo $addtInfoBlock->setItem($this->getItem())->toHtml() ?>
|
48 |
+
<?php endif;?>
|
app/design/frontend/rwd/default/template/checkout/multishipping/overview.phtml
ADDED
@@ -0,0 +1,245 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php /** @var $this Mage_Checkout_Block_Multishipping_Overview */ ?>
|
28 |
+
<div class="multiple-checkout">
|
29 |
+
<div class="page-title">
|
30 |
+
<h1><?php echo $this->__('Review Order') ?></h1>
|
31 |
+
</div>
|
32 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
33 |
+
<form id="review-order-form" action="<?php echo $this->getPostActionUrl() ?>" method="post" onsubmit="return showLoader();">
|
34 |
+
<?php echo $this->getBlockHtml('formkey'); ?>
|
35 |
+
<div class="col2-set">
|
36 |
+
<h2 class="legend"><?php echo $this->__('Billing Information') ?></h2>
|
37 |
+
<div class="col-1">
|
38 |
+
<div class="box">
|
39 |
+
<?php $_address=$this->getBillingAddress() ?>
|
40 |
+
<div class="box-title">
|
41 |
+
<h3><?php echo $this->__('Billing Address') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditBillingAddressUrl($_address) ?>"><?php echo $this->__('Change') ?></a></h3>
|
42 |
+
</div>
|
43 |
+
<div class="box-content">
|
44 |
+
<address>
|
45 |
+
<?php echo $_address->format('html') ?>
|
46 |
+
</address>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
<div class="col-2">
|
51 |
+
<div class="box">
|
52 |
+
<div class="box-title">
|
53 |
+
<h3><?php echo $this->__('Payment Method') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditBillingUrl() ?>"><?php echo $this->__('Change') ?></a></h3>
|
54 |
+
</div>
|
55 |
+
<div class="box-content">
|
56 |
+
<input type="hidden" name="payment[cc_number]" value="<?php echo $this->escapeHtml($this->getPayment()->getCcNumber())?>" />
|
57 |
+
<input type="hidden" name="payment[cc_cid]" value="<?php echo $this->escapeHtml($this->getPayment()->getCcCid())?>" />
|
58 |
+
<?php echo $this->getPaymentHtml() ?>
|
59 |
+
</div>
|
60 |
+
</div>
|
61 |
+
</div>
|
62 |
+
</div>
|
63 |
+
<?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
|
64 |
+
<div class="col2-set">
|
65 |
+
<h2 class="legend"><?php echo $this->__('Shipping Information') ?></h2>
|
66 |
+
<?php foreach ($this->getShippingAddresses() as $_index => $_address): ?>
|
67 |
+
<h3 class="legend"><?php echo $this->__('Address %s of %s', ($_index+1), $this->getShippingAddressCount()) ?></h3>
|
68 |
+
<div class="col-1 col-narrow">
|
69 |
+
<div class="box">
|
70 |
+
<div class="box-title">
|
71 |
+
<h4><?php echo $this->__('Shipping To') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditShippingAddressUrl($_address) ?>"><?php echo $this->__('Change') ?></a></h4>
|
72 |
+
</div>
|
73 |
+
<div class="box-content">
|
74 |
+
<address>
|
75 |
+
<?php echo $_address->format('html') ?>
|
76 |
+
</address>
|
77 |
+
</div>
|
78 |
+
</div>
|
79 |
+
<div class="box">
|
80 |
+
<div class="box-title">
|
81 |
+
<h4><?php echo $this->__('Shipping Method') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditShippingUrl() ?>"><?php echo $this->__('Change') ?></a></h4>
|
82 |
+
</div>
|
83 |
+
<div class="box-content">
|
84 |
+
<?php if($_rate=$this->getShippingAddressRate($_address)): ?>
|
85 |
+
<p>
|
86 |
+
<?php echo $this->escapeHtml($_rate->getCarrierTitle()) ?> - <?php echo $this->escapeHtml($_rate->getMethodTitle()) ?>
|
87 |
+
<?php $_excl = $this->getShippingPriceExclTax($_address); ?>
|
88 |
+
<?php $_incl = $this->getShippingPriceInclTax($_address); ?>
|
89 |
+
<?php echo $_excl; ?>
|
90 |
+
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
91 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
92 |
+
<?php endif; ?>
|
93 |
+
</p>
|
94 |
+
<?php endif; ?>
|
95 |
+
</div>
|
96 |
+
</div>
|
97 |
+
</div>
|
98 |
+
<div class="col-2 col-wide">
|
99 |
+
<h4><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getAddressesEditUrl() ?>"><?php echo $this->__('Edit Items') ?></a></h4>
|
100 |
+
<?php $_tableClass = $this->helper('tax')->displayCartBothPrices() ? 'linearize-table-large' : 'linearize-table'; ?>
|
101 |
+
<table class="data-table <?php echo $_tableClass; ?> checkout-review-table" id="overview-table-<?php echo $_address->getId() ?>">
|
102 |
+
<col />
|
103 |
+
<col width="1" />
|
104 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
105 |
+
<col width="1" />
|
106 |
+
<?php endif; ?>
|
107 |
+
<col width="1" />
|
108 |
+
<col width="1" />
|
109 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
110 |
+
<col width="1" />
|
111 |
+
<?php endif; ?>
|
112 |
+
<thead>
|
113 |
+
<tr>
|
114 |
+
<th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Product Name') ?></th>
|
115 |
+
<th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Price') ?></th>
|
116 |
+
<th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Qty') ?></th>
|
117 |
+
<th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
|
118 |
+
</tr>
|
119 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
120 |
+
<tr>
|
121 |
+
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
122 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
123 |
+
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
124 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
125 |
+
</tr>
|
126 |
+
<?php endif; ?>
|
127 |
+
</thead>
|
128 |
+
<tfoot>
|
129 |
+
<?php echo $this->renderTotals($this->getShippingAddressTotals($_address)); ?>
|
130 |
+
</tfoot>
|
131 |
+
<tbody>
|
132 |
+
<?php foreach ($this->getShippingAddressItems($_address) as $_item): ?>
|
133 |
+
<?php echo $this->getRowItemHtml($_item); ?>
|
134 |
+
<?php endforeach; ?>
|
135 |
+
</tbody>
|
136 |
+
</table>
|
137 |
+
<script type="text/javascript">decorateTable('overview-table-<?php echo $_address->getId() ?>')</script>
|
138 |
+
</div>
|
139 |
+
<?php if($this->getShippingAddressCount()!=$_index+1): ?>
|
140 |
+
<div class="divider"></div>
|
141 |
+
<?php endif; ?>
|
142 |
+
<?php endforeach; ?>
|
143 |
+
</div>
|
144 |
+
<?php if ($this->getQuote()->hasVirtualItems()): ?>
|
145 |
+
<div class="col2-set">
|
146 |
+
<h2 class="legend"><?php echo $this->__('Other Items in Your Order') ?></h2>
|
147 |
+
<div class="col-1 col-narrow"></div>
|
148 |
+
<div class="col-2 col-wide">
|
149 |
+
<h3><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getVirtualProductEditUrl() ?>"><?php echo $this->__('Edit Items') ?></a></h3>
|
150 |
+
<?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
|
151 |
+
<?php $_tableClass = $this->helper('tax')->displayCartBothPrices() ? 'linearize-table-large' : 'linearize-table'; ?>
|
152 |
+
<table class="data-table <?php echo $_tableClass; ?> checkout-review-table" id="virtual-overview-table">
|
153 |
+
<col />
|
154 |
+
<col width="1" />
|
155 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
156 |
+
<col width="1" />
|
157 |
+
<?php endif; ?>
|
158 |
+
<col width="1" />
|
159 |
+
<col width="1" />
|
160 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
161 |
+
<col width="70" />
|
162 |
+
<?php endif; ?>
|
163 |
+
<thead>
|
164 |
+
<tr>
|
165 |
+
<th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Product Name') ?></th>
|
166 |
+
<th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Price') ?></th>
|
167 |
+
<th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Qty') ?></th>
|
168 |
+
<th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
|
169 |
+
</tr>
|
170 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
171 |
+
<tr>
|
172 |
+
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
173 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
174 |
+
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
175 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
176 |
+
</tr>
|
177 |
+
<?php endif; ?>
|
178 |
+
</thead>
|
179 |
+
<tfoot>
|
180 |
+
<?php echo $this->renderTotals($this->getBillinAddressTotals()); ?>
|
181 |
+
</tfoot>
|
182 |
+
<tbody>
|
183 |
+
<?php foreach ($this->getVirtualItems() as $_item): ?>
|
184 |
+
<?php echo $this->getRowItemHtml($_item); ?>
|
185 |
+
<?php endforeach; ?>
|
186 |
+
</tbody>
|
187 |
+
</table>
|
188 |
+
<script type="text/javascript">decorateTable('virtual-overview-table')</script>
|
189 |
+
</div>
|
190 |
+
</div>
|
191 |
+
<?php endif; ?>
|
192 |
+
|
193 |
+
<?php echo $this->getChildHtml('items_after'); ?>
|
194 |
+
|
195 |
+
<div id="checkout-review-submit">
|
196 |
+
<?php echo $this->getChildHtml('agreements') ?>
|
197 |
+
<div class="place-order">
|
198 |
+
<div class="grand-total">
|
199 |
+
<div class="inner">
|
200 |
+
<big><?php echo $this->__('Grand Total:') ?> <?php echo $this->helper('checkout')->formatPrice($this->getTotal()) ?></big>
|
201 |
+
<div id="review-buttons-container">
|
202 |
+
<button type="submit" title="<?php echo $this->quoteEscape($this->__('Place Order')) ?>" class="button btn-checkout" id="review-button"><span><span><?php echo $this->__('Place Order') ?></span></span></button>
|
203 |
+
</div>
|
204 |
+
</div>
|
205 |
+
</div>
|
206 |
+
<span class="please-wait" id="review-please-wait" style="display:none;">
|
207 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->quoteEscape($this->__('Submitting order information...')) ?>" title="<?php echo $this->quoteEscape($this->__('Submitting order information...')) ?>" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
|
208 |
+
</span>
|
209 |
+
</div>
|
210 |
+
</div>
|
211 |
+
<div class="buttons-set">
|
212 |
+
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>« </small><?php echo $this->__('Back to Billing Information') ?></a></p>
|
213 |
+
</div>
|
214 |
+
</form>
|
215 |
+
<script type="text/javascript">
|
216 |
+
//<![CDATA[
|
217 |
+
var submitted = false;
|
218 |
+
|
219 |
+
function showLoader()
|
220 |
+
{
|
221 |
+
if (submitted) {
|
222 |
+
return false;
|
223 |
+
}
|
224 |
+
if ($('checkout-agreements')) {
|
225 |
+
var checkboxes = $$('#checkout-agreements input');
|
226 |
+
for (var i=0, l=checkboxes.length; i<l; i++) {
|
227 |
+
if (!checkboxes[i].checked) {
|
228 |
+
alert("<?php echo $this->jsQuoteEscape($this->__('Please agree to all Terms and Conditions before placing the orders.')) ?>");
|
229 |
+
return false;
|
230 |
+
}
|
231 |
+
}
|
232 |
+
}
|
233 |
+
|
234 |
+
submitted = true;
|
235 |
+
var step='review';
|
236 |
+
Element.show(step+'-please-wait');
|
237 |
+
$(step+'-buttons-container').setStyle({opacity:.5});
|
238 |
+
$(step+'-buttons-container').descendants().each(function(s) {
|
239 |
+
s.disabled = true;
|
240 |
+
});
|
241 |
+
return true;
|
242 |
+
}
|
243 |
+
//]]>
|
244 |
+
</script>
|
245 |
+
</div>
|
app/design/frontend/rwd/default/template/checkout/multishipping/overview/item.phtml
ADDED
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Quote Item row html
|
30 |
+
*
|
31 |
+
* @see Mage_Checkout_Block_Cart_Item_Renderer
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php $_item = $this->getItem() ?>
|
35 |
+
<tr>
|
36 |
+
<td><?php echo $this->getRenderedBlock()->getItemHtml($_item) ?></td>
|
37 |
+
|
38 |
+
<!--- Excluding Tax -->
|
39 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
40 |
+
<?php $_labelAppend = $this->helper('tax')->displayCartBothPrices() ? ' ' . $this->__('(Excl. Tax)') : ''; ?>
|
41 |
+
<td class="a-right" data-rwd-label="<?php echo $this->__('Price') . $_labelAppend; ?>">
|
42 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
43 |
+
<div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
44 |
+
<?php else: ?>
|
45 |
+
<div class="cart-price">
|
46 |
+
<?php endif; ?>
|
47 |
+
|
48 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
49 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
|
50 |
+
<?php else: ?>
|
51 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
52 |
+
<?php endif; ?>
|
53 |
+
|
54 |
+
</div>
|
55 |
+
|
56 |
+
|
57 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
58 |
+
|
59 |
+
<div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display: none;">
|
60 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
61 |
+
<small>
|
62 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
63 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
64 |
+
<?php endforeach; ?>
|
65 |
+
</small>
|
66 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
67 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
68 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></small></span><br />
|
69 |
+
<?php endforeach; ?>
|
70 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
71 |
+
<small>
|
72 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
73 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
74 |
+
<?php endforeach; ?>
|
75 |
+
</small>
|
76 |
+
<?php endif; ?>
|
77 |
+
</div>
|
78 |
+
|
79 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
80 |
+
<div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
81 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
|
82 |
+
</div>
|
83 |
+
<?php endif; ?>
|
84 |
+
<?php endif; ?>
|
85 |
+
</td>
|
86 |
+
<?php endif; ?>
|
87 |
+
<!--- // Excluding Tax -->
|
88 |
+
|
89 |
+
<!--- Including Tax -->
|
90 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
91 |
+
<?php $_labelAppend = $this->helper('tax')->displayCartBothPrices() ? ' ' . $this->__('(Incl. Tax)') : ''; ?>
|
92 |
+
<td data-rwd-label="<?php echo $this->__('Price') . $_labelAppend; ?>">
|
93 |
+
<?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
|
94 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
95 |
+
<div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
96 |
+
<?php else: ?>
|
97 |
+
<div class="cart-price">
|
98 |
+
<?php endif; ?>
|
99 |
+
|
100 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
101 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
|
102 |
+
<?php else: ?>
|
103 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
|
104 |
+
<?php endif; ?>
|
105 |
+
|
106 |
+
</div>
|
107 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
108 |
+
|
109 |
+
<div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display: none;">
|
110 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
111 |
+
<small>
|
112 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
113 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
114 |
+
<?php endforeach; ?>
|
115 |
+
</small>
|
116 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
117 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
118 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
119 |
+
<?php endforeach; ?>
|
120 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
121 |
+
<small>
|
122 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
123 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
124 |
+
<?php endforeach; ?>
|
125 |
+
</small>
|
126 |
+
<?php endif; ?>
|
127 |
+
</div>
|
128 |
+
|
129 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
130 |
+
<div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
131 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
|
132 |
+
</div>
|
133 |
+
<?php endif; ?>
|
134 |
+
<?php endif; ?>
|
135 |
+
|
136 |
+
</td>
|
137 |
+
<?php endif; ?>
|
138 |
+
<!--- // Including Tax -->
|
139 |
+
|
140 |
+
<td class="a-center" data-rwd-label="<?php echo $this->__('Quantity'); ?>"><?php echo $_item->getQty()*1 ?></td>
|
141 |
+
|
142 |
+
<!--- Excluding Tax Subtotal -->
|
143 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
144 |
+
<?php $_labelAppend = $this->helper('tax')->displayCartBothPrices() ? ' ' . $this->__('(Excl. Tax)') : ''; ?>
|
145 |
+
<td class="a-right" data-rwd-label="<?php echo $this->__('Subtotal') . $_labelAppend; ?>">
|
146 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
147 |
+
<div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
148 |
+
<?php else: ?>
|
149 |
+
<div class="cart-price">
|
150 |
+
<?php endif; ?>
|
151 |
+
|
152 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
153 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
|
154 |
+
<?php else: ?>
|
155 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
|
156 |
+
<?php endif; ?>
|
157 |
+
|
158 |
+
</div>
|
159 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
160 |
+
|
161 |
+
<div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display: none;">
|
162 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
163 |
+
<small>
|
164 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
165 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
|
166 |
+
<?php endforeach; ?>
|
167 |
+
</small>
|
168 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
169 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
170 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></small></span><br />
|
171 |
+
<?php endforeach; ?>
|
172 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
173 |
+
<small>
|
174 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
175 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
|
176 |
+
<?php endforeach; ?>
|
177 |
+
</small>
|
178 |
+
<?php endif; ?>
|
179 |
+
</div>
|
180 |
+
|
181 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
182 |
+
<div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
183 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
|
184 |
+
</div>
|
185 |
+
<?php endif; ?>
|
186 |
+
<?php endif; ?>
|
187 |
+
</td>
|
188 |
+
<?php endif; ?>
|
189 |
+
<!--- //Excluding Tax Subtotal -->
|
190 |
+
|
191 |
+
<!--- Including Tax Subtotal -->
|
192 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
193 |
+
<?php $_labelAppend = $this->helper('tax')->displayCartBothPrices() ? ' ' . $this->__('(Incl. Tax)') : ''; ?>
|
194 |
+
<td data-rwd-label="<?php echo $this->__('Subtotal') . $_labelAppend; ?>">
|
195 |
+
<?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
|
196 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
197 |
+
<div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
198 |
+
<?php else: ?>
|
199 |
+
<div class="cart-price">
|
200 |
+
<?php endif; ?>
|
201 |
+
|
202 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
203 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?>
|
204 |
+
<?php else: ?>
|
205 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
|
206 |
+
<?php endif; ?>
|
207 |
+
|
208 |
+
</div>
|
209 |
+
|
210 |
+
|
211 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
212 |
+
|
213 |
+
<div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display: none;">
|
214 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
215 |
+
<small>
|
216 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
217 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
|
218 |
+
<?php endforeach; ?>
|
219 |
+
</small>
|
220 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
221 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
222 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
|
223 |
+
<?php endforeach; ?>
|
224 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
225 |
+
<small>
|
226 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
227 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
|
228 |
+
<?php endforeach; ?>
|
229 |
+
</small>
|
230 |
+
<?php endif; ?>
|
231 |
+
</div>
|
232 |
+
|
233 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
234 |
+
<div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
235 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
|
236 |
+
</div>
|
237 |
+
<?php endif; ?>
|
238 |
+
<?php endif; ?>
|
239 |
+
</td>
|
240 |
+
<?php endif; ?>
|
241 |
+
<!--- //Including Tax Subtotal -->
|
242 |
+
</tr>
|
app/design/frontend/rwd/default/template/checkout/onepage.phtml
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="page-title">
|
28 |
+
<h1><?php echo $this->__('Checkout') ?></h1>
|
29 |
+
</div>
|
30 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl('varien/accordion.js') ?>"></script>
|
31 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/opcheckout.js') ?>"></script>
|
32 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/opcheckout_rwd.js') ?>"></script>
|
33 |
+
<ol class="opc opc-firststep-<?php echo $this->getActiveStep() ?>" id="checkoutSteps">
|
34 |
+
<?php $i=0; foreach($this->getSteps() as $_stepId => $_stepInfo): ?>
|
35 |
+
<?php if (!$this->getChild($_stepId) || !$this->getChild($_stepId)->isShow()): continue; endif; $i++ ?>
|
36 |
+
<li id="opc-<?php echo $_stepId ?>" class="section<?php echo !empty($_stepInfo['allow'])?' allow':'' ?><?php echo !empty($_stepInfo['complete'])?' saved':'' ?>">
|
37 |
+
<div class="step-title">
|
38 |
+
<span class="number"><?php echo $i ?></span>
|
39 |
+
<h2><?php echo $_stepInfo['label'] ?></h2>
|
40 |
+
<a href="#"><?php echo $this->__('Edit') ?></a>
|
41 |
+
</div>
|
42 |
+
<div id="checkout-step-<?php echo $_stepId ?>" class="step a-item" style="display:none;">
|
43 |
+
<?php echo $this->getChildHtml($_stepId) ?>
|
44 |
+
</div>
|
45 |
+
</li>
|
46 |
+
<?php endforeach ?>
|
47 |
+
</ol>
|
48 |
+
<script type="text/javascript">
|
49 |
+
//<![CDATA[
|
50 |
+
var accordion = new Accordion('checkoutSteps', '.step-title', true);
|
51 |
+
<?php if($this->getActiveStep()): ?>
|
52 |
+
accordion.openSection('opc-<?php echo $this->getActiveStep() ?>');
|
53 |
+
<?php endif ?>
|
54 |
+
var checkout = new Checkout(accordion,{
|
55 |
+
progress: '<?php echo $this->getUrl('checkout/onepage/progress') ?>',
|
56 |
+
review: '<?php echo $this->getUrl('checkout/onepage/review') ?>',
|
57 |
+
saveMethod: '<?php echo $this->getUrl('checkout/onepage/saveMethod') ?>',
|
58 |
+
failure: '<?php echo $this->getUrl('checkout/cart') ?>'}
|
59 |
+
);
|
60 |
+
//]]>
|
61 |
+
101</script>
|
app/design/frontend/rwd/default/template/checkout/onepage/billing.phtml
ADDED
@@ -0,0 +1,216 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<form id="co-billing-form" action="">
|
28 |
+
<fieldset>
|
29 |
+
<ul class="form-list">
|
30 |
+
<?php if ($this->customerHasAddresses()): ?>
|
31 |
+
<li class="wide">
|
32 |
+
<label for="billing-address-select"><?php echo $this->__('Select a billing address from your address book or enter a new address.') ?></label>
|
33 |
+
<div class="input-box">
|
34 |
+
<?php echo $this->getAddressesHtmlSelect('billing') ?>
|
35 |
+
</div>
|
36 |
+
</li>
|
37 |
+
<?php endif; ?>
|
38 |
+
<li id="billing-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif; ?>>
|
39 |
+
<fieldset>
|
40 |
+
<input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
|
41 |
+
<ul>
|
42 |
+
<li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress()->getFirstname() ? $this->getAddress() : $this->getQuote()->getCustomer())->setForceUseCustomerRequiredAttributes(!$this->isCustomerLoggedIn())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?></li>
|
43 |
+
<li class="fields">
|
44 |
+
<div class="field">
|
45 |
+
<label for="billing:company"><?php echo $this->__('Company') ?></label>
|
46 |
+
<div class="input-box">
|
47 |
+
<input type="text" id="billing:company" name="billing[company]" value="<?php echo $this->escapeHtml($this->getAddress()->getCompany()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Company')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('company') ?>" />
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
<?php if(!$this->isCustomerLoggedIn()): ?>
|
51 |
+
<div class="field">
|
52 |
+
<label for="billing:email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
53 |
+
<div class="input-box">
|
54 |
+
<input type="text" name="billing[email]" id="billing:email" value="<?php echo $this->escapeHtml($this->getAddress()->getEmail()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Email Address')) ?>" class="input-text validate-email required-entry" />
|
55 |
+
</div>
|
56 |
+
</div>
|
57 |
+
<?php endif; ?>
|
58 |
+
</li>
|
59 |
+
<?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
|
60 |
+
<li class="wide">
|
61 |
+
<label for="billing:street1" class="required"><em>*</em><?php echo $this->__('Address') ?></label>
|
62 |
+
<div class="input-box">
|
63 |
+
<input type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Street Address')) ?>" name="billing[street][]" id="billing:street1" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(1)) ?>" class="input-text <?php echo $_streetValidationClass ?>" />
|
64 |
+
</div>
|
65 |
+
</li>
|
66 |
+
<?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
67 |
+
<?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
|
68 |
+
<li class="wide">
|
69 |
+
<div class="input-box">
|
70 |
+
<input type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Street Address %s', $_i)) ?>" name="billing[street][]" id="billing:street<?php echo $_i ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet($_i)) ?>" class="input-text <?php echo $_streetValidationClass ?>" />
|
71 |
+
</div>
|
72 |
+
</li>
|
73 |
+
<?php endfor; ?>
|
74 |
+
<?php if ($this->helper('customer/address')->isVatAttributeVisible()) : ?>
|
75 |
+
<li class="wide">
|
76 |
+
<label for="billing:vat_id"><?php echo $this->__('VAT Number') ?></label>
|
77 |
+
<div class="input-box">
|
78 |
+
<input type="text" id="billing:vat_id" name="billing[vat_id]" value="<?php echo $this->escapeHtml($this->getAddress()->getVatId()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('VAT Number')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('vat_id') ?>" />
|
79 |
+
</div>
|
80 |
+
</li>
|
81 |
+
<?php endif; ?>
|
82 |
+
<li class="fields">
|
83 |
+
<div class="field">
|
84 |
+
<label for="billing:city" class="required"><em>*</em><?php echo $this->__('City/Suburb') ?></label>
|
85 |
+
<div class="input-box">
|
86 |
+
<input type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('City')) ?>" name="billing[city]" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="billing:city" />
|
87 |
+
</div>
|
88 |
+
</div>
|
89 |
+
<div class="field">
|
90 |
+
<label for="billing:region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
91 |
+
<div class="input-box">
|
92 |
+
<select id="billing:region_id" name="billing[region_id]" title="<?php echo Mage::helper('core')->quoteEscape($this->__('State/Province')) ?>" class="validate-select" style="display:none;">
|
93 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
94 |
+
</select>
|
95 |
+
<script type="text/javascript">
|
96 |
+
//<![CDATA[
|
97 |
+
$('billing:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
98 |
+
//]]>
|
99 |
+
</script>
|
100 |
+
<input type="text" id="billing:region" name="billing[region]" value="<?php echo $this->escapeHtml($this->getAddress()->getRegion()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('State/Province')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" style="display:none;" />
|
101 |
+
</div>
|
102 |
+
</div>
|
103 |
+
</li>
|
104 |
+
<li class="fields">
|
105 |
+
<div class="field">
|
106 |
+
<label for="billing:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
107 |
+
<div class="input-box">
|
108 |
+
<input type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Zip/Postal Code')) ?>" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" />
|
109 |
+
</div>
|
110 |
+
</div>
|
111 |
+
<div class="field">
|
112 |
+
<label for="billing:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
113 |
+
<div class="input-box">
|
114 |
+
<?php echo $this->getCountryHtmlSelect('billing') ?>
|
115 |
+
</div>
|
116 |
+
</div>
|
117 |
+
</li>
|
118 |
+
<li class="fields">
|
119 |
+
<div class="field">
|
120 |
+
<label for="billing:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
121 |
+
<div class="input-box">
|
122 |
+
<input type="text" name="billing[telephone]" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Telephone')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="billing:telephone" />
|
123 |
+
</div>
|
124 |
+
</div>
|
125 |
+
<div class="field">
|
126 |
+
<label for="billing:fax"><?php echo $this->__('Fax') ?></label>
|
127 |
+
<div class="input-box">
|
128 |
+
<input type="text" name="billing[fax]" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Fax')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" id="billing:fax" />
|
129 |
+
</div>
|
130 |
+
</div>
|
131 |
+
</li>
|
132 |
+
<?php if(!$this->isCustomerLoggedIn()): ?>
|
133 |
+
|
134 |
+
<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
|
135 |
+
<?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
|
136 |
+
<?php if ($_dob->isEnabled() || $_gender->isEnabled()): ?>
|
137 |
+
<li class="fields">
|
138 |
+
<?php if ($_dob->isEnabled()): ?>
|
139 |
+
<div class="field">
|
140 |
+
<?php echo $_dob->setDate($this->getQuote()->getCustomerDob())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
141 |
+
</div>
|
142 |
+
<?php endif; ?>
|
143 |
+
<?php if ($_gender->isEnabled()): ?>
|
144 |
+
<div class="field">
|
145 |
+
<?php echo $_gender->setGender($this->getQuote()->getCustomerGender())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
146 |
+
</div>
|
147 |
+
<?php endif ?>
|
148 |
+
</li>
|
149 |
+
<?php endif ?>
|
150 |
+
|
151 |
+
<?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
|
152 |
+
<?php if ($_taxvat->isEnabled()): ?>
|
153 |
+
<li>
|
154 |
+
<?php echo $_taxvat->setTaxvat($this->getQuote()->getCustomerTaxvat())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
155 |
+
</li>
|
156 |
+
<?php endif ?>
|
157 |
+
|
158 |
+
<li class="fields" id="register-customer-password">
|
159 |
+
<div class="field">
|
160 |
+
<label for="billing:customer_password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
|
161 |
+
<div class="input-box">
|
162 |
+
<input type="password" name="billing[customer_password]" id="billing:customer_password" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Password')) ?>" class="input-text required-entry validate-password" />
|
163 |
+
</div>
|
164 |
+
</div>
|
165 |
+
<div class="field">
|
166 |
+
<label for="billing:confirm_password" class="required"><em>*</em><?php echo $this->__('Confirm Password') ?></label>
|
167 |
+
<div class="input-box">
|
168 |
+
<input type="password" name="billing[confirm_password]" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Confirm Password')) ?>" id="billing:confirm_password" class="input-text required-entry validate-cpassword" />
|
169 |
+
</div>
|
170 |
+
</div>
|
171 |
+
</li>
|
172 |
+
<?php endif; ?>
|
173 |
+
<?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
|
174 |
+
<li class="control">
|
175 |
+
<input type="checkbox" name="billing[save_in_address_book]" value="1" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Save in address book')) ?>" id="billing:save_in_address_book" onchange="if(window.shipping) shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="billing:save_in_address_book"><?php echo $this->__('Save in address book') ?></label>
|
176 |
+
</li>
|
177 |
+
<?php else:?>
|
178 |
+
<li class="no-display"><input type="hidden" name="billing[save_in_address_book]" value="1" /></li>
|
179 |
+
<?php endif; ?>
|
180 |
+
<?php echo $this->getChildHtml('form.additional.info'); ?>
|
181 |
+
</ul>
|
182 |
+
</fieldset>
|
183 |
+
</li>
|
184 |
+
<?php /* Extensions placeholder */ ?>
|
185 |
+
<?php echo $this->getChildHtml('checkout.onepage.billing.extra')?>
|
186 |
+
<?php if ($this->canShip()): ?>
|
187 |
+
<li class="control">
|
188 |
+
<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_yes" value="1"<?php if ($this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo Mage::helper('core')->quoteEscape($this->__('Ship to this address')) ?>" onclick="$('shipping:same_as_billing').checked = true;" class="radio" /><label for="billing:use_for_shipping_yes"><?php echo $this->__('Ship to this address') ?></label></li>
|
189 |
+
<li class="control">
|
190 |
+
<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_no" value="0"<?php if (!$this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo Mage::helper('core')->quoteEscape($this->__('Ship to different address')) ?>" onclick="$('shipping:same_as_billing').checked = false;" class="radio" /><label for="billing:use_for_shipping_no"><?php echo $this->__('Ship to different address') ?></label>
|
191 |
+
</li>
|
192 |
+
<?php endif; ?>
|
193 |
+
</ul>
|
194 |
+
<?php if (!$this->canShip()): ?>
|
195 |
+
<input type="hidden" name="billing[use_for_shipping]" value="1" />
|
196 |
+
<?php endif; ?>
|
197 |
+
<div class="buttons-set" id="billing-buttons-container">
|
198 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
199 |
+
<button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Continue')) ?>" class="button" onclick="billing.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
200 |
+
<span class="please-wait" id="billing-please-wait" style="display:none;">
|
201 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo Mage::helper('core')->quoteEscape($this->__('Loading next step...')) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Loading next step...')) ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
|
202 |
+
</span>
|
203 |
+
</div>
|
204 |
+
</fieldset>
|
205 |
+
</form>
|
206 |
+
<script type="text/javascript">
|
207 |
+
//<![CDATA[
|
208 |
+
var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveBilling') ?>');
|
209 |
+
var billingForm = new VarienForm('co-billing-form');
|
210 |
+
|
211 |
+
//billingForm.setElementsRelation('billing:country_id', 'billing:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
|
212 |
+
$('billing-address-select') && billing.newAddress(!$('billing-address-select').value);
|
213 |
+
|
214 |
+
var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'billing:postcode');
|
215 |
+
//]]>
|
216 |
+
</script>
|
app/design/frontend/rwd/default/template/checkout/onepage/payment.phtml
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<script type="text/javascript">
|
28 |
+
//<![CDATA[
|
29 |
+
var quoteBaseGrandTotal = <?php echo (float)$this->getQuoteBaseGrandTotal(); ?>;
|
30 |
+
var checkQuoteBaseGrandTotal = quoteBaseGrandTotal;
|
31 |
+
var payment = new Payment('co-payment-form', '<?php echo $this->getUrl('checkout/onepage/savePayment') ?>');
|
32 |
+
var lastPrice;
|
33 |
+
//]]>
|
34 |
+
</script>
|
35 |
+
<form action="" id="co-payment-form">
|
36 |
+
<div class="fieldset">
|
37 |
+
<?php echo $this->getChildChildHtml('methods_additional', '', true, true) ?>
|
38 |
+
<?php echo $this->getChildHtml('methods') ?>
|
39 |
+
</div>
|
40 |
+
</form>
|
41 |
+
<div class="tool-tip" id="payment-tool-tip" style="display:none;">
|
42 |
+
<div class="btn-close"><a href="#" id="payment-tool-tip-close" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Close')) ?>"><?php echo $this->__('Close') ?></a></div>
|
43 |
+
<div class="tool-tip-content"><img src="<?php echo $this->getSkinUrl('images/cvv.gif') ?>" alt="<?php echo Mage::helper('core')->quoteEscape($this->__('Card Verification Number Visual Reference')) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Card Verification Number Visual Reference')) ?>" /></div>
|
44 |
+
</div>
|
45 |
+
<?php echo $this->getChildChildHtml('additional') ?>
|
46 |
+
<div class="buttons-set" id="payment-buttons-container">
|
47 |
+
<?php // Moved to CC form ?>
|
48 |
+
<?php /* <p class="required"><?php echo $this->__('* Required Fields') ?></p> */ ?>
|
49 |
+
<p class="back-link"><a href="#" onclick="checkout.back(); return false;"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
50 |
+
<button type="button" class="button" onclick="payment.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
51 |
+
<span class="please-wait" id="payment-please-wait" style="display:none;">
|
52 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo Mage::helper('core')->quoteEscape($this->__('Loading next step...')) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Loading next step...')) ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
|
53 |
+
</span>
|
54 |
+
</div>
|
55 |
+
<script type="text/javascript">
|
56 |
+
//<![CDATA[
|
57 |
+
function toggleToolTip(event){
|
58 |
+
if($('payment-tool-tip')){
|
59 |
+
$('payment-tool-tip').setStyle({
|
60 |
+
top: (Event.pointerY(event)-560)+'px'//,
|
61 |
+
//left: (Event.pointerX(event)+100)+'px'
|
62 |
+
})
|
63 |
+
$('payment-tool-tip').toggle();
|
64 |
+
}
|
65 |
+
Event.stop(event);
|
66 |
+
}
|
67 |
+
if($('payment-tool-tip-close')){
|
68 |
+
Event.observe($('payment-tool-tip-close'), 'click', toggleToolTip);
|
69 |
+
}
|
70 |
+
//]]>
|
71 |
+
</script>
|
72 |
+
<script type="text/javascript">
|
73 |
+
//<![CDATA[
|
74 |
+
payment.currentMethod = "<?php echo $this->getChild('methods')->getSelectedMethodCode() ?>";
|
75 |
+
//]]>
|
76 |
+
</script>
|
app/design/frontend/rwd/default/template/checkout/onepage/progress.phtml
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<div class="block block-progress opc-block-progress<?php if (!$this->isCustomerLoggedIn()/* && !$this->getCheckout()->getStepData('billing', 'is_show')*/): ?> opc-block-progress-step-login<?php endif; ?>">
|
28 |
+
<div class="block-title">
|
29 |
+
<strong><span><?php echo $this->__('Your Checkout Progress') ?></span></strong>
|
30 |
+
</div>
|
31 |
+
<div class="block-content">
|
32 |
+
<dl>
|
33 |
+
<?php if ($this->getCheckout()->getStepData('billing', 'is_show')): ?>
|
34 |
+
<div id="billing-progress-opcheckout">
|
35 |
+
<?php echo $this->getChildHtml('billing.progress') ?>
|
36 |
+
</div>
|
37 |
+
<?php endif; ?>
|
38 |
+
|
39 |
+
<?php if ($this->getCheckout()->getStepData('shipping', 'is_show')): ?>
|
40 |
+
<div id="shipping-progress-opcheckout">
|
41 |
+
<?php echo $this->getChildHtml('shipping.progress') ?>
|
42 |
+
</div>
|
43 |
+
<?php endif; ?>
|
44 |
+
|
45 |
+
<?php if ($this->getCheckout()->getStepData('shipping_method', 'is_show')): ?>
|
46 |
+
<div id="shipping_method-progress-opcheckout">
|
47 |
+
<?php echo $this->getChildHtml('shippingmethod.progress') ?>
|
48 |
+
</div>
|
49 |
+
<?php endif; ?>
|
50 |
+
|
51 |
+
<?php if ($this->getCheckout()->getStepData('payment', 'is_show')): ?>
|
52 |
+
<div id="payment-progress-opcheckout">
|
53 |
+
<?php echo $this->getChildHtml('payment.progress') ?>
|
54 |
+
</div>
|
55 |
+
<?php endif; ?>
|
56 |
+
</dl>
|
57 |
+
</div>
|
58 |
+
</div>
|
59 |
+
|
app/design/frontend/rwd/default/template/checkout/onepage/review/info.phtml
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php echo $this->getChildHtml('items_before'); ?>
|
28 |
+
<div id="checkout-review-table-wrapper">
|
29 |
+
<?php $_tableClass = $this->helper('tax')->displayCartBothPrices() ? 'linearize-table-large' : 'linearize-table'; ?>
|
30 |
+
<table class="data-table <?php echo $_tableClass; ?> checkout-review-table" id="checkout-review-table">
|
31 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): $colspan = $rowspan = 2; else: $colspan = $rowspan = 1; endif; ?>
|
32 |
+
<col />
|
33 |
+
<col width="1" />
|
34 |
+
<col width="1" />
|
35 |
+
<col width="1" />
|
36 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
37 |
+
<col width="1" />
|
38 |
+
<col width="1" />
|
39 |
+
<?php endif; ?>
|
40 |
+
<thead>
|
41 |
+
<tr>
|
42 |
+
<th rowspan="<?php echo $rowspan ?>"><?php echo $this->__('Product') ?></th>
|
43 |
+
<th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Price') ?></th>
|
44 |
+
<th rowspan="<?php echo $rowspan ?>" class="a-center"><?php echo $this->__('Qty') ?></th>
|
45 |
+
<th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
|
46 |
+
</tr>
|
47 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
48 |
+
<tr>
|
49 |
+
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
50 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
51 |
+
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
52 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
53 |
+
</tr>
|
54 |
+
<?php endif; ?>
|
55 |
+
</thead>
|
56 |
+
<?php echo $this->getChildHtml('totals'); ?>
|
57 |
+
<tbody>
|
58 |
+
<?php foreach($this->getItems() as $_item): ?>
|
59 |
+
<?php echo $this->getItemHtml($_item)?>
|
60 |
+
<?php endforeach ?>
|
61 |
+
</tbody>
|
62 |
+
</table>
|
63 |
+
</div>
|
64 |
+
<?php echo $this->getChildHtml('items_after'); ?>
|
65 |
+
<script type="text/javascript">
|
66 |
+
//<![CDATA[
|
67 |
+
decorateTable('checkout-review-table');
|
68 |
+
truncateOptions();
|
69 |
+
//]]>
|
70 |
+
</script>
|
71 |
+
<div id="checkout-review-submit">
|
72 |
+
<?php echo $this->getChildHtml('agreements') ?>
|
73 |
+
<div class="buttons-set" id="review-buttons-container">
|
74 |
+
<?php echo $this->getChildHtml('button') ?>
|
75 |
+
<span class="please-wait" id="review-please-wait" style="display:none;">
|
76 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo Mage::helper('core')->quoteEscape($this->__('Submitting order information...')) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Submitting order information...')) ?>" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
|
77 |
+
</span>
|
78 |
+
<p class="f-left"><?php echo $this->__('Forgot an Item?') ?> <a href="<?php echo $this->getUrl('checkout/cart') ?>" onclick="return confirm('<?php echo Mage::helper('core')->jsQuoteEscape($this->__('Are you sure you want to leave this page? You will need to go through the checkout steps again.')); ?>')"><?php echo $this->__('Edit Your Cart') ?></a></p>
|
79 |
+
</div>
|
80 |
+
<script type="text/javascript">
|
81 |
+
//<![CDATA[
|
82 |
+
review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder', array('form_key' => Mage::getSingleton('core/session')->getFormKey())) ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
|
83 |
+
//]]>
|
84 |
+
</script>
|
85 |
+
</div>
|
app/design/frontend/rwd/default/template/checkout/onepage/review/item.phtml
ADDED
@@ -0,0 +1,244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php $_item = $this->getItem()?>
|
28 |
+
<tr>
|
29 |
+
<td><h3 class="product-name"><?php echo $this->escapeHtml($this->getProductName()) ?></h3>
|
30 |
+
<?php if ($_options = $this->getOptionList()):?>
|
31 |
+
<dl class="item-options">
|
32 |
+
<?php foreach ($_options as $_option) : ?>
|
33 |
+
<?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
|
34 |
+
<dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
|
35 |
+
<dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
|
36 |
+
<?php if (isset($_formatedOptionValue['full_view'])): ?>
|
37 |
+
<div class="truncated_full_value">
|
38 |
+
<dl class="item-options">
|
39 |
+
<dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
|
40 |
+
<dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
|
41 |
+
</dl>
|
42 |
+
</div>
|
43 |
+
<?php endif; ?>
|
44 |
+
</dd>
|
45 |
+
<?php endforeach; ?>
|
46 |
+
</dl>
|
47 |
+
<?php endif;?>
|
48 |
+
<?php if ($addtInfoBlock = $this->getProductAdditionalInformationBlock()):?>
|
49 |
+
<?php echo $addtInfoBlock->setItem($_item)->toHtml() ?>
|
50 |
+
<?php endif;?>
|
51 |
+
</td>
|
52 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
53 |
+
<?php $_labelAppend = $this->helper('tax')->displayCartBothPrices() ? ' ' . $this->__('(Excl. Tax)') : ''; ?>
|
54 |
+
<td class="a-right" data-rwd-label="<?php echo $this->__('Price') . $_labelAppend ?>">
|
55 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
56 |
+
<span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
57 |
+
<?php else: ?>
|
58 |
+
<span class="cart-price">
|
59 |
+
<?php endif; ?>
|
60 |
+
|
61 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
62 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
|
63 |
+
<?php else: ?>
|
64 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
65 |
+
<?php endif; ?>
|
66 |
+
|
67 |
+
</span>
|
68 |
+
|
69 |
+
|
70 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
71 |
+
|
72 |
+
<div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
73 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
74 |
+
<small>
|
75 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
76 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
77 |
+
<?php endforeach; ?>
|
78 |
+
</small>
|
79 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
80 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
81 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></small></span><br />
|
82 |
+
<?php endforeach; ?>
|
83 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
84 |
+
<small>
|
85 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
86 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
87 |
+
<?php endforeach; ?>
|
88 |
+
</small>
|
89 |
+
<?php endif; ?>
|
90 |
+
</div>
|
91 |
+
|
92 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
93 |
+
<div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
94 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
|
95 |
+
</div>
|
96 |
+
<?php endif; ?>
|
97 |
+
<?php endif; ?>
|
98 |
+
</td>
|
99 |
+
<?php endif; ?>
|
100 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
101 |
+
<?php $_labelAppend = $this->helper('tax')->displayCartBothPrices() ? ' ' . $this->__('(Incl. Tax)') : ''; ?>
|
102 |
+
<td data-rwd-label="<?php echo $this->__('Price') . $_labelAppend ?>">
|
103 |
+
<?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
|
104 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
105 |
+
<span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
106 |
+
<?php else: ?>
|
107 |
+
<span class="cart-price">
|
108 |
+
<?php endif; ?>
|
109 |
+
|
110 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
111 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
|
112 |
+
<?php else: ?>
|
113 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
|
114 |
+
<?php endif; ?>
|
115 |
+
|
116 |
+
</span>
|
117 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
118 |
+
|
119 |
+
<div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
120 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
121 |
+
<small>
|
122 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
123 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
124 |
+
<?php endforeach; ?>
|
125 |
+
</small>
|
126 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
127 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
128 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
129 |
+
<?php endforeach; ?>
|
130 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
131 |
+
<small>
|
132 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
133 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
134 |
+
<?php endforeach; ?>
|
135 |
+
</small>
|
136 |
+
<?php endif; ?>
|
137 |
+
</div>
|
138 |
+
|
139 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
140 |
+
<div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
141 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
|
142 |
+
</div>
|
143 |
+
<?php endif; ?>
|
144 |
+
<?php endif; ?>
|
145 |
+
</td>
|
146 |
+
<?php endif; ?>
|
147 |
+
<td class="a-center" data-rwd-label="<?php echo $this->__('Qty') ?>"><?php echo $_item->getQty() ?></td>
|
148 |
+
<!-- sub total starts here -->
|
149 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
150 |
+
<?php $_labelAppend = $this->helper('tax')->displayCartBothPrices() ? ' ' . $this->__('(Excl. Tax)') : ''; ?>
|
151 |
+
<td class="a-right" data-rwd-label="<?php echo $this->__('Subtotal') . $_labelAppend ?>">
|
152 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
153 |
+
<span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
154 |
+
<?php else: ?>
|
155 |
+
<span class="cart-price">
|
156 |
+
<?php endif; ?>
|
157 |
+
|
158 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
159 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
|
160 |
+
<?php else: ?>
|
161 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
|
162 |
+
<?php endif; ?>
|
163 |
+
|
164 |
+
</span>
|
165 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
166 |
+
|
167 |
+
<div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
168 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
169 |
+
<small>
|
170 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
171 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
|
172 |
+
<?php endforeach; ?>
|
173 |
+
</small>
|
174 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
175 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
176 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></small></span><br />
|
177 |
+
<?php endforeach; ?>
|
178 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
179 |
+
<small>
|
180 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
181 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span><br />
|
182 |
+
<?php endforeach; ?>
|
183 |
+
</small>
|
184 |
+
<?php endif; ?>
|
185 |
+
</div>
|
186 |
+
|
187 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
188 |
+
<div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
189 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
|
190 |
+
</div>
|
191 |
+
<?php endif; ?>
|
192 |
+
<?php endif; ?>
|
193 |
+
</td>
|
194 |
+
<?php endif; ?>
|
195 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
196 |
+
<?php $_labelAppend = $this->helper('tax')->displayCartBothPrices() ? ' ' . $this->__('(Incl. Tax)') : ''; ?>
|
197 |
+
<td data-rwd-label="<?php echo $this->__('Subtotal') . $_labelAppend ?>">
|
198 |
+
<?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
|
199 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
200 |
+
<span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
201 |
+
<?php else: ?>
|
202 |
+
<span class="cart-price">
|
203 |
+
<?php endif; ?>
|
204 |
+
|
205 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
206 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?>
|
207 |
+
<?php else: ?>
|
208 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
|
209 |
+
<?php endif; ?>
|
210 |
+
|
211 |
+
</span>
|
212 |
+
|
213 |
+
|
214 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
215 |
+
|
216 |
+
<div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
217 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
218 |
+
<small>
|
219 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
220 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
|
221 |
+
<?php endforeach; ?>
|
222 |
+
</small>
|
223 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
224 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
225 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></small></span><br />
|
226 |
+
<?php endforeach; ?>
|
227 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
228 |
+
<small>
|
229 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
230 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span><br />
|
231 |
+
<?php endforeach; ?>
|
232 |
+
</small>
|
233 |
+
<?php endif; ?>
|
234 |
+
</div>
|
235 |
+
|
236 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
237 |
+
<div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
238 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
|
239 |
+
</div>
|
240 |
+
<?php endif; ?>
|
241 |
+
<?php endif; ?>
|
242 |
+
</td>
|
243 |
+
<?php endif; ?>
|
244 |
+
</tr>
|
app/design/frontend/rwd/default/template/checkout/onepage/shipping.phtml
ADDED
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package rwd_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<form action="" id="co-shipping-form">
|
28 |
+
<ul class="form-list">
|
29 |
+
<?php if ($this->customerHasAddresses()): ?>
|
30 |
+
<li class="wide">
|
31 |
+
<label for="shipping-address-select"><?php echo $this->__('Select a shipping address from your address book or enter a new address.') ?></label>
|
32 |
+
<div class="input-box">
|
33 |
+
<?php echo $this->getAddressesHtmlSelect('shipping') ?>
|
34 |
+
</div>
|
35 |
+
</li>
|
36 |
+
<?php endif ?>
|
37 |
+
<li id="shipping-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif ?> class="scaffold-form">
|
38 |
+
<div class="fieldset">
|
39 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
40 |
+
<input type="hidden" name="shipping[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="shipping:address_id" />
|
41 |
+
<ul>
|
42 |
+
<li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())->setFieldIdFormat('shipping:%s')->setFieldNameFormat('shipping[%s]')->setFieldParams('onchange="shipping.setSameAsBilling(false)"')->toHtml() ?></li>
|
43 |
+
<li class="fields">
|
44 |
+
<div class="fields">
|
45 |
+
<label for="shipping:company"><?php echo $this->__('Company') ?></label>
|
46 |
+
<div class="input-box">
|
47 |
+
<input type="text" id="shipping:company" name="shipping[company]" value="<?php echo $this->escapeHtml($this->getAddress()->getCompany()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Company')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('company') ?>" onchange="shipping.setSameAsBilling(false);" />
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
</li>
|
51 |
+
<?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
|
52 |
+
<li class="wide">
|
53 |
+
<label for="shipping:street1" class="required"><em>*</em><?php echo $this->__('Address') ?></label>
|
54 |
+
<div class="input-box">
|
55 |
+
<input type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Street Address')) ?>" name="shipping[street][]" id="shipping:street1" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(1)) ?>" class="input-text <?php echo $_streetValidationClass ?>" onchange="shipping.setSameAsBilling(false);" />
|
56 |
+
</div>
|
57 |
+
</li>
|
58 |
+
<?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
59 |
+
<?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
|
60 |
+
<li class="wide">
|
61 |
+
<label for="billing:street<?php echo $_i ?>"><?php echo $this->__('Address') ?> <?php echo $_i ?></label>
|
62 |
+
<div class="input-box">
|
63 |
+
<input type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Street Address %s', $_i)) ?>" name="shipping[street][]" id="shipping:street<?php echo $_i ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet($_i)) ?>" class="input-text <?php echo $_streetValidationClass ?>" onchange="shipping.setSameAsBilling(false);" />
|
64 |
+
</div>
|
65 |
+
</li>
|
66 |
+
<?php endfor; ?>
|
67 |
+
<?php if ($this->helper('customer/address')->isVatAttributeVisible()) : ?>
|
68 |
+
<li class="wide">
|
69 |
+
<label for="billing:vat_id"><?php echo $this->__('VAT Number'); ?></label>
|
70 |
+
<div class="input-box">
|
71 |
+
<input type="text" id="shipping:vat_id" name="shipping[vat_id]" value="<?php echo $this->escapeHtml($this->getAddress()->getVatId()); ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('VAT Number')); ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('vat_id') ?>" />
|
72 |
+
</div>
|
73 |
+
</li>
|
74 |
+
<?php endif; ?>
|
75 |
+
<li class="fields">
|
76 |
+
<div class="field">
|
77 |
+
<label for="shipping:city" class="required"><em>*</em><?php echo $this->__('City/Suburb') ?></label>
|
78 |
+
<div class="input-box">
|
79 |
+
<input type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('City')) ?>" name="shipping[city]" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="shipping:city" onchange="shipping.setSameAsBilling(false);" />
|
80 |
+
</div>
|
81 |
+
</div>
|
82 |
+
<div class="field">
|
83 |
+
<label for="shipping:region" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
84 |
+
<div class="input-box">
|
85 |
+
<select id="shipping:region_id" name="shipping[region_id]" title="<?php echo Mage::helper('core')->quoteEscape($this->__('State/Province')) ?>" class="validate-select" style="display:none;">
|
86 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
87 |
+
</select>
|
88 |
+
<script type="text/javascript">
|
89 |
+
//<![CDATA[
|
90 |
+
$('shipping:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
91 |
+
//]]>
|
92 |
+
</script>
|
93 |
+
<input type="text" id="shipping:region" name="shipping[region]" value="<?php echo $this->escapeHtml($this->getAddress()->getRegion()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('State/Province')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" style="display:none;" />
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
</li>
|
97 |
+
<li class="fields">
|
98 |
+
<div class="field">
|
99 |
+
<label for="shipping:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
100 |
+
<div class="input-box">
|
101 |
+
<input type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Zip/Postal Code')) ?>" name="shipping[postcode]" id="shipping:postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" onchange="shipping.setSameAsBilling(false);" />
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
<div class="field">
|
105 |
+
<label for="shipping:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
106 |
+
<div class="input-box">
|
107 |
+
<?php echo $this->getCountryHtmlSelect('shipping') ?>
|
108 |
+
</div>
|
109 |
+
</div>
|
110 |
+
</li>
|
111 |
+
<li class="fields">
|
112 |
+
<div class="field">
|
113 |
+
<label for="shipping:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
114 |
+
<div class="input-box">
|
115 |
+
<input type="tel" name="shipping[telephone]" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Telephone')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="shipping:telephone" onchange="shipping.setSameAsBilling(false);" />
|
116 |
+
</div>
|
117 |
+
</div>
|
118 |
+
<div class="field">
|
119 |
+
<label for="shipping:fax"><?php echo $this->__('Fax') ?></label>
|
120 |
+
<div class="input-box">
|
121 |
+
<input type="tel" name="shipping[fax]" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Fax')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" id="shipping:fax" onchange="shipping.setSameAsBilling(false);" />
|
122 |
+
</div>
|
123 |
+
</div>
|
124 |
+
</li>
|
125 |
+
<?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
|
126 |
+
<li class="control">
|
127 |
+
<input type="checkbox" name="shipping[save_in_address_book]" value="1" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Save in address book')) ?>" id="shipping:save_in_address_book" onchange="shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="shipping:save_in_address_book"><?php echo $this->__('Save in address book') ?></label></li>
|
128 |
+
<?php else:?>
|
129 |
+
<li class="no-display"><input type="hidden" name="shipping[save_in_address_book]" value="1" /></li>
|
130 |
+
<?php endif;?>
|
131 |
+
</ul>
|
132 |
+
</div>
|
133 |
+
</li>
|
134 |
+
<li class="control">
|
135 |
+
<input type="checkbox" name="shipping[same_as_billing]" id="shipping:same_as_billing" value="1"<?php if($this->getAddress()->getSameAsBilling()): ?> checked="checked"<?php endif; ?> title="<?php echo Mage::helper('core')->quoteEscape($this->__('Use Billing Address')) ?>" onclick="shipping.setSameAsBilling(this.checked)" class="checkbox" /><label for="shipping:same_as_billing"><?php echo $this->__('Use Billing Address') ?></label>
|
136 |
+
</li>
|
137 |
+
</ul>
|
138 |
+
<div class="buttons-set" id="shipping-buttons-container">
|
139 |
+
<p class="back-link"><a href="#" onclick="checkout.back(); return false;"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
140 |
+
<button type="button" class="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Continue')) ?>" onclick="shipping.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
141 |
+
<span id="shipping-please-wait" class="please-wait" style="display:none;">
|
142 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo Mage::helper('core')->quoteEscape($this->__('Loading next step...')) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Loading next step...')) ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
|
143 |
+
</span>
|
144 |
+
</div>
|
145 |
+
</form>
|
146 |
+
<script type="text/javascript">
|
147 |
+
//<![CDATA[
|
148 |
+
var shipping = new Shipping('co-shipping-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveShipping') ?>',
|
149 |
+
'<?php echo $this->getUrl('checkout/onepage/shippingMethod') ?>');
|
150 |
+
var shippingForm = new VarienForm('co-shipping-form');
|
151 |
+
shippingForm.extraChildParams = ' onchange="shipping.setSameAsBilling(false);"';
|
152 |
+
//shippingForm.setElementsRelation('shipping:country_id', 'shipping:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo Mage::helper('core')->jsQuoteEscape($this->__('Select State/Province...')) ?>');
|
153 |
+
$('shipping-address-select') && shipping.newAddress(!$('shipping-address-select').value);
|
154 |
+
|
155 |
+
var shippingRegionUpdater = new RegionUpdater('shipping:country_id', 'shipping:region', 'shipping:region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'shipping:postcode');
|
156 |
+
//]]>
|
157 |
+
</script>
|
app/design/frontend/rwd/default/template/ship/shipping.phtml
CHANGED
@@ -73,7 +73,8 @@
|
|
73 |
</script>
|
74 |
|
75 |
<?php
|
76 |
-
|
|
|
77 |
$tmp_cart_locality_val = $_COOKIE['cart_locality'];
|
78 |
?>
|
79 |
|
@@ -97,18 +98,32 @@
|
|
97 |
<?php echo $this->getChildHtml('global_messages') ?>
|
98 |
<div class="shipping-form">
|
99 |
<form action="<?php echo $this->getUrl('checkout/cart/estimatePost') ?>" method="post" id="shipping-zip-form">
|
100 |
-
<p><?php echo $this->__('Enter your destination to get a shipping
|
101 |
<ul class="form-list">
|
102 |
<li>
|
103 |
<label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
104 |
<div class="input-box">
|
105 |
-
|
106 |
<option value="AU" selected="selected" >Australia</option>
|
107 |
-
</select
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
</div>
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
</li>
|
113 |
<?php //if($this->getStateActive()): ?>
|
114 |
<?php /*?>
|
@@ -274,7 +289,7 @@
|
|
274 |
<?php else: ?>
|
275 |
<input name="estimate_method" type="radio" value="<?php echo $abc['code']; //$this->escapeHtml($_rate->getCode()) ?>" id="s_method_<?php echo $abc['code'] ?>"<?php if($abc['code']===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio" />
|
276 |
<label for="s_method_<?php echo $abc['code']; ?>">
|
277 |
-
<?php
|
278 |
$display_showcouriername = Mage::getStoreConfig('transdirect_section/displayoptions/showcouriernames');
|
279 |
if($display_showcouriername == '1'){
|
280 |
echo $abc['method_title'];
|
@@ -287,7 +302,7 @@
|
|
287 |
if($abc['method_title']=='mainfreight'){echo $this->__("Mainfreight"); }
|
288 |
if($abc['method_title']=='northline'){echo $this->__("Northline"); }
|
289 |
*/
|
290 |
-
|
291 |
//$this->escapeHtml($_rate->getMethodTitle());
|
292 |
}
|
293 |
?>
|
@@ -303,7 +318,7 @@
|
|
303 |
</label>
|
304 |
<?php endif ?>
|
305 |
</li>
|
306 |
-
<?php }
|
307 |
endforeach;
|
308 |
// die('rate'); ?>
|
309 |
<?php /*?> <li>
|
@@ -324,15 +339,19 @@
|
|
324 |
//<![CDATA[
|
325 |
var coShippingMethodForm = new VarienForm('shipping-zip-form');
|
326 |
var countriesWithOptionalZip = <?php echo $this->helper('directory')->getCountriesWithOptionalZip(true) ?>;
|
|
|
327 |
coShippingMethodForm.submit = function () {
|
328 |
var country = $F('country');
|
329 |
-
var optionalZip =
|
330 |
-
|
331 |
-
|
|
|
|
|
|
|
332 |
if (countriesWithOptionalZip[i] == country) {
|
333 |
optionalZip = true;
|
334 |
}
|
335 |
-
}
|
336 |
if (optionalZip) {
|
337 |
$('postcode').removeClassName('required-entry');
|
338 |
}
|
@@ -345,11 +364,11 @@
|
|
345 |
else {
|
346 |
$('region').addClassName('required-entry');
|
347 |
}
|
348 |
-
*/
|
349 |
return VarienForm.prototype.submit.bind(coShippingMethodForm)();
|
350 |
}
|
351 |
//]]>
|
352 |
-
</script>
|
353 |
</div>
|
354 |
</div>
|
355 |
|
73 |
</script>
|
74 |
|
75 |
<?php
|
76 |
+
|
77 |
+
$tmp_cart_postcode_val = $_COOKIE['cart_postocde'];
|
78 |
$tmp_cart_locality_val = $_COOKIE['cart_locality'];
|
79 |
?>
|
80 |
|
98 |
<?php echo $this->getChildHtml('global_messages') ?>
|
99 |
<div class="shipping-form">
|
100 |
<form action="<?php echo $this->getUrl('checkout/cart/estimatePost') ?>" method="post" id="shipping-zip-form">
|
101 |
+
<p><?php echo $this->__('Enter your destination to get a shipping estimatenm1.') ?></p>
|
102 |
<ul class="form-list">
|
103 |
<li>
|
104 |
<label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
105 |
<div class="input-box">
|
106 |
+
<!--<select name="country_id" id="country" class="validate-select" title="Country" >
|
107 |
<option value="AU" selected="selected" >Australia</option>
|
108 |
+
</select>-->
|
109 |
+
|
110 |
+
<!-- <select name="country_id" id="country" class="validate-select" title="Country">-->
|
111 |
+
<!-- --><?php //$country_list = Mage::getResourceModel('directory/country_collection')
|
112 |
+
// ->loadData()
|
113 |
+
// ->toOptionArray(false) ?>
|
114 |
+
<!-- --><?php //if (count($country_list) > 0){ ?>
|
115 |
+
<!-- <option value="">Please Select</option>-->
|
116 |
+
<!-- --><?php //foreach($country_list as $country){ ?>
|
117 |
+
<!-- <option value="--><?php //echo $country['value'] ?><!--">-->
|
118 |
+
<!-- --><?php //echo $country['label'] ?>
|
119 |
+
<!-- </option>-->
|
120 |
+
<!-- --><?php //} ?>
|
121 |
+
<!-- --><?php //}?>
|
122 |
+
<!-- </select>-->
|
123 |
</div>
|
124 |
+
<div class="input-box">
|
125 |
+
<?php echo Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect($this->getEstimateCountryId()); ?>
|
126 |
+
</div>
|
127 |
</li>
|
128 |
<?php //if($this->getStateActive()): ?>
|
129 |
<?php /*?>
|
289 |
<?php else: ?>
|
290 |
<input name="estimate_method" type="radio" value="<?php echo $abc['code']; //$this->escapeHtml($_rate->getCode()) ?>" id="s_method_<?php echo $abc['code'] ?>"<?php if($abc['code']===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio" />
|
291 |
<label for="s_method_<?php echo $abc['code']; ?>">
|
292 |
+
<?php
|
293 |
$display_showcouriername = Mage::getStoreConfig('transdirect_section/displayoptions/showcouriernames');
|
294 |
if($display_showcouriername == '1'){
|
295 |
echo $abc['method_title'];
|
302 |
if($abc['method_title']=='mainfreight'){echo $this->__("Mainfreight"); }
|
303 |
if($abc['method_title']=='northline'){echo $this->__("Northline"); }
|
304 |
*/
|
305 |
+
|
306 |
//$this->escapeHtml($_rate->getMethodTitle());
|
307 |
}
|
308 |
?>
|
318 |
</label>
|
319 |
<?php endif ?>
|
320 |
</li>
|
321 |
+
<?php }
|
322 |
endforeach;
|
323 |
// die('rate'); ?>
|
324 |
<?php /*?> <li>
|
339 |
//<![CDATA[
|
340 |
var coShippingMethodForm = new VarienForm('shipping-zip-form');
|
341 |
var countriesWithOptionalZip = <?php echo $this->helper('directory')->getCountriesWithOptionalZip(true) ?>;
|
342 |
+
|
343 |
coShippingMethodForm.submit = function () {
|
344 |
var country = $F('country');
|
345 |
+
var optionalZip = true;
|
346 |
+
var optionregion = false;
|
347 |
+
if(country == 'AU' || country == 'NZ'){
|
348 |
+
optionalZip = false;
|
349 |
+
}
|
350 |
+
/*for (i=0; i < countriesWithOptionalZip.length; i++) {
|
351 |
if (countriesWithOptionalZip[i] == country) {
|
352 |
optionalZip = true;
|
353 |
}
|
354 |
+
}*/
|
355 |
if (optionalZip) {
|
356 |
$('postcode').removeClassName('required-entry');
|
357 |
}
|
364 |
else {
|
365 |
$('region').addClassName('required-entry');
|
366 |
}
|
367 |
+
*/
|
368 |
return VarienForm.prototype.submit.bind(coShippingMethodForm)();
|
369 |
}
|
370 |
//]]>
|
371 |
+
</script>
|
372 |
</div>
|
373 |
</div>
|
374 |
|
package.xml
CHANGED
@@ -1,46 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Transdirect_Shipping</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
-
<license
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>This Extension provides delivery quotes from Australia's largest Carriers in a Seamless checkout process.</summary>
|
10 |
-
<description>The Transdirect Shipping Extension give you access to Australia's Largest Courier and Freight
|
11 |
-
|
12 |
-
Companies, and allows your clients a seamless checkout process.
|
13 |
-

|
14 |
-
The Main Features of this Extension are:
|
15 |
-

|
16 |
-
- Free to use.
|
17 |
-

|
18 |
-
- Simple Configuration.
|
19 |
-

|
20 |
-
- Great Shipping Rates from Toll Ipec, Fastway, Couriers Please, Toll Priority, Northline, Mainfreight 
|
21 |
-

|
22 |
-
and more.
|
23 |
-

|
24 |
-
- Seamless Checkout Process for your clients.
|
25 |
-

|
26 |
-
- Multiple Quote Options.
|
27 |
-

|
28 |
-
- Insurance Options available.
|
29 |
-

|
30 |
-
---
|
31 |
-

|
32 |
-
This extension will allow your clients to get accurate shipping quotes australia wide via the transdirect API.
|
33 |
-

|
34 |
-
---
|
35 |
-

|
36 |
-
To find out more about Transdirect's service, please contact sales@transdirect.com.au.
|
37 |
-

|
38 |
-
Transdirect - Delivering Solutions.</description>
|
39 |
-
<notes>Fixed error/issues</notes>
|
40 |
<authors><author><name>Joshua Oliver</name><user>Josh</user><email>josh+transdirect@bywave.com.au</email></author></authors>
|
41 |
-
<date>2016-
|
42 |
-
<time>
|
43 |
-
<contents><target name="
|
44 |
<compatible/>
|
45 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
46 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Transdirect_Shipping</name>
|
4 |
+
<version>1.1.5</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license>Open Software License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>This Extension provides delivery quotes from Australia's largest Carriers in a Seamless checkout process.</summary>
|
10 |
+
<description>The Transdirect Shipping Extension give you access to Australia's Largest Courier and Freight</description>
|
11 |
+
<notes>This Extension provides delivery quotes from Australia's largest Carriers in a Seamless checkout process.</notes>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
<authors><author><name>Joshua Oliver</name><user>Josh</user><email>josh+transdirect@bywave.com.au</email></author></authors>
|
13 |
+
<date>2016-11-10</date>
|
14 |
+
<time>04:30:37</time>
|
15 |
+
<contents><target name="mage"><dir name="."><dir name="app"><dir name="code"><dir name="local"><dir name="Transdirect"><dir name="Ship"><dir name="Block"><dir name="Adminhtml"><file name="Grid.php" hash="fd7f272097ff678f7a7696c179f2a968"/><dir name="System"><dir name="Config"><file name="Date.php" hash="ad27b62a061cde0e1a8f05e06d960d81"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="413ad75aa33a5df85f230c6a4c955fde"/></dir><file name=".DS_Store" hash="b5d686c6ef525f9d00a5bd6760fb7600"/></dir><file name="Country.php" hash="a0f91831dc1ac4330e1d9e0ff548ddf5"/><file name="Couriers.php" hash="65de59dcb8df329cc905568b0d2806d2"/><dir name="Custom"><file name="Order.php" hash="63d5a214f9ff005e8e131a755d84ebc2"/></dir><file name="Enablecourier.php" hash="5db639568161e90f0ff66a3facae7615"/><file name="Quotes.php" hash="0e539cc0a2831069789a3d9b3f647772"/><file name="Ship.php" hash="27112cddd22559ebd1f3d6b7abf64a3d"/><file name="Unitcourier.php" hash="9504d24c44a198384e4309d03d98a24b"/><file name=".DS_Store" hash="e1c6e725f9c8716b9ba372aea2582c25"/></dir><dir name="Helper"><file name="Data.php" hash="0252ec0e51cfda0a3f23ddf359f75202"/></dir><dir name="Model"><dir name="Carrier"><file name="Transdirect.php" hash="399264959f73e95f414923554dc1311a"/></dir><file name="Observer.php" hash="190f8f9662de5e72ae4dcd405133ca11"/><dir name="Resource"><file name="Setup.php" hash="190fa03ddd1b3d6fff1b930122ea189b"/></dir><dir name="Source"><file name="AddressType.php" hash="c3f1548a42e4f7a2ecc42d2470837707"/><file name="Couriers.php" hash="931df1e5cb4ef15cd8d6ccc6b8a940ab"/><file name="OrderStatus.php" hash="654d24a98571156e0b31f24f910182ee"/><file name="Quotes.php" hash="d382cf07326522786c4f929bbb5e228f"/><file name="Unit.php" hash="31307975b626a49d0d06078cbee1ecd6"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Serialized.php" hash="b2eae87914abb9aac6606cfc09f4b2e3"/></dir><file name=".DS_Store" hash="17065e11290b0f019609037f64bb45c4"/></dir><file name=".DS_Store" hash="16da9705f2c6c41bc4f59460dc80842a"/></dir><file name=".DS_Store" hash="3831c8a3aac8444857f0035951233456"/></dir><dir name="controllers"><file name="IndexController.php" hash="beae45f2433619d17379421ee2b8289c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="79534cef195241413dc4503010a9ad18"/><file name="config.xml" hash="1208f298c6c8ac4c612301cb74964897"/><file name="system.xml" hash="c0b62027044a84cf68d423f688786b23"/></dir><dir name="sql"><dir name="ship_setup_catalog"><file name="mysql4-install-0.1.0.php" hash="ff4817bf11abbf293862311418d86e26"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="ship_setup_sales"><file name="mysql4-install-0.1.0.php" hash="3ab28c009fa43907f495c4de18085274"/><file name=".DS_Store" hash="4233c80afd944d59bf445e108a3e2176"/></dir><file name=".DS_Store" hash="47109a1eb7526e20b8b7590dc2e563c5"/></dir></dir></dir></dir><dir name="design"><dir name="frontend"><dir name="rwd"><dir name="default"><dir name="layout"><file name="ship.xml" hash=""/></dir></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Transdirect_Ship.xml" hash="fbc66a2834c10ad65dd55a7dd4bea798"/></dir></dir><dir name="design"><dir name="frontend"><dir name="rwd"><dir name="default"><dir name="template"><dir name="ship"><dir name="checkout"><dir name="cart"><file name="totals.phtml" hash="96e28634c4a68102067349ef0149cd32"/></dir></dir><dir name="footer"><file name="js.phtml" hash="729153a7b05e9e397ad96abbda8e3a84"/></dir><file name="product_shipping.phtml" hash="f86fc4817054df798c0549970bc9dc16"/><file name="shipping.phtml" hash="66db86af6b0512bc169e74fac2c9bd48"/><file name=".DS_Store" hash="a3c48e138e8da71e70b32f3fda1c51e5"/></dir><dir name="checkout"><dir name="cart"><file name="coupon.phtml" hash="526bb239b488e0d73797f0443691d585"/><file name="crosssell.phtml" hash="2b22de7b345d7d20af7b04a1f90ef303"/><dir name="item"><dir name="configure"><file name="updatecart.phtml" hash="4996c54d99cd900b3964abb042d08583"/></dir><file name="default.phtml" hash="0fc58a47b3a97adbe16aa5af7d764145"/></dir><dir name="minicart"><file name="default.phtml" hash="deb5094061b39db94f25a82911309cf7"/><file name="items.phtml" hash="0360c7e52ba3b01a42bc90895c494468"/></dir><file name="minicart.phtml" hash="830cc75dcca919207342f1d54edf6c99"/><dir name="render"><file name="default.phtml" hash="2c8db30bc41661ff992823c36094f94c"/><file name="simple.phtml" hash="74a3812cea2741a595b61b7c6c943175"/></dir><file name="shipping.phtml" hash="bc5a3ad4d5f1de5b9eee663662fe1229"/><dir name="sidebar"><file name="default.phtml" hash="a87fb59bceb06ebe065db3e2d7d0b2ec"/></dir><file name="sidebar.phtml" hash="21afe86210399d6f3457c3629d5c08de"/></dir><file name="cart.phtml" hash="138c068744145c561d0b0a433c56ac14"/><dir name="multishipping"><file name="addresses.phtml" hash="484b97b58a8f1ee8064bdd59c4fc8485"/><file name="billing.phtml" hash="0383e3b6457eb7b24b7345053a7227d8"/><dir name="item"><file name="default.phtml" hash="f1f7ac4e7c77243b2acb62b46284f7de"/></dir><dir name="overview"><file name="item.phtml" hash="3f5e82f1f0a21c00c2e868ab660cefcb"/></dir><file name="overview.phtml" hash="24e571f97e1c45292cc7d087e17e9c70"/></dir><dir name="onepage"><file name="billing.phtml" hash="a5137fdf7f68da5c03fc8fd0077699b3"/><file name="custom-shipping.phtml" hash="88930ea6f21c47ef49243c55e28b2984"/><file name="payment.phtml" hash="1bb089503f84acfb20e6a5a8207e76a1"/><file name="progress.phtml" hash="db98212731760ba4b91494480fa41edd"/><dir name="review"><file name="info.phtml" hash="1e4e125f191b33bb1644315e6634fd92"/><file name="item.phtml" hash="47fdce34a156a1b25af902e7adf5f382"/></dir><file name="shipping.phtml" hash="4f1cdeb9ae4dc43c79f8482773681181"/></dir><file name="onepage.phtml" hash="5eb2f0c10946e6fbc7195f39613d15c1"/></dir><dir name="persistent"><dir name="checkout"><file name="billing.phtml" hash=""/></dir></dir></dir><dir name="layout"><file name="ship.xml" hash="7b6b6dcee52e6af102111b227da4b16d"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="checkout"><dir name="onepage"><file name="shipping.phtml" hash="e13cf76a57a588f44e84ff12a56d2e46"/><file name=".DS_Store" hash="62c890ce978711988e86f245231d7b28"/></dir><file name="onepage.tar.gz" hash="80baed4204bd86719619a616d828c5c7"/><file name=".DS_Store" hash="63ad22dc3e1a524e92945f9fbdf80e08"/></dir><dir name="ship"><dir name="checkout"><dir name="cart"><file name="totals.phtml" hash="96e28634c4a68102067349ef0149cd32"/></dir></dir><dir name="footer"><file name="js.phtml" hash="729153a7b05e9e397ad96abbda8e3a84"/></dir><file name="product_shipping.phtml" hash="a56e35a53ddf0484bc633d5d54fc9ea3"/><file name="shipping.phtml" hash="d885565bdd58f507fbbb4e0c6254c66a"/></dir></dir><dir name="layout"><file name="ship.xml" hash="7b6b6dcee52e6af102111b227da4b16d"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="system"><dir name="config"><dir name="form"><dir name="field"><file name="couriersarray.phtml" hash="44fab4c7b846230f8802ae71706e4377"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="skin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="ship"><dir name="css"><file name="jquery.autoSuggest.css" hash="e976e6a48799083cf955aa5373d2838c"/></dir><dir name="js"><file name="jquery-1.11.0.js" hash="573025dfa115bc306dac7dfa18153675"/><file name="jquery.autoSuggest.js" hash="b1833197f28b1321b565b3c56b8a1403"/><file name="location_script.js" hash="9238343017e0cb8552bc7b02c6ad2c04"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="ship"><dir name="css"><file name="jquery.autoSuggest.css" hash="e976e6a48799083cf955aa5373d2838c"/></dir><dir name="js"><file name="jquery-1.11.0.js" hash="573025dfa115bc306dac7dfa18153675"/><file name="jquery.autoSuggest.js" hash="b1833197f28b1321b565b3c56b8a1403"/><file name="location_script.js" hash="9238343017e0cb8552bc7b02c6ad2c04"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|