diff --git a/.gitignore b/.gitignore
index ae0a05c8f..9ce95681a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -53,6 +53,7 @@ composer.lock
img/**
!/img/404.gif
+!/img/.htaccess
!/img/admin/
!/img/admin/*.gif
!/img/admin/*.png
diff --git a/admin/backups/.htaccess b/admin/backups/.htaccess
index 93169e4eb..3de9e4008 100644
--- a/admin/backups/.htaccess
+++ b/admin/backups/.htaccess
@@ -1,2 +1,10 @@
-Order deny,allow
-Deny from all
+# Apache 2.2
+
{l s='The following cart rules in your selection were created dynamically from refunds or credit slips. Please confirm if you also intend to delete these cart rules?'}
+ {else} +{l s='Are you sure, you want to delete the selected cart rules?'}
+ + {/if} +| + | ++ {l s='Cart Rule'} + | ++ {l s='Reason'} + | ++ {l s='Order'} + | ++ {l s='Amount'} + | +
|---|---|---|---|---|
| + + | ++ #{$cartRule['id_cart_rule']} + | ++ {if $cartRule['generated_by'] == CartRule::GENERATED_BY_REFUND} + {l s='Generated against refund'} + (#{$cartRule['id_generated_by']}) + {else if $cartRule['generated_by'] == CartRule::GENERATED_BY_ORDER_SLIP} + {l s='Generated against credit slip'} + (#{$cartRule['id_generated_by']}) + {/if} + {if !$cartRule['cart_rule']->quantity} + {l s='Used'} + {/if} + | ++ #{$cartRule['order']->id} + | ++ {displayPrice price=$cartRule['cart_rule']->reduction_amount currency=$cartRule['cart_rule']->reduction_currency} + | + +
{l s='Are you sure, you want to delete this cart rule?'}
++ {$cartRule->code} (#{$cartRule->id}) +
++ {if $generatedBy == CartRule::GENERATED_BY_REFUND} + {l s='Generated against refund'} + (#{$generatedById}) + {else if $generatedBy == CartRule::GENERATED_BY_ORDER_SLIP} + {l s='Generated against credit slip'} + (#{$generatedById}) + {/if} +
+{displayPrice price=$cartRule->reduction_amount currency=$cartRule->reduction_currency}
++ {$customer->firstname} {$customer->lastname} (#{$customer->id}) +
++ {$order->reference} (#{$order->id}) +
++ {l s='Used'} +
+
{if $count_ok}
- {l s='[1]%1$d[/1] order(s) validated for a total amount of [2]%2$s[/2]' sprintf=[$count_ok, $total_ok] tags=['', '']}
+ {l s='[1]%1$d[/1] order(s) validated, total amount paid [2]%2$s[/2]' sprintf=[$count_ok, $total_ok] tags=['', '']}
{else}
{l s="No orders validated for the moment"}
{/if}
@@ -115,7 +115,7 @@
- {if $customer->active}
-
-
- {l s='Active'}
+ {if !$customer->deleted}
+ {if $customer->active}
+
+
+ {l s='Active'}
+
+ {else}
+
+
+ {l s='Inactive'}
+
+ {/if}
+ {elseif $customer->deleted == Customer::STATUS_BANNED}
+
+
+ {l s='Banned'}
- {else}
+ {elseif $customer->deleted == Customer::STATUS_DELETED}
- {l s='Inactive'}
+ {l s='Deleted'}
{/if}
- {l s='%1$s %2$s has not placed any orders yet' sprintf=[$customer->firstname, $customer->lastname]}
-
+ {l s='%1$s %2$s has not placed any orders yet' sprintf=[$customer->firstname, $customer->lastname]}
+
{l s="Choose a template"}
- -->
+ -->
@@ -159,7 +159,7 @@
});
timer = setInterval("markAsRead()", 3000);
});
-
+
function markAsRead()
{
$.ajax({
diff --git a/admin/themes/default/template/controllers/customers/helpers/view/view.tpl b/admin/themes/default/template/controllers/customers/helpers/view/view.tpl
index 88da2734e..8aab78130 100644
--- a/admin/themes/default/template/controllers/customers/helpers/view/view.tpl
+++ b/admin/themes/default/template/controllers/customers/helpers/view/view.tpl
@@ -146,15 +146,27 @@
-
-
{/if}
- {if $count_ko}
-
-
-
-
- {foreach $orders_ok AS $key => $order}
- {l s='ID'}
- {l s='Date'}
- {l s='Payment'}
- {l s='Status'}
- {l s='Products'}
- {l s='Total spent'}
-
-
-
- {/foreach}
-
- {$order['id_order']}
- {dateFormat date=$order['date_add'] full=0}
- {$order['payment']}
- {$order['order_state']}
- {$order['nb_products']}
- {$order['total_paid_real']}
-
-
- {l s='View'}
-
-
-
-
-
- {/if}
{else}
-
-
-
-
- {foreach $orders_ko AS $key => $order}
- {l s='ID'}
- {l s='Date'}
- {l s='Payment'}
- {l s='Status'}
- {l s='Products'}
- {l s='Total spent'}
-
-
- {/foreach}
-
- {$order['id_order']}
- {dateFormat date=$order['date_add'] full=0}
- {$order['payment']}
- {$order['order_state']}
- {$order['nb_products']}
- {$order['total_paid_real']}
-
@@ -290,7 +338,6 @@
{dateFormat date=$cart['date_upd'] full=0}
- {l s='ID'}
{l s='Date'}
- {l s='Carrier'}
{l s='Total'}
{$cart['name']}
{$cart['total_price']}
{/foreach}
@@ -303,33 +350,95 @@
{/if}
-
-
-
-
-
-
- {foreach $products AS $key => $product}
- {l s='Date'}
- {l s='Name'}
- {l s='Quantity'}
-
-
- {/foreach}
-
- {dateFormat date=$product['date_add'] full=0}
-
-
- {$product['product_name']}
-
-
- {$product['product_quantity']}
-