<?php
/**
 * Plain text abandoned cart recovery email.
 *
 * This template can be overridden by copying it to yourtheme/cartninja/emails/plain/cartninja-abandoned-cart.php.
 *
 * @package CartNinjaRecovery
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

echo wp_strip_all_tags( $email_heading ) . "\n\n";
echo wp_strip_all_tags( $message ) . "\n\n";

foreach ( $cart_items as $item ) {
	echo '- ' . wp_strip_all_tags( $item['name'] ) . ' x ' . absint( $item['quantity'] ) . ' - ' . wp_strip_all_tags( $item['line_total'] ) . "\n";
}

echo "\n" . esc_html__( 'Cart total:', 'cartninja-recovery-for-woocommerce' ) . ' ' . wp_strip_all_tags( $cart_total ) . "\n";
echo esc_html__( 'Resume your checkout:', 'cartninja-recovery-for-woocommerce' ) . ' ' . esc_url_raw( $cart_url ) . "\n";
