This commit is contained in:
Jonathan Chevalier
2022-10-10 13:39:14 +02:00
parent 0767e5e7f0
commit 8fdf22cd4b

View File

@@ -35,13 +35,18 @@ export default {
methods: { methods: {
addToCart: async function (idProduct) { addToCart: async function (idProduct) {
this.suspens = true this.suspens = true
const urlApi = '/php/api/v3/mmcm.php?EXEC=addToCart&ID_PRODUCT=' + this.store.idProduct let urlApi = '/php/api/v3/mmcm.php?EXEC=addToCart&ID_PRODUCT=' + this.store.idProduct
+ '&with_prescription=' + this.store.withPrescription + '&with_prescription=' + this.store.withPrescription
+ '&date_delivery=' + this.store.dateDelivery + '&date_delivery=' + this.store.dateDelivery
// + '&ID_SESSION=bCyP0dgW' + '&street=' + encodeURI(this.store.street)
+ '&zip_code=' + this.store.zipCode
+ '&city=' +this.store.city
; ;
// console.log(urlApi) if(import.meta.env.DEV){
urlApi += '&ID_SESSION=JZXB3Fbz'
console.log(urlApi)
}
const result = await fetch(urlApi) const result = await fetch(urlApi)
.then(response => { .then(response => {