PluginProbe
Welcart e-Commerce / 1.3.4
Welcart e-Commerce v1.3.4
2.12.4 2.12.3 2.11.35 2.12.2 2.12.1 2.11.34 2.11.33 2.11.32 2.11.31 2.11.30 1.3.16 1.3.17 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 All 292 releases
usc-e-shop / templates / cart / cart.php

cart.php in Welcart e-Commerce 1.3.4, at templates/cart/cart.php

93 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 global $usces_gp;
3
4 $html = '<div id="inside-cart">
5
6 <div class="usccart_navi">
7 <ol class="ucart">
8 <li class="ucart usccart usccart_cart">' . __('1.Cart','usces') . '</li>
9 <li class="ucart usccustomer">' . __('2.Customer Info','usces') . '</li>
10 <li class="ucart uscdelivery">' . __('3.Deli. & Pay.','usces') . '</li>
11 <li class="ucart uscconfirm">' . __('4.Confirm','usces') . '</li>
12 </ol>
13 </div>';
14
15 $html .= '<div class="header_explanation">';
16 $header = '';
17 $html .= apply_filters('usces_filter_cart_page_header', $header);
18 $html .= '</div>';
19
20 $html .= '<div class="error_message">' . $this->error_message . '</div>
21
22 <form action="' . USCES_CART_URL . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}">';
23
24 if( usces_is_cart() ) {
25
26 $html .= '<div id="cart">';
27
28 $button = '<div class="upbutton">' . __('Press the `update` button when you change the amount of items.','usces') . '<input name="upButton" type="submit" value="' . __('Quantity renewal','usces') . '" onclick="return uscesCart.upCart()" /></div>';
29 $html .= apply_filters('usces_filter_cart_upbutton', $button);
30
31 $html .= '<table cellspacing="0" id="cart_table">
32 <thead>
33 <tr>
34 <th scope="row" class="num">No.</th>
35 <th class="thumbnail"> </th>
36 <th>' . __('item name','usces') . '</th>
37 <th class="quantity">' . __('Unit price','usces') . '</th>
38 <th class="quantity">' . __('Quantity','usces') . '</th>
39 <th class="subtotal">' . __('Amount','usces') . usces_guid_tax('return') . '</th>
40 <th class="stock">' . __('stock status','usces') . '</th>
41 <th class="action"> </th>
42 </tr>
43 </thead>
44 <tbody>';
45
46 $html .= usces_get_cart_rows('return');
47
48 $html .= '</tbody>
49 <tfoot>
50 <tr>
51 <th colspan="5" scope="row" class="aright">' . __('total items','usces') . usces_guid_tax('return') . '</th>
52 <th class="aright">' . usces_crform($this->get_total_price(), true, false, 'return') . '</th>
53 <th colspan="2">&nbsp;</th>
54 </tr>
55 </tfoot>
56 </table>
57 <div class="currency_code">' . __('Currency','usces') . ' : ' . __(usces_crcode( 'return' ), 'usces') . '</div>';
58 if( isset($usces_gp) && $usces_gp ) {
59 $Business_pack_discount = '<img src="' . get_template_directory_uri() . '/images/gp.gif" alt="' . __('Business package discount','usces') . '" /><br />' . __('The price with this mark applys to Business pack discount.','usces');
60 $html .= apply_filters('usces_filter_itemGpExp_cart_message', $Business_pack_discount);
61 }
62 $html .= '</div>';
63
64 } else {
65 $html .= '<div class="no_cart">' . __('There are no items in your cart.','usces') . '</div>';
66 }
67
68 $html .= $content;
69
70 $html .= '<div class="send">';
71 if($this->use_js){
72 $html .= '<input name="previous" type="button" id="previouscart" class="continue_shopping_button" value="' . __('continue shopping','usces') . '"' . apply_filters('usces_filter_cart_prebutton', ' onclick="uscesCart.previousCart();"') . ' />&nbsp;&nbsp;';
73 if( usces_is_cart() ) {
74 $html .= '<input name="customerinfo" type="submit" class="to_customerinfo_button" value="' . __(' Next ','usces') . '"' . apply_filters('usces_filter_cart_nextbutton', ' onclick="return uscesCart.cartNext();"') . ' />';
75 }
76 }else{
77 $html .= '<a href="' . get_home_url() . '" class="continue_shopping_button">' . __('continue shopping','usces') . '</a>&nbsp;&nbsp;';
78 if( usces_is_cart() ) {
79 $html .= '<input name="customerinfo" type="submit" class="to_customerinfo_button" value="' . __(' Next ','usces') . '"' . apply_filters('usces_filter_cart_nextbutton', NULL) . ' />';
80 }
81 }
82 $html .= '</div>';
83 $html = apply_filters('usces_filter_cart_inform', $html);
84 $html .= '</form>';
85
86 $html .= '<div class="footer_explanation">';
87 $footer = '';
88 $html .= apply_filters('usces_filter_cart_page_footer', $footer);
89 $html .= '</div>';
90
91 $html .= '</div>';
92 ?>
93