WIP MMCM
This commit is contained in:
@@ -35,13 +35,18 @@ export default {
|
||||
methods: {
|
||||
addToCart: async function (idProduct) {
|
||||
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
|
||||
+ '&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)
|
||||
.then(response => {
|
||||
|
||||
Reference in New Issue
Block a user