diff --git a/templates/default/cart.html b/templates/default/cart.html index 234355d98..77bba4aae 100644 --- a/templates/default/cart.html +++ b/templates/default/cart.html @@ -18,12 +18,7 @@ {nocache} {ifloop rel="cartloop"} -
- 1 {intl l="Your Cart"} - 2 {intl l="Billing and delivery"} - 3 {intl l="Check my order"} - 4 {intl l="Secure payment"} -
+ {include file="misc/checkout-progress.tpl" step="cart"} diff --git a/templates/default/misc/checkout-progress.tpl b/templates/default/misc/checkout-progress.tpl new file mode 100644 index 000000000..eb3e051e6 --- /dev/null +++ b/templates/default/misc/checkout-progress.tpl @@ -0,0 +1,28 @@ +{if $step eq "cart"} + {assign var="step1" value=" active"} + {assign var="step2" value=" disabled"} + {assign var="step3" value=" disabled"} + {assign var="step4" value=" disabled"} +{elseif $step eq "delivery"} + {assign var="step1" value=""} + {assign var="step2" value=" active"} + {assign var="step3" value=" disabled"} + {assign var="step4" value=" disabled"} +{elseif $step eq "invoice"} + {assign var="step1" value=""} + {assign var="step2" value=""} + {assign var="step3" value=" active"} + {assign var="step4" value=" disabled"} +{elseif $step eq "last"} + {assign var="step1" value=" disabled"} + {assign var="step2" value=" disabled"} + {assign var="step3" value=" disabled"} + {assign var="step4" value=" active"} +{/if} + +
+ 1 {intl l="Your Cart"} + 2 {intl l="Billing and delivery"} + 3 {intl l="Check my order"} + 4 {intl l="Secure payment"} +
diff --git a/templates/default/order-delivery.html b/templates/default/order-delivery.html index fc2110e06..12c65b489 100644 --- a/templates/default/order-delivery.html +++ b/templates/default/order-delivery.html @@ -23,12 +23,7 @@

{intl l="Your Cart"}

-
- 1 {intl l="Your Cart"} - 2 {intl l="Billing and delivery"} - 3 {intl l="Check my order"} - 4 {intl l="Secure payment"} -
+ {include file="misc/checkout-progress.tpl" step="delivery"} {form name="thelia.order.delivery"} {assign var="isPost" value="{$smarty.post|count}"} diff --git a/templates/default/order-invoice.html b/templates/default/order-invoice.html index 4789f826a..0df14b719 100644 --- a/templates/default/order-invoice.html +++ b/templates/default/order-invoice.html @@ -24,12 +24,7 @@

{intl l="Your Cart"}

-
- 1 {intl l="Your Cart"} - 2 {intl l="Billing and delivery"} - 3 {intl l="Check my order"} - 4 {intl l="Secure payment"} -
+ {include file="misc/checkout-progress.tpl" step="invoice"} {form name="thelia.order.coupon"} diff --git a/templates/default/order-placed.html b/templates/default/order-placed.html index 6569beffc..b51372604 100644 --- a/templates/default/order-placed.html +++ b/templates/default/order-placed.html @@ -18,12 +18,7 @@

{intl l="Your Cart"}

-
- 1 {intl l="Your Cart"} - 2 {intl l="Billing and delivery"} - 3 {intl l="Check my order"} - 4 {intl l="Secure payment"} -
+ {include file="misc/checkout-progress.tpl" step="last"} {loop type="order" name="placed-order" id=$placed_order_id}