I have searched the forum to find an answer to this problem but haven´t found one.
The thing is that I would like to hide the sub-total on the checkout-page (and also in the cart if it is possible).
I know the sub-total has to be calculated to show the Total, but isn´t there a way to just hide it and still keep it in the calculation?
I´m using 1.5.3.1
Regards
Melker
Please click here to donate us if my solutions help.
ECGOD Development Center
http://www.ecgod.com
sale@ecgod.com
Robert
There are no such text anywhere since the different totals like sub-total comes from this loop in confirm.tpl for example.
Right?
Code: Select all
<tfoot>
<?php foreach ($totals as $total) { ?>
<tr>
<td colspan="4" class="price"><b><?php echo $total['title']; ?>:</b></td>
<td class="total"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
</tfoot>
Code: Select all
<tfoot>
<?php foreach ($totals as $total) { ?>
<?php if($total['title'] != 'Sub-Total') { ?>
<tr>
<td colspan="4" class="price"><b><?php echo $total['title']; ?>:</b></td>
<td class="total"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
<?php } ?>
</tfoot>
Millvi wrote:I don´t follow you there.
There are no such text anywhere since the different totals like sub-total comes from this loop in confirm.tpl for example.
Right?
Code: Select all
<tfoot> <?php foreach ($totals as $total) { ?> <tr> <td colspan="4" class="price"><b><?php echo $total['title']; ?>:</b></td> <td class="total"><?php echo $total['text']; ?></td> </tr> <?php } ?> </tfoot>
Please click here to donate us if my solutions help.
ECGOD Development Center
http://www.ecgod.com
sale@ecgod.com
Robert
catalog/language/swedish/total/sub_total.php
and see what is the value of $_['text_sub_total'].
If the value is "xxxxx"
Then the code will be:
Code: Select all
<tfoot>
<?php foreach ($totals as $total) { ?>
<?php if($total['title'] != 'xxxxx') { ?>
<tr>
<td colspan="4" class="price"><b><?php echo $total['title']; ?>:</b></td>
<td class="total"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
<?php } ?>
</tfoot>
Millvi wrote:Beautiful!
It works in english but I also have swedish in the shop.
The title in swedish are Exkl. moms.
How do I change the code to make it work in swedish also?
/Melker
Please click here to donate us if my solutions help.
ECGOD Development Center
http://www.ecgod.com
sale@ecgod.com
Robert
I tried this but it doesn´t work.
Code: Select all
<tfoot>
<?php foreach ($totals as $total) { ?>
<?php if(($total['title'] != 'Sub-Total') || ($total['title'] != 'Exkl. moms')) { ?>
<tr>
<td colspan="4" class="price"><b><?php echo $total['title']; ?>:</b></td>
<td class="total"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
<?php } ?>
</tfoot>
Code: Select all
<tfoot>
<?php foreach ($totals as $total) { ?>
<?php if($total['title'] != 'Sub-Total' && $total['title'] != 'Exkl. moms') { ?>
<tr>
<td colspan="4" class="price"><b><?php echo $total['title']; ?>:</b></td>
<td class="total"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
<?php } ?>
</tfoot>
Millvi wrote:That I understand but my shop is in swedish and in english
I tried this but it doesn´t work.
Code: Select all
<tfoot> <?php foreach ($totals as $total) { ?> <?php if(($total['title'] != 'Sub-Total') || ($total['title'] != 'Exkl. moms')) { ?> <tr> <td colspan="4" class="price"><b><?php echo $total['title']; ?>:</b></td> <td class="total"><?php echo $total['text']; ?></td> </tr> <?php } ?> <?php } ?> </tfoot>
Please click here to donate us if my solutions help.
ECGOD Development Center
http://www.ecgod.com
sale@ecgod.com
Robert
Millvi wrote:Great!
Thank you very much for the help!
/Melker
Please click here to donate us if my solutions help.
ECGOD Development Center
http://www.ecgod.com
sale@ecgod.com
Robert
Users browsing this forum: Baidu [Spider] and 11 guests