| @@ -1,5 +1,11 @@ | ||
| 1 | 1 | <?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 | +<?php | |
| 3 | +/** | |
| 4 | + * @var \FluentCart\Framework\Database\Orm\Collection $subscriptions | |
| 5 | + * @var \FluentCart\App\Models\Order $order | |
| 6 | + */ | |
| 7 | +?> | |
| 2 | 8 | <?php if ($subscriptions->count() > 0): ?> |
| 3 | 9 | |
| 4 | 10 | <div style="font-size:16px;font-weight:600;color:rgb(44,62,80);margin: 16px 0 0 0;line-height:24px;"> |
| 5 | 11 | <?php echo esc_html__('Subscription Details', 'fluent-cart'); ?> |
| @@ -14,9 +20,9 @@ | ||
| 14 | 20 | <?php foreach ($subscriptions as $subs): ?> |
| 15 | 21 | <tr> |
| 16 | 22 | <td style="width: 50%;border:none;padding: 1px 0;vertical-align: middle;"> |
| 17 | 23 | <p style="margin: 0;"> |
| 18 | - <?php echo esc_html($subs->item_name); ?> | |
| 24 | + <?php echo esc_html($subs->display_item_name); ?> | |
| 19 | 25 | </p> |
| 20 | 26 | |
| 21 | 27 | |
| 22 | 28 | </td> |
| @@ -35,9 +41,9 @@ | ||
| 35 | 41 | printf( |
| 36 | 42 | /* translators: %s is the auto-renewal date and time */ |
| 37 | 43 | esc_html__('- Auto renews on %s', 'fluent-cart'), |
| 38 | 44 | esc_html( |
| 39 | - \FluentCart\App\Services\DateTime\DateTime::anyTimeToGmt($subs->next_billing_date)->format('M d, Y h:i A') | |
| 45 | + \FluentCart\App\Services\DateTime\DateFormatter::format($subs->next_billing_date, true, $order) | |
| 40 | 46 | ) |
| 41 | 47 | ); |
| 42 | 48 | ?> |
| 43 | 49 | </p> |