Code: Select all
if ($this->cart->countProducts() == 1) {
$output .= $this->cart->countProducts() . ' item';
} else {
$output .= $this->cart->countProducts() . ' items';
}
Code: Select all
if ($this->cart->countProducts() == 1) {
$output .= $this->cart->countProducts() . ' item';
} else {
$output .= $this->cart->countProducts() . ' items';
}
Code: Select all
if ($this->cart->countProducts() == 1) {
$output .= $this->cart->countProducts() . ' item';
} else {
$output .= $this->cart->countProducts() . ' items';
}
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 } ?>
Users browsing this forum: No registered users and 100 guests