| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentCart\App\Hooks\Handlers\ShortCodes\Checkout; |
| 4 |
|
| 5 |
|
| 6 |
use FluentCart\App\Helpers\CartHelper; |
| 7 |
use FluentCart\App\Hooks\Handlers\ShortCodes\ShortCode; |
| 8 |
use FluentCart\App\Services\Renderer\CheckoutRenderer; |
| 9 |
|
| 10 |
|
| 11 |
class CheckoutShippingMethodsShortCode extends ShortCode |
| 12 |
{ |
| 13 |
protected static string $shortCodeName = 'fluent_cart_checkout_shipping_methods'; |
| 14 |
|
| 15 |
|
| 16 |
public function render($viewData = null) |
| 17 |
{ |
| 18 |
$cart = CartHelper::getCart(); |
| 19 |
(new CheckoutRenderer($cart))->getFragment('shipping_methods'); |
| 20 |
} |
| 21 |
} |
| 22 |
|