# fluent-cart/1.3.23/app/Services/Renderer/ProductModalRenderer.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.3.23. 62 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.3.23/code/app/Services/Renderer/ProductModalRenderer.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.3.23/raw/app/Services/Renderer/ProductModalRenderer.php
- Modified: 2026-01-06T14:01:24+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.3.23/code/app/Services/Renderer/ProductModalRenderer.php#L10-L20`.

```php
<?php
namespace FluentCart\App\Services\Renderer;

use FluentCart\Api\StoreSettings;
use FluentCart\App\Models\Product;

class ProductModalRenderer
{
    protected $product;
    protected $config = [];
    protected $storeSettings;

    public function __construct(Product $product, $config = [])
    {
        $this->product = $product;
        $this->config = $config;
        $this->storeSettings = new StoreSettings();
    }

    public function render()
    {
        ?>
        <div
            class="fct-product-modal"
            data-fluent-cart-shop-app-single-product-modal
            role="dialog"
            aria-modal="true"
            aria-label="<?php esc_attr($this->product->post_title); ?>"
        >
            <div
                    data-fluent-cart-shop-app-single-product-modal-overlay
                    class="fct-product-modal-overlay"
                    role="presentation"
                    aria-hidden="true"
            >
            </div>
            <div class="fct-product-modal-body">
                <button
                    class="fct-product-modal-close"
                    data-fluent-cart-shop-app-single-product-modal-close
                    type="button"
                    aria-label="<?php esc_attr_e('Close product modal', 'fluent-cart'); ?>"
                >
                    <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none">
                        <path d="M12.8337 1.16663L1.16699 12.8333M1.16699 1.16663L12.8337 12.8333" stroke="#2F3448" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
                    </svg>
                </button>

                <?php 
                    (new ProductRenderer($this->product, [
                        'view_type'   => $this->storeSettings->get('variation_view', 'both'),
                        'column_type' => $this->storeSettings->get('variation_columns', 'masonry')
                    ]))->render();
                ?>
            </div>
        </div>
        <?php

    }

}

```
