Hi,
I want to get rid of the "Shipping Cost" Line in the sidebar "Cart Module".
I was able to remove the subtotal line with the code
<?php if ($total['title'] != 'Subtotal') { ?>
Any idea how to remove the Shipping Cost entry?
Many thanks, Chris
I just want to remove the shipping cost from the side cart module and that it only calculates the total of the products in the cart. During the check-out process the shipping costs are still visible and will then be calculated to the total.
To not show it look for the line: <?php foreach ($totals as $total) { ?>
and make the code look like:
<?php foreach ($totals as $total) { ?>
<?php if ($total['code'] != 'shipping') { ?>
<tr>
<td class="right"><b><?php echo $total['title']; ?>:</b></td>
<td class="right"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
<?php } ?>
but than.... it still shows total incl. shipping IF someone already has visited the checkout or choose a shipping method in any other way.
and make the code look like:
<?php foreach ($totals as $total) { ?>
<?php if ($total['code'] != 'shipping') { ?>
<tr>
<td class="right"><b><?php echo $total['title']; ?>:</b></td>
<td class="right"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
<?php } ?>
but than.... it still shows total incl. shipping IF someone already has visited the checkout or choose a shipping method in any other way.
Also checkout this link: to always have the cart in the header NOT calculate shipping costs
http://forum.opencart.com/viewtopic.php?f=20&t=125239
Thanks johnathan
http://forum.opencart.com/viewtopic.php?f=20&t=125239
Thanks johnathan
Who is online
Users browsing this forum: No registered users and 13 guests