Post by Photospirit » Sat Jan 15, 2011 5:13 am

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

New member

Posts

Joined
Sat Oct 23, 2010 8:16 pm

Post by kedgetech » Sat Jan 15, 2011 9:32 am

Is this that you partially want to disable or remove price from the cost?

User avatar
Active Member

Posts

Joined
Mon Mar 22, 2010 5:20 pm
Location - USA, Australia, India

Post by Photospirit » Sat Jan 15, 2011 6:56 pm

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.

New member

Posts

Joined
Sat Oct 23, 2010 8:16 pm

Post by amilanvega » Wed Dec 21, 2011 9:12 pm

BUMP!

Any news on this?!

Newbie

Posts

Joined
Sun Oct 02, 2011 10:50 pm


Post by Photospirit » Thu Dec 22, 2011 6:09 pm

no, not really and I haven't done anything with it anymore...

New member

Posts

Joined
Sat Oct 23, 2010 8:16 pm

Post by takahashi1973 » Fri May 09, 2014 4:31 pm

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.

Active Member

Posts

Joined
Thu Oct 13, 2011 11:41 pm

Post by takahashi1973 » Mon May 19, 2014 3:06 am

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

Active Member

Posts

Joined
Thu Oct 13, 2011 11:41 pm
Who is online

Users browsing this forum: No registered users and 13 guests