MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //home/artinside/fhs.artinside.com.br/themes/web/views/shop-cart.php
<?php
ob_start();
session_start();
require __DIR__ . "/../../../vendor/autoload.php";
use Anam\Phpcart\Cart;
$cart = new Cart(CARRINHO);
?>
<a href="#" id="top-cart-trigger"><i class="fal fa-shopping-bag "></i><span id="j_cart_count"><?= $cart->totalQuantity() ?></span></a>
<div class="top-cart-content">
    <div class="top-cart-title">
        <h4>Meus Itens</h4>
    </div>
    <div class="top-cart-items">

        <?php
        if ($cart->count() >= 1):

            foreach ($cart->getItems() as $products):
                ?>
                <div class="top-cart-item clearfix">
                    <div class="top-cart-item-image" style="background: url('<?= url("storage/{$products->cover}")?>') no-repeat center center; background-size: cover;">
                        <a href="<?= url("produto/{$products->uri}")?>"></a>
                    </div>
                    <div class="top-cart-item-desc">
                        <a href="<?= url("produto/{$products->uri}")?>" class="t400"><?= $products->name ?></a>
                        <span class="top-cart-item-price">R$ <?= preco_real($products->price) ?></span>
                        <span class="top-cart-item-quantity t600">x <?= $products->quantity ?></span>
                    </div>
                </div>
            <?php
            endforeach;
            else:
                ?>
                <div class="top-cart-item-desc">
                    <span class="top-cart-item-price">Ainda não existem itens no Carrinho</span>
                </div>
        <?php

        endif;?>

    </div>
    <div class="top-cart-action clearfix">
        <span class="fleft top-checkout-price t600 pouramis-text" style="font-size: 1.1em">R$ <?= preco_real($cart->getTotal()); ?></span>
        <a href="<?= url("carrinho")?>" class="button button-dark button-small button-circle nomargin fright">Comprar</a>
    </div>
</div>