|
|
|
|
|
|
358
|
const getStoreWhatsappUrl = (store) => {
|
358
|
const getStoreWhatsappUrl = (store) => {
|
|
359
|
const productTitle = product?.title || "this item"
|
359
|
const productTitle = product?.title || "this item"
|
|
360
|
const variantText = selectedVariantLabel ? ` - ${selectedVariantLabel}` : ""
|
360
|
const variantText = selectedVariantLabel ? ` - ${selectedVariantLabel}` : ""
|
|
361
|
- const message = `Halo ${store.name}, apakah ${productTitle}${variantText} masih tersedia? Terima kasih`
|
|
|
|
|
|
361
|
+ const message = `Hi ${store.name}, I'd like to enquire about ${productTitle}${variantText}. May I know if it's still available? Thank you.`
|
|
362
|
|
362
|
|
|
363
|
return `${store.whatsapp}?text=${encodeURIComponent(message)}`
|
363
|
return `${store.whatsapp}?text=${encodeURIComponent(message)}`
|
|
364
|
}
|
364
|
}
|