Browse Source

[Espace producteur] Abonnement : l'ajout ne fonctionne pas (boutons +/- inactifs) #908

prodstable
Guillaume Bourgeois 1 year ago
parent
commit
a2c926a9e3
2 changed files with 5 additions and 6 deletions
  1. +4
    -0
      producer/controllers/SubscriptionController.php
  2. +1
    -6
      producer/web/js/vuejs/subscription-form.js

+ 4
- 0
producer/controllers/SubscriptionController.php View File

]), ]),
] ]
); );

if($product['unit'] == 'piece' && is_null($product['step'])) {
$product['step'] = 1;
}
} }


$params['products'] = $productsArray; $params['products'] = $productsArray;

+ 1
- 6
producer/web/js/vuejs/subscription-form.js View File

} }
}, },
dayChange: function () { dayChange: function () {
console.log(this.monday + ' ' + this.tuesday + ' ' + this.wednesday + ' ' +
this.thursday + ' ' + this.friday + ' ' + this.saturday + ' ' + this.sunday);

var count = Number(this.monday) + Number(this.tuesday) + Number(this.wednesday)
+ Number(this.thursday) + Number(this.friday) + Number(this.saturday)
+ Number(this.sunday);
var count = Number(this.monday) + Number(this.tuesday) + Number(this.wednesday) + Number(this.thursday) + Number(this.friday) + Number(this.saturday) + Number(this.sunday);


if (count == 1 && this.lastCountDays == 0) { if (count == 1 && this.lastCountDays == 0) {
this.lastCountDays = count; this.lastCountDays = count;

Loading…
Cancel
Save