WIP MMCM
This commit is contained in:
@@ -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 => {
|
||||||
|
|||||||
Reference in New Issue
Block a user