| @@ -3,8 +3,9 @@ | ||
| 3 | 3 | namespace FluentCart\App\Services\ShortCodeParser; |
| 4 | 4 | |
| 5 | 5 | use FluentCart\Api\StoreSettings; |
| 6 | 6 | use FluentCart\App\Helpers\Helper; |
| 7 | +use FluentCart\App\Services\Payments\PaymentHelper; | |
| 7 | 8 | use FluentCart\App\Services\Payments\PaymentReceipt; |
| 8 | 9 | use FluentCart\App\Services\WpMetaHelper; |
| 9 | 10 | use FluentCart\Framework\Support\Arr; |
| 10 | 11 | |
| @@ -294,8 +295,10 @@ | ||
| 294 | 295 | $parsedData[$placeholder] = "<a style='color: #017EF3; text-decoration: none;' href='" . "$profilePage#/order/" . Arr::get($order, 'uuid') . "'>" . Arr::get($order, 'id') . "</a>"; |
| 295 | 296 | } else { |
| 296 | 297 | $parsedData[$placeholder] = Arr::get($order, 'id'); |
| 297 | 298 | } |
| 299 | + } elseif ($targetItem === 'payment_link') { | |
| 300 | + $parsedData[$placeholder] = PaymentHelper::getCustomPaymentLink(Arr::get($order, 'uuid')); | |
| 298 | 301 | } else if ($targetItem === 'total_amount') { |
| 299 | 302 | $parsedData[$placeholder] = Helper::toDecimal(Arr::get($order, 'total_amount'), false); |
| 300 | 303 | } elseif ($targetItem === 'total_paid') { |
| 301 | 304 | $parsedData[$placeholder] = Helper::toDecimal(Arr::get($order, 'total_paid'), false); |