Kichu
Kichu

Reputation: 3267

Checking additional conditions for product price in magento

In my magento site i added number of products with price as 0.00.

Now that products are displayed with price as $0.00.

so i want to display the price as not mentioned instead of $0.00.

How can i do this?

the price.phtml what is the condition i need to write for that?

My condition is:

if price == 0.00 display the text 'not mentioned'

Upvotes: 1

Views: 227

Answers (1)

Josua M C
Josua M C

Reputation: 3158

try this.

    <?php 
        if ((int)$this->getPrice()){
            echo $this->getPrice();
        }else {
            echo "not mentioned";
        } 
    ?>

correct me if i am wrong.

^^

Upvotes: 1

Related Questions