Post by inuyasha » Fri Oct 03, 2008 9:59 pm

Hi all,
How to display cost + shipping charge =total on shop-cart??

i use v0.78 on testing now
if i want to know the shipping fee, i must checkout process.

Thx!!

Newbie

Posts

Joined
Sat Sep 20, 2008 8:00 pm

Post by Qphoria » Fri Oct 03, 2008 10:29 pm

there are a few ideas planned for the checkout and cart steps. one being a shipping estimator on the cart page, the other being to change how checkout works. currently there isn't a way

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by inuyasha » Fri Oct 03, 2008 10:46 pm

Dear Qphoria,
thank you for your reply
i visit your demo site and i test it.
i saw you can display "Total Cart Weight" on shop-cart
is it possible display shipping if i use weight base shipping

Newbie

Posts

Joined
Sat Sep 20, 2008 8:00 pm

Post by JNeuhoff » Sat Oct 04, 2008 12:12 am

The shipping costs aren't displayed in the shopping cart till the customer selects the kind of shipping we wishes to use during the checkout process.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by jty » Mon Oct 06, 2008 1:07 am

inuyasha wrote: i saw you can display "Total Cart Weight" on shop-cart
is it possible display shipping if i use weight base shipping
It is not possible yet. Someone needs to write the shipping estimator module
As a workaround, if your shipping is simple, you can install the MinOrderQty_v0.3 Contribution
This contribution has the Total Cart Weight in the Cart page
You could then use a table to show your shipping rates so the customers can work out the shipping manually

This is not an ideal solution but it is better than having to go through the process of registering an account to be able to check out to find out what shipping will be.

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by inuyasha » Mon Oct 06, 2008 1:28 pm

thx all

Newbie

Posts

Joined
Sat Sep 20, 2008 8:00 pm

Post by jty » Tue Oct 14, 2008 1:16 am

I have hacked a shipping estimator but I have a problem that is beyond my knowledge level.
If the customer is logged in, the shipping will show on the cart page but it won't show if they are not logged in.
Makes sense, cuz Opencart needs to know which geo zone to ship to. But in my situation, I only have one geo zone. I ship to Australia only and one price for all states based on weight.
How do I tell Opencart to just use the only one zone-geo zone I have
I use zone-based shipping
My code so far is:

In catalog/controller/cart.php
Find

Code: Select all

$view->set('subtotal', $currency->format($cart->getSubtotal()));
Below Add

Code: Select all

// Shipping Estimator
	$view->set('methods', $shipping->getQuotes());
	$view->set('default', $session->get('shipping_method'));
// Shipping Estimator
In catalog/template/default/cart.tpl

Find

Code: Select all

<tr>
    	<td><?php echo $text_cartweight; ?></td>
      <td><?php echo $display_weight; ?></td>
    </tr>
	 </table>
</div>
Below add

Code: Select all

<!-- Start Shipping Estimator -->
	<?php if ($methods) { ?>
	<div class="n">
	  <table>
        <?php foreach ($methods as $method) { ?>
        <?php if (!$method['error']) { ?>
        <?php foreach ($method['quote'] as $quote) { ?>
        <tr>
          <td class="g"><label for="<?php echo $quote['id']; ?>">
            <?php echo $quote['title']; ?></label></td>
          <td class="g"><label for="<?php echo $quote['id']; ?>"><?php echo $quote['text']; ?></label></td>
        </tr>
        <?php } ?>
        <?php } else { ?>
        <tr>
          <td colspan="2" class="g"><div class="warning"><?php echo $method['error']; ?></div></td>
        </tr>
        <?php } ?>
        <?php } ?>
      </table>
    </div>
    <?php } ?>
<!-- End Shipping Estimator -->
Would appreciate any help offered. Thank-you
Last edited by jty on Tue Oct 14, 2008 1:19 am, edited 1 time in total.

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am
Who is online

Users browsing this forum: No registered users and 1 guest