docs: small fix to abandoned cart guide (#12029)
This commit is contained in:
@@ -242,14 +242,16 @@ export const sendAbandonedNotificationsStep = createStep(
|
||||
channel: "email",
|
||||
template: process.env.ABANDONED_CART_TEMPLATE_ID || "",
|
||||
data: {
|
||||
first_name: cart.customer.first_name,
|
||||
last_name: cart.customer.last_name,
|
||||
customer: {
|
||||
first_name: cart.customer?.first_name || cart.shipping_address?.first_name,
|
||||
last_name: cart.customer?.last_name || cart.shipping_address?.last_name,
|
||||
},
|
||||
cart_id: cart.id,
|
||||
items: cart.items?.map((item) => ({
|
||||
name: item.title,
|
||||
product_title: item.title,
|
||||
quantity: item.quantity,
|
||||
price: item.unit_price,
|
||||
image: item.thumbnail,
|
||||
unit_price: item.unit_price,
|
||||
thumbnail: item.thumbnail,
|
||||
})),
|
||||
},
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user