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

Hi
We got the tweaks so far the shipping costs do not show inside the headers mini cart even when you have visited the checkout; if you go to some other page the header cars does not show shipping cost line nor calculates shipping costs in the total.

But now we are trying to NOT let it calculate the shipping costs in the total showing in the minicart even when we are on the checkout page.
It does not show shipping costs line BUT takes the shipping cost of the one and only shipping option we have into the total.
anyone knows the trick in this routine?
<?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 } ?>

Active Member

Posts

Joined
Thu Oct 13, 2011 11:41 pm

Post by Johnathan » Fri May 16, 2014 10:25 pm

If you want to actually affect the *calculation* of the total, you'll need to modify it in the controller file, so it doesn't load the shipping cost at all. I haven't tested this, but try this edit:

Code: Select all

IN:
/catalog/controller/module/cart.php

AFTER:
foreach ($results as $result) {

ADD:
if ($result['code'] == 'shipping') continue; 

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by takahashi1973 » Sun May 18, 2014 8:00 pm

Johnathan,

..... must have had my mind elsewhere. Thanks a lot that does the trick!

Active Member

Posts

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

Users browsing this forum: Baidu [Spider] and 107 guests