| @@ -76,9 +76,9 @@ | ||
| 76 | 76 | <?php |
| 77 | 77 | $otherInfo = is_array($item['other_info'] ?? null) ? $item['other_info'] : []; |
| 78 | 78 | $packageInfo = Arr::get($item, 'package_info', ''); |
| 79 | 79 | if (!$packageInfo && Arr::get($otherInfo, 'package_name')) { |
| 80 | - $packageInfo = \FluentCart\App\Services\Renderer\ProductCardRender::buildPackageInfoFromOtherInfo($otherInfo); | |
| 80 | + $packageInfo = \FluentCart\App\Services\Renderer\PackageDescriptionRenderer::buildPackageInfoFromOtherInfo($otherInfo); | |
| 81 | 81 | } |
| 82 | 82 | if ($packageInfo): |
| 83 | 83 | ?> |
| 84 | 84 | <p style="font-size:12px;color:rgb(107,114,128);line-height:18px;margin: 5px 0 0 0;"> |
| @@ -306,8 +306,9 @@ | ||
| 306 | 306 | $emailRcShippingAdj = (int) \FluentCart\Framework\Support\Arr::get($emailTaxSummaryEarly, 'rcShippingAdjustment', 0); |
| 307 | 307 | ?> |
| 308 | 308 | <?php if ($order->shipping_total > 0): |
| 309 | 309 | $emailDisplayShipping = max(0, (int) $order->shipping_total - $emailRcShippingAdj); |
| 310 | + $emailShippingMethodTitle = (string) \FluentCart\Framework\Support\Arr::get($order->config, 'shipping_method_title', ''); | |
| 310 | 311 | ?> |
| 311 | 312 | <tr style="width:100%"> |
| 312 | 313 | <td style="width:70%"> |
| 313 | 314 | <p style="font-size:14px;color:rgb(55,65,81);line-height:24px;margin: 0;"> |
| @@ -312,8 +313,13 @@ | ||
| 312 | 313 | <td style="width:70%"> |
| 313 | 314 | <p style="font-size:14px;color:rgb(55,65,81);line-height:24px;margin: 0;"> |
| 314 | 315 | <?php echo esc_html__('Shipping', 'fluent-cart'); ?> |
| 315 | 316 | </p> |
| 317 | + <?php if ($emailShippingMethodTitle): ?> | |
| 318 | + <p style="font-size:12px;color:rgb(107,114,128);line-height:18px;margin:0;"> | |
| 319 | + <?php echo esc_html($emailShippingMethodTitle); ?> | |
| 320 | + </p> | |
| 321 | + <?php endif; ?> | |
| 316 | 322 | </td> |
| 317 | 323 | <td style="width:30%;text-align:right"> |
| 318 | 324 | <p style="font-size:14px;color:rgb(55,65,81);margin:0;line-height:24px;"> |
| 319 | 325 | <?php echo esc_html(\FluentCart\App\Helpers\Helper::toDecimal($emailDisplayShipping)); ?> |