-
Notifications
You must be signed in to change notification settings - Fork 0
/
order-opc.tpl
111 lines (106 loc) · 4.33 KB
/
order-opc.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{*
* 2007-2012 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <[email protected]>
* @copyright 2007-2012 PrestaShop SA
* @version Release: $Revision: 6594 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if $opc}
{assign var="back_order_page" value="order-opc.php"}
{else}
{assign var="back_order_page" value="order.php"}
{/if}
{if $PS_CATALOG_MODE}
{capture name=path}{l s='Your shopping cart'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<h2 id="cart_title">{l s='Your shopping cart'}</h2>
<p class="warning">{l s='Your new order was not accepted.'}</p>
{else}
<script type="text/javascript">
// <![CDATA[
var imgDir = '{$img_dir}';
var authenticationUrl = '{$link->getPageLink("authentication", true)}';
var orderOpcUrl = '{$link->getPageLink("order-opc", true)}';
var historyUrl = '{$link->getPageLink("history", true)}';
var guestTrackingUrl = '{$link->getPageLink("guest-tracking", true)}';
var addressUrl = '{$link->getPageLink("address", true, NULL, "back={$back_order_page}")}';
var orderProcess = 'order-opc';
var guestCheckoutEnabled = {$PS_GUEST_CHECKOUT_ENABLED|intval};
var currencySign = '{$currencySign|html_entity_decode:2:"UTF-8"}';
var currencyRate = '{$currencyRate|floatval}';
var currencyFormat = '{$currencyFormat|intval}';
var currencyBlank = '{$currencyBlank|intval}';
var displayPrice = {$priceDisplay};
var taxEnabled = {$use_taxes};
var conditionEnabled = {$conditions|intval};
var countries = new Array();
var countriesNeedIDNumber = new Array();
var countriesNeedZipCode = new Array();
var vat_management = {$vat_management|intval};
var txtWithTax = "{l s='(tax incl.)'}";
var txtWithoutTax = "{l s='(tax excl.)'}";
var txtHasBeenSelected = "{l s='has been selected'}";
var txtNoCarrierIsSelected = "{l s='No carrier has been selected'}";
var txtNoCarrierIsNeeded = "{l s='No carrier is needed for this order'}";
var txtConditionsIsNotNeeded = "{l s='No terms of service must be accepted'}";
var txtTOSIsAccepted = "{l s='Terms of Service have been accepted'}";
var txtTOSIsNotAccepted = "{l s='Terms of service have not been accepted'}";
var txtThereis = "{l s='There is'}";
var txtErrors = "{l s='error(s)'}";
var txtDeliveryAddress = "{l s='Delivery address'}";
var txtInvoiceAddress = "{l s='Invoice address'}";
var txtModifyMyAddress = "{l s='Modify my address'}";
var txtInstantCheckout = "{l s='Instant checkout'}";
var txtSelectAnAddressFirst = "{l s='Please start by selecting an address'}";
var errorCarrier = "{$errorCarrier}";
var errorTOS = "{$errorTOS}";
var checkedCarrier = "{if isset($checked)}{$checked}{else}0{/if}";
var addresses = new Array();
var isLogged = {$isLogged|intval};
var isGuest = {$isGuest|intval};
var isVirtualCart = {$isVirtualCart|intval};
var isPaymentStep = {$isPaymentStep|intval};
//]]>
</script>
{if $productNumber}
<!-- Shopping Cart -->
{include file="$tpl_dir./shopping-cart.tpl"}
<!-- End Shopping Cart -->
{if $isLogged AND !$isGuest}
{include file="$tpl_dir./order-address.tpl"}
{else}
<!-- Create account / Guest account / Login block -->
{include file="$tpl_dir./order-opc-new-account.tpl"}
<!-- END Create account / Guest account / Login block -->
{/if}
<!-- Carrier -->
{include file="$tpl_dir./order-carrier.tpl"}
<!-- END Carrier -->
<!-- Payment -->
{include file="$tpl_dir./order-payment.tpl"}
<!-- END Payment -->
{else}
{capture name=path}{l s='Your shopping cart'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<h2>{l s='Your shopping cart'}</h2>
<p class="warning">{l s='Your shopping cart is empty.'}</p>
{/if}
{/if}