On améliore le calcul du coupon, en cumulant le nb de pots moyens + grands.

This commit is contained in:
2019-12-11 12:21:13 +01:00
parent 470c962b51
commit 4a6211f89f
4 changed files with 90 additions and 11338 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1057,14 +1057,10 @@ th {
content: "\e260";
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html {
@@ -1124,8 +1120,6 @@ img {
background-color: #fff;
border: 1px solid #ddd;
border-radius: 3px;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
display: inline-block;
max-width: 100%;
@@ -2501,8 +2495,6 @@ label {
font-weight: bold;
}
input[type="search"] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
input[type="radio"],
@@ -2548,16 +2540,12 @@ output {
background-image: none;
border: 1px solid #e5e5e5;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-control:focus {
border-color: #66afe9;
outline: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
.form-control::-moz-placeholder {
@@ -2814,12 +2802,10 @@ select[multiple].input-lg {
}
.has-success .form-control {
border-color: #3c763d;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.has-success .form-control:focus {
border-color: #2b542c;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
}
.has-success .input-group-addon {
@@ -2844,12 +2830,10 @@ select[multiple].input-lg {
}
.has-warning .form-control {
border-color: #8a6d3b;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.has-warning .form-control:focus {
border-color: #66512c;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
}
.has-warning .input-group-addon {
@@ -2874,12 +2858,10 @@ select[multiple].input-lg {
}
.has-error .form-control {
border-color: #a94442;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.has-error .form-control:focus {
border-color: #843534;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
}
.has-error .input-group-addon {
@@ -2996,7 +2978,8 @@ select[multiple].input-lg {
font-weight: normal;
text-align: center;
vertical-align: middle;
touch-action: manipulation;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
@@ -3030,7 +3013,6 @@ select[multiple].input-lg {
.btn.active {
outline: 0;
background-image: none;
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn.disabled,
@@ -3039,7 +3021,6 @@ fieldset[disabled] .btn {
cursor: not-allowed;
opacity: 0.65;
filter: alpha(opacity=65);
-webkit-box-shadow: none;
box-shadow: none;
}
a.btn.disabled,
@@ -3399,7 +3380,6 @@ fieldset[disabled] .btn-danger.focus {
.btn-link[disabled],
fieldset[disabled] .btn-link {
background-color: transparent;
-webkit-box-shadow: none;
box-shadow: none;
}
.btn-link,
@@ -3456,8 +3436,6 @@ input[type="button"].btn-block {
}
.fade {
opacity: 0;
-webkit-transition: opacity 0.15s linear;
-o-transition: opacity 0.15s linear;
transition: opacity 0.15s linear;
}
.fade.in {
@@ -3479,11 +3457,8 @@ tbody.collapse.in {
position: relative;
height: 0;
overflow: hidden;
-webkit-transition-property: height, visibility;
transition-property: height, visibility;
-webkit-transition-duration: 0.35s;
transition-duration: 0.35s;
-webkit-transition-timing-function: ease;
transition-timing-function: ease;
}
.caret {
@@ -3521,7 +3496,6 @@ tbody.collapse.in {
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 3px;
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
background-clip: padding-box;
}
@@ -3711,11 +3685,9 @@ tbody.collapse.in {
padding-right: 12px;
}
.btn-group.open .dropdown-toggle {
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn-group.open .dropdown-toggle.btn-link {
-webkit-box-shadow: none;
box-shadow: none;
}
.btn .caret {
@@ -4353,7 +4325,6 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
padding: 10px 15px;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
margin-top: 8px;
margin-bottom: 8px;
@@ -4424,7 +4395,6 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
margin-right: 0;
padding-top: 0;
padding-bottom: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
}
@@ -4991,8 +4961,6 @@ a.badge:focus {
background-color: #fff;
border: 1px solid #ddd;
border-radius: 3px;
-webkit-transition: border 0.2s ease-in-out;
-o-transition: border 0.2s ease-in-out;
transition: border 0.2s ease-in-out;
}
.thumbnail > img,
@@ -5084,14 +5052,6 @@ a.thumbnail.active {
.alert-danger .alert-link {
color: #843534;
}
@-webkit-keyframes progress-bar-stripes {
from {
background-position: 40px 0;
}
to {
background-position: 0 0;
}
}
@keyframes progress-bar-stripes {
from {
background-position: 40px 0;
@@ -5106,7 +5066,6 @@ a.thumbnail.active {
margin-bottom: 20px;
background-color: #f5f5f5;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.progress-bar {
@@ -5118,55 +5077,40 @@ a.thumbnail.active {
color: #fff;
text-align: center;
background-color: #f49a17;
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
-webkit-transition: width 0.6s ease;
-o-transition: width 0.6s ease;
transition: width 0.6s ease;
}
.progress-striped .progress-bar,
.progress-bar-striped {
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-size: 40px 40px;
}
.progress.active .progress-bar,
.progress-bar.active {
-webkit-animation: progress-bar-stripes 2s linear infinite;
-o-animation: progress-bar-stripes 2s linear infinite;
animation: progress-bar-stripes 2s linear infinite;
}
.progress-bar-success {
background-color: #5cb85c;
}
.progress-striped .progress-bar-success {
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.progress-bar-info {
background-color: #5bc0de;
}
.progress-striped .progress-bar-info {
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.progress-bar-warning {
background-color: #f0ad4e;
}
.progress-striped .progress-bar-warning {
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.progress-bar-danger {
background-color: #d9534f;
}
.progress-striped .progress-bar-danger {
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.media {
@@ -5428,7 +5372,6 @@ button.list-group-item-danger.active:focus {
background-color: #fff;
border: 1px solid transparent;
border-radius: 0;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.panel-body {
@@ -5799,7 +5742,6 @@ button.list-group-item-danger.active:focus {
background-color: #f5f5f5;
border: 1px solid #e3e3e3;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}
.well blockquote {
@@ -5855,19 +5797,12 @@ button.close {
outline: 0;
}
.modal.fade .modal-dialog {
-webkit-transform: translate(0, -25%);
-ms-transform: translate(0, -25%);
-o-transform: translate(0, -25%);
transform: translate(0, -25%);
-webkit-transition: -webkit-transform 0.3s ease-out;
-moz-transition: -moz-transform 0.3s ease-out;
-o-transition: -o-transform 0.3s ease-out;
transition: transform 0.3s ease-out;
}
.modal.in .modal-dialog {
-webkit-transform: translate(0, 0);
-ms-transform: translate(0, 0);
-o-transform: translate(0, 0);
transform: translate(0, 0);
}
.modal-open .modal {
@@ -5885,7 +5820,6 @@ button.close {
border: 1px solid #999;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 6px;
-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
background-clip: padding-box;
outline: 0;
@@ -5950,7 +5884,6 @@ button.close {
margin: 30px auto;
}
.modal-content {
-webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.modal-sm {
@@ -6105,7 +6038,6 @@ button.close {
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 6px;
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.popover.top {
@@ -6219,8 +6151,6 @@ button.close {
.carousel-inner > .item {
display: none;
position: relative;
-webkit-transition: 0.6s ease-in-out left;
-o-transition: 0.6s ease-in-out left;
transition: 0.6s ease-in-out left;
}
.carousel-inner > .item > img,
@@ -6229,33 +6159,23 @@ button.close {
}
@media all and (transform-3d), (-webkit-transform-3d) {
.carousel-inner > .item {
-webkit-transition: -webkit-transform 0.6s ease-in-out;
-moz-transition: -moz-transform 0.6s ease-in-out;
-o-transition: -o-transform 0.6s ease-in-out;
transition: transform 0.6s ease-in-out;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-perspective: 1000px;
-moz-perspective: 1000px;
perspective: 1000px;
}
.carousel-inner > .item.next,
.carousel-inner > .item.active.right {
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
left: 0;
}
.carousel-inner > .item.prev,
.carousel-inner > .item.active.left {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
left: 0;
}
.carousel-inner > .item.next.left,
.carousel-inner > .item.prev.right,
.carousel-inner > .item.active {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
left: 0;
}
@@ -6305,8 +6225,6 @@ button.close {
background-color: rgba(0, 0, 0, 0);
}
.carousel-control.left {
background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);
@@ -6314,8 +6232,6 @@ button.close {
.carousel-control.right {
left: auto;
right: 0;
background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);
@@ -6751,7 +6667,8 @@ button.close {
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
}
/* makes the font 33% larger relative to the icon container */
.fa-lg {
@@ -6811,60 +6728,41 @@ button.close {
margin-left: .3em;
}
.fa-spin {
-webkit-animation: fa-spin 2s infinite linear;
animation: fa-spin 2s infinite linear;
}
.fa-pulse {
-webkit-animation: fa-spin 1s infinite steps(8);
animation: fa-spin 1s infinite steps(8);
}
@-webkit-keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
.fa-rotate-90 {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
-webkit-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
}
.fa-rotate-180 {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
-webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
transform: rotate(180deg);
}
.fa-rotate-270 {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
-webkit-transform: rotate(270deg);
-ms-transform: rotate(270deg);
transform: rotate(270deg);
}
.fa-flip-horizontal {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);
-webkit-transform: scale(-1, 1);
-ms-transform: scale(-1, 1);
transform: scale(-1, 1);
}
.fa-flip-vertical {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);
-webkit-transform: scale(1, -1);
-ms-transform: scale(1, -1);
transform: scale(1, -1);
}
@@ -8659,7 +8557,8 @@ header .header .language-container .currency-switch .select {
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f078";
}
.navbar .navbar-cart .dropdown > a:after,
@@ -9024,13 +8923,13 @@ header .header .language-container .currency-switch .select {
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f071";
display: block;
font-size: 2.2em;
}
#cart-address .panel {
-webkit-box-shadow: none;
box-shadow: none;
border: none;
}
@@ -9047,8 +8946,6 @@ header .header .language-container .currency-switch .select {
#payment-method.panel .radio label > img:focus {
opacity: 1;
filter: alpha(opacity=100);
-webkit-transition: opacity 200ms ease-in-out;
-o-transition: opacity 200ms ease-in-out;
transition: opacity 200ms ease-in-out;
}
#payment-method .list-group-item {
@@ -9143,8 +9040,6 @@ header .header .language-container .currency-switch .select {
width: 100%;
}
a {
-webkit-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.breadcrumb {
@@ -9157,12 +9052,11 @@ a {
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f105";
}
.btn {
-webkit-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
border-radius: 12px;
text-align: left;
@@ -9170,7 +9064,6 @@ a {
}
.btn:active,
.btn.active {
-webkit-box-shadow: none;
box-shadow: none;
}
@media (min-width: 992px) {
@@ -9363,7 +9256,6 @@ a {
background-color: #FFEDD8;
border: 1px solid #FFEDD8;
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.navbar .list-subnav > li > a {
@@ -9395,7 +9287,8 @@ a {
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f078";
}
.panel-heading {
@@ -9571,7 +9464,8 @@ a {
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f071";
display: block;
font-size: 2.2em;
@@ -9580,7 +9474,6 @@ a {
background: transparent;
border: 1px solid transparent;
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.block .block-heading {
@@ -9630,7 +9523,8 @@ a {
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f054";
color: #f49a17;
margin-left: -15px;
@@ -9683,7 +9577,8 @@ a {
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f068";
}
.block-nav .block-content li a.accordion-toggle.collapsed:after {
@@ -9763,8 +9658,6 @@ a {
bottom: auto;
width: 28px;
height: 28px;
-webkit-transition: background-color 300ms ease-in-out;
-o-transition: background-color 300ms ease-in-out;
transition: background-color 300ms ease-in-out;
}
.block-carousel .block-carousel-control .carousel-control:hover,
@@ -9943,7 +9836,6 @@ a.label-delivered:focus {
pointer-events: none;
opacity: 0.65;
filter: alpha(opacity=65);
-webkit-box-shadow: none;
box-shadow: none;
}
.grid .item .product-image > img {
@@ -9954,7 +9846,6 @@ a.label-delivered:focus {
pointer-events: none;
opacity: 0.65;
filter: alpha(opacity=65);
-webkit-box-shadow: none;
box-shadow: none;
}
.list .item + .item {
@@ -10056,12 +9947,10 @@ a.label-delivered:focus {
font-size: 30px;
}
.form-control {
-webkit-box-shadow: none;
box-shadow: none;
}
.form-control:invalid:focus {
border-color: #843534;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
}
.has-error .help-block:before {
@@ -10071,7 +9960,8 @@ a.label-delivered:focus {
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f00d";
margin-right: .3em;
}
@@ -10079,16 +9969,13 @@ label {
font-weight: 600;
}
.dropdown-menu {
-webkit-box-shadow: none;
box-shadow: none;
}
.modal-content {
-webkit-box-shadow: none;
box-shadow: none;
}
.popover {
border-radius: 3px;
-webkit-box-shadow: none;
box-shadow: none;
}
.overlay {
@@ -10109,8 +9996,6 @@ label {
right: 0;
opacity: 0;
filter: alpha(opacity=0);
-webkit-transition: all 300ms ease-in-out 50ms;
-o-transition: all 300ms ease-in-out 50ms;
transition: all 300ms ease-in-out 50ms;
}
.overlay:before {
@@ -10124,9 +10009,7 @@ label {
content: "\f002";
color: #fff;
text-align: center;
-webkit-transform: translate(0, 0);
-ms-transform: translate(0, 0);
-o-transform: translate(0, 0);
transform: translate(0, 0);
line-height: 0;
}
@@ -10140,9 +10023,7 @@ label {
}
.overlay:hover:after,
.overlay:focus:after {
-webkit-transform: translate(0, 50%);
-ms-transform: translate(0, 50%);
-o-transform: translate(0, 50%);
transform: translate(0, 50%);
}
.navbar li {
@@ -10155,7 +10036,8 @@ label {
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f015";
color: #ffffff;
font-size: 26px;
@@ -10171,7 +10053,8 @@ label {
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f007";
color: #f49a17;
font-size: 19px;
@@ -10203,7 +10086,8 @@ label {
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f07a";
color: #fff;
font-size: 24px;
@@ -10324,9 +10208,7 @@ td.product .name > a:focus,
text-decoration: line-through;
}
#products-new .products-grid .overlay:after {
-webkit-transform: translate(0, 40%);
-ms-transform: translate(0, 40%);
-o-transform: translate(0, 40%);
transform: translate(0, 40%);
}
#products-new .products-grid .item > article {
@@ -10378,8 +10260,6 @@ td.product .name > a:focus,
padding-bottom: 40px;
}
#products-new .products-grid .item > article .product-info {
-webkit-transition: height 300ms linear;
-o-transition: height 300ms linear;
transition: height 300ms linear;
position: absolute;
bottom: 0;
@@ -10420,8 +10300,6 @@ td.product .name > a:focus,
#products-related .products-grid .item > article,
#products-offer .products-grid .item > article {
border-radius: 3px;
-webkit-transition: background-color 300ms ease-in-out;
-o-transition: background-color 300ms ease-in-out;
transition: background-color 300ms ease-in-out;
padding: 6px;
}
@@ -10542,7 +10420,8 @@ td.product .name > a:focus,
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f005";
}
#product-details .product-promo .sale-period {
@@ -10601,7 +10480,6 @@ td.product .name > a:focus,
}
#filters > h3 {
background: #e5e5e5;
-webkit-box-shadow: inset 0px -4px 10px rgba(0, 0, 0, 0.125);
box-shadow: inset 0px -4px 10px rgba(0, 0, 0, 0.125);
margin: 0 0 15px 0;
padding: 10px 15px;
@@ -10622,7 +10500,8 @@ td.product .name > a:focus,
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f002";
font-size: 30px;
float: left;
@@ -10661,7 +10540,6 @@ td.product .name > a:focus,
font-size: 12px;
padding-left: 35px;
width: inherit;
-webkit-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.075);
}
.block.block-newsletter .block-content form .form-group .form-control::-moz-placeholder {
@@ -10691,7 +10569,8 @@ td.product .name > a:focus,
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f0e0";
color: #8b8b8b;
font-size: 18px;
@@ -10731,7 +10610,8 @@ td.product .name > a:focus,
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f041";
font-size: 34px;
}
@@ -10742,7 +10622,8 @@ td.product .name > a:focus,
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f10b";
font-size: 30px;
margin-top: -8px;
@@ -10755,7 +10636,8 @@ td.product .name > a:focus,
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f0e0";
font-size: 17px;
margin-left: 2px;
@@ -10773,7 +10655,8 @@ td.product .name > a:focus,
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f1d8";
font-size: 17px;
}
@@ -10844,13 +10727,8 @@ td.product .name > a:focus,
}
.pagination > li > a,
.pagination > li > span {
-webkit-box-shadow: 2px 1px 1px rgba(0, 0, 0, 0.1);
box-shadow: 2px 1px 1px rgba(0, 0, 0, 0.1);
-webkit-transition: all 200ms ease-in-out;
-o-transition: all 200ms ease-in-out;
transition: all 200ms ease-in-out;
background-image: -webkit-linear-gradient(top, #ffffff 0%, #f9f9f9 100%);
background-image: -o-linear-gradient(top, #ffffff 0%, #f9f9f9 100%);
background-image: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff9f9f9', GradientType=0);
@@ -10944,7 +10822,8 @@ td.product .name > a:focus,
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f077";
color: #f49a17;
display: block;
@@ -10967,7 +10846,6 @@ td.product .name > a:focus,
color: #f49a17;
}
#account .panel {
-webkit-box-shadow: none;
box-shadow: none;
border-color: #fff;
}
@@ -10981,7 +10859,8 @@ td.product .name > a:focus,
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f078";
float: left;
width: 20px;
@@ -11008,7 +10887,8 @@ td.product .name > a:focus,
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f10b";
font-size: 30px;
}
@@ -11019,7 +10899,8 @@ td.product .name > a:focus,
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f095";
font-size: 22px;
}
@@ -11030,7 +10911,8 @@ td.product .name > a:focus,
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f0e0";
font-size: 18px;
}
@@ -11095,7 +10977,6 @@ td.product .name > a:focus,
margin-bottom: 20px;
width: 100%;
height: 350px;
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
@@ -11117,7 +10998,8 @@ td.product .name > a:focus,
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
content: "\f005";
}
#sale-details .sale-discount-information .sale-period {
@@ -11140,3 +11022,7 @@ body {
.navbar-default {
border: none;
}
div > .rouge {
color: red;
font-weight: bold;
}

View File

@@ -23,4 +23,8 @@ body {
.navbar-default {
border: none;
}
div > .rouge {
color: red;
}

View File

@@ -112,6 +112,31 @@
{$nb_pots_taille_L = $nb_pots_taille_L + $QUANTITY}
{/if}
{/loop}
<!-- TheCoreDev : Application d'un éventuel code promo //-->
{assign var=promo_totale value=0}
{if $nb_pots_taille_S >= 3}
{$promo_totale = 1.5}
{if $nb_pots_taille_S >= 6}
{$promo_totale = 2}
{/if}
{/if}
{if $nb_pots_taille_M + $nb_pots_taille_L >= 3}
{$promo_totale = $promo_totale + 2}
{if $nb_pots_taille_M + $nb_pots_taille_L >= 6}
{$promo_totale = $promo_totale + 4}
{/if}
{/if}
{if $promo_totale > 0}
{if $promo_totale > 2}
{$code_promo="PROMO_4"}
{else}
{$code_promo="PROMO_"|cat:$promo_totale}
{/if}
{else}
{$code_promo=""}
{/if}
</dl>
</div>
<a href="{token_url path="/cart/delete/%item_id" item_id=$ITEM_ID success_url={url path='/cart'}}" class="btn btn-link"><i class="fa fa-trash"></i> {intl l="Remove"}</a>
@@ -218,40 +243,11 @@
{form_field field='coupon-code'}
<div class="{if $form_error}has-error{/if}">
<div>{intl l='Click to apply coupon'}</div>
{if $code_promo ne ''}
<div class="rouge">{intl l='Click to apply coupon'}</div>
{/if}
<div class="input-group">
<label class="control-label sr-only" for="code">{intl l='Code :'}</label>
<!-- TheCoreDev : Application d'un éventuel code promo //-->
{assign var=promo_totale value=0}
{if $nb_pots_taille_S >= 3}
{$promo_totale = 1.5}
{if $nb_pots_taille_S >= 6}
{$promo_totale = 2}
{/if}
{/if}
{if $nb_pots_taille_M >= 3}
{$promo_totale = $promo_totale + 2}
{if $nb_pots_taille_M >= 6}
{$promo_totale = $promo_totale + 4}
{/if}
{/if}
{if $nb_pots_taille_L >= 3}
{$promo_totale = $promo_totale + 2}
{if $nb_pots_taille_L >= 6}
{$promo_totale = $promo_totale + 4}
{/if}
{/if}
{if $promo_totale > 0}
{if $promo_totale > 2}
{$code_promo="PROMO_4"}
{else}
{$code_promo="PROMO_"|cat:$promo_totale}
{/if}
{else}
{$code_promo=""}
{/if}
<input id="coupon" class="form-control" type="text" name="{$name}" value="{$code_promo}" placeholder="{intl l='Coupon code'}" required readonly>
<span class="input-group-btn">