Post by legend717 » Wed Sep 29, 2010 4:42 pm

cart.php :

Code: Select all

if ($this->cart->countProducts() == 1) {
    $output .= $this->cart->countProducts() . ' item';
} else {
    $output .= $this->cart->countProducts() . ' items';
} 
cart.tpl:
???

User avatar
New member

Posts

Joined
Tue Sep 21, 2010 2:57 pm

Post by Karen » Wed Sep 29, 2010 5:29 pm

Is there a question here?

Using OC version 1.4.8b
http://catandcaboodle.com/


User avatar
Active Member

Posts

Joined
Thu Jun 10, 2010 2:51 pm
Location - WA State, USA

Post by legend717 » Wed Sep 29, 2010 6:00 pm

how to write in cart.tpl:

Code: Select all

if ($this->cart->countProducts() == 1) {
    $output .= $this->cart->countProducts() . ' item';
} else {
    $output .= $this->cart->countProducts() . ' items';
}
?

User avatar
New member

Posts

Joined
Tue Sep 21, 2010 2:57 pm

Post by legend717 » Wed Sep 29, 2010 7:49 pm

Code: Select all

<?php if ((int)$this->cart->countProducts() == 1) { ?>
<?php echo $this->cart->countProducts(); ?> item
<?php } else {?>
<?php echo $this->cart->countProducts(); ?> items
<?php } ?>
8)

User avatar
New member

Posts

Joined
Tue Sep 21, 2010 2:57 pm
Who is online

Users browsing this forum: No registered users and 100 guests