toplam ürün sayısı ve toplam fiyatı gösterme

oguzkir

OpenCart-TR
Katılım
27 Tem 2013
Mesajlar
2
Tepkime puanı
0
Puanları
0
bunu yapamadım.

sepetim 6 ürün - 250.00 ₺

şeklinde göstermek istiyorum.

ayrıca tıklayınca sepete gitsin istiyorum.

şöyle bir şey yapmıştım ama çalışmadı:

Kod:
<div class="links">
        <a href="<?php echo $account; ?>"><?php echo $text_account; ?></a>
        <a href="<?php echo $wishlist; ?>"><?php echo $text_wishlist; ?></a>
        <a href="<?php echo $shopping_cart; ?>"><?php echo $text_shopping_cart; ?></a>
        <?php echo $this->data['text_items'] = sprintf($this->language->get('text_items'), 
        $this->cart->countProducts() + (isset(
        $this->session->data['vouchers']) ? count(
        $this->session->data['vouchers']) : 0), 
        $this->currency->format($total)); 
        ?>
        <a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a>              
</div>

şu hatayı aldım: Notice: Undefined variable: total in C:\xampp\htdocs\opencart\catalog\view\theme\default\template\common\header.tpl on line 771 ürün - 0,00₺
 

tugbarsrock

OpenCart-TR
Katılım
31 Tem 2013
Mesajlar
1
Tepkime puanı
0
Puanları
0
Bu tip hatayı bende alıyorum hocam bulursanız pm atar mısınız ?

kurumsalseohizmetleri.tumblr.com
 

devopen

OpenCart-TR
Katılım
17 Tem 2012
Mesajlar
119
Tepkime puanı
0
Puanları
0
ilgili controller dosyasında $this->data['total'] = $total; şeklinde bir tanımlamanız olması lazım...
 
Üst