# fluent-cart/1.6.5/app/Hooks/Handlers/ShortCodes/CustomerDashboardButtonShortcode.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.5. 26 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.5/code/app/Hooks/Handlers/ShortCodes/CustomerDashboardButtonShortcode.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.5/raw/app/Hooks/Handlers/ShortCodes/CustomerDashboardButtonShortcode.php
- Modified: 2026-03-13T16:10:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.6.5/code/app/Hooks/Handlers/ShortCodes/CustomerDashboardButtonShortcode.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Hooks\Handlers\ShortCodes;

use FluentCart\App\Services\Renderer\CustomerDashboardButtonRenderer;

class CustomerDashboardButtonShortcode extends ShortCode
{
    protected static string $shortCodeName = 'fluent_cart_customer_dashboard_button';

    public function getStyles(): array
    {
        return [
            'public/customer-dashboard-button/customer-dashboard-button.scss',
        ];
    }

    public function render(?array $viewData = null)
    {
        $data = $viewData ?? $this->shortCodeAttributes ?? [];
        $data['is_shortcode'] = true;

        $renderer = new CustomerDashboardButtonRenderer();
        $renderer->render($data);
    }
}
```
