diff --git a/src/ts/cart/cart.ts b/src/ts/cart/cart.ts index bdd77426..754ebcb5 100644 --- a/src/ts/cart/cart.ts +++ b/src/ts/cart/cart.ts @@ -114,7 +114,10 @@ export const cart = { // Display different cart elements switch (cart_behavior) { case "alert": - this.cart_alert = true; + if(this.cart_drawer) { + return; + } else { + this.cart_alert = true; this.cart.alert_delay = "0%"; setTimeout(() => { this.cart.alert_delay = "100%"; @@ -123,6 +126,8 @@ export const cart = { this.cart.alert_delay = "0%"; this.cart_alert = false; }, 4100); + } + break; case "drawer": this.cart_drawer = true; @@ -380,7 +385,6 @@ export const cart = { quantity: number, openCart: boolean ) { - this.playAudioIfEnabled(this.click_audio); let formData; diff --git a/src/ts/globals/globals.ts b/src/ts/globals/globals.ts index 7493ee24..9c63c83a 100644 --- a/src/ts/globals/globals.ts +++ b/src/ts/globals/globals.ts @@ -25,7 +25,6 @@ export const globals = { quick_edit_popup: app.quick_edit_popup, // {boolean} To toggle the quick edit popup quick_edit_handle: app.quick_edit_handle, // {string} The product handle of the product being edited quick_add_handle: app.quick_add_handle, // {string} The product handle of the product being added - // Menu menu_drawer: app.menu_drawer, // {boolean} To toggle the menu drawer menu_nested: app.menu_nested, // {boolean} To check if the menu is nested