Magento Forum

   
displayFullSummary() && $_value!=null
 
KrYsSDeVe
Jr. Member
 
Total Posts:  4
Joined:  2012-09-24
 

Hello,

I try to make somting new but I do not know verry much php :(

<tr <?php if ($this->helper('tax')->displayFullSummary() && $_value!=0): ?> class="delivery" <?php endif; ?>>
<td class="a-right">
<?php if ($this->helper('tax')->displayFullSummary()): ?>
<span class="delivery"><?php echo $this->getTotal()->getTitle() ?></span>
<?php else: ?>
<?php echo $this->getTotal()->getTitle() ?>
<?php endif;?>
</td>
<td class="a-right"><?php echo $this->helper('checkout')->formatPrice($_value) ?></td>
</tr>

/app/design/frontend/default/your_template/template/tax/checkout/tax.phtml

What I whant to do ?

I make new atribute for tax and i use Weee Tax.

My Problems is:

When i go to cart checkout/cart/

Display : Delivery : 1.47
i whan to make
If not have Wee tax
Display : Delivery : Free

I try to dublicate the code and put
<tr <?php if ($this->helper('tax')->displayFullSummary() && $_value!=null): ?> class="delivery" <?php endif; ?>>
But i know i do not pus if and else !

Cheers

Image Attachments
Print.png
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top