PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.6
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.6
1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 All 49 releases
← All changes | app/Services/ShortCodeParser/ShortcodeParser.php +3 -0 1.3.26 → 1.6.6 View file →
@@ -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);