From 67a765c2a6efdb5440b0494bdbc433a58f707ddf Mon Sep 17 00:00:00 2001 From: lulu Date: Fri, 10 May 2024 19:19:34 +0000 Subject: [PATCH] manual send localization bug --- package.json | 2 +- src/services/abandoned-cart.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f72a7dd..9b87ad8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "medusa-plugin-abandoned-cart", - "version": "2.0.52", + "version": "2.0.53", "description": "Medusa plugin for abandoned cart tracking and recovery", "author": "Lucjan Grzesik (https://github.com/luluhoc)", "license": "MIT", diff --git a/src/services/abandoned-cart.ts b/src/services/abandoned-cart.ts index 99098d1..32fc352 100644 --- a/src/services/abandoned-cart.ts +++ b/src/services/abandoned-cart.ts @@ -118,7 +118,7 @@ export default class AbandonedCartService extends TransactionBaseService { const locale = this.getCartLocale(cart); if ( - !this.checkTypeOfOptions(this.options_) && + (!this.checkTypeOfOptions(this.options_) && interval) && this.options_.localization ) { const localeOptions = this.options_.localization[locale]; @@ -165,7 +165,7 @@ export default class AbandonedCartService extends TransactionBaseService { dynamic_template_data: { ...cart, subject: subject ?? "You left something in your cart", - header: header ?? "You left something in your cart", + header: header ?? "Still thinking about it?", }, };