Hi
I discovered this when helping someone else on the forum and I don't know enough about the program flow yet to know where to change this. It is only a display problem and I believe it can be turned off so it is not a pressing problem. But I thought someone w more knowledge would know.
When I go to my shopping cart the total weight on the top does not include the Tare. If I click on the Shipping Estimator, I will see 2 weights. The one on the top again does not show Tare, but the one besides the Zone estimate does.
It is giving the correct estimate, that is not a problem. I just wondered why no Tare (a customer might wonder why the weight is changing).
If I look at header.php for the shopping cart (includes/modules/pages/shopping_cart/header_php.php) I see this code:
Code:
// build shipping with Tare included
$shipping_weight = $_SESSION['cart']->show_weight();
/*
$shipping_weight = 0;
require(DIR_WS_CLASSES . 'order.php'); $order = new order;
require_once('includes/classes/http_client.php'); // shipping in basket
$total_weight = $_SESSION['cart']->show_weight();
$total_count = $_SESSION['cart']->count_contents();
require(DIR_WS_CLASSES . 'shipping.php');
$shipping_modules = new shipping;
$quotes = $shipping_modules->quote();
*/
If I removed the commented out section, it changes the displayed weight to the tare weight.
But I don't know if I should do this or figure out why the shipping weight isn't returned by the first statement.
Code:
$shipping_weight = $_SESSION['cart']->show_weight();
In other words, is the shipping weight WITH tare supposed to be saved at this point or is it supposed to be without tare and we need to add it.
I am running 1.5.4; php 5.4.45; shipping modules USPS, Zone Rates, and free shipping options. I tried it with default template. And the code in the unedited version of zencart is the same.
Thanks
lruskauff
Bookmarks