Zen Cart Logo
Forums / Features Wish List / Display total weight for order on order detail page with free shipping

Display total weight for order on order detail page with free shipping

Views: 117

Results 1 to 12 of 12
31 May 2016, 7:27 PM
#1
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Display total weight for order on order detail page with free shipping

Show total weight of order when Free Shipping was used on the order detail page.

In the past I have butchered the USPS Auto Fill mod to pull order total weight - SQL order.php needed editing. Just to have the weight displayed when free shipping was chosen. Of course if UPS or USPS shipping was selected the weight displays fine.

Why this is not done out of the box is unclear to me. If I sell goods, I need to prep shipping labels no matter if free shipping or if the customer chose a paid method. So it would be very helpful to see what the total weight is of an order that I now go and have to ship.

2 Jun 2016, 6:49 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Display total weight for order on order detail page with free shipping

Are you wanting this to specifically display to the customer?

Or are you just wanting to have this info available in the Admin when looking at the order details?

ie: admin-only, or storefront (ie: change to everyone's templates) too?

(Note: v160 does track an overall order-weight, but doesn't yet display it anywhere other than how it does in v155)

3 Jun 2016, 11:03 AM
#3
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Display total weight for order on order detail page with free shipping

Simply on the order detail page in admin would be great. No need for customer to see it but for the store owner just as a help to create shipping labels. It helps to know the shipping weight of what you have to ship ;)
Attachment 16398

14 Jul 2016, 1:26 AM
#4
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: Display total weight for order on order detail page with free shipping

I was about to suggest this very thing, after spending two hours tweaking all the possible places where a shipping weight could be entered and still seeing 0lbs in the shopping cart. Finally dawned on my that it was because that item had free shipping, but I wasted a lot of time trying to fix the assumed problem. If I had been a customer, I'd have been wondering what was wrong too. I think it should be visible to the customer, personally.

13 Dec 2017, 9:44 AM
#5
faizansaeed611 avatar

faizansaeed611

New Zenner

Join Date:
Nov 2017
Location:
Pakistan
Posts:
1
Plugin Contributions:
0

Re: Display total weight for order on order detail page with free shipping

Procedure ???

13 Dec 2017, 12:09 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Display total weight for order on order detail page with free shipping

faizansaeed611:

Procedure ???

Don't want you to get discouraged by a lack of response. When asking procedure in relation to the discussion of this topic, could you please identify which procedure you are asking about? There's what mydanilo did and then there is discussion of what HeleneWallis did. Please expand on your question and be as detailed as possible including anything you may have already tried (specific details of that as well). Unfortunately we do not know exactly what was attempted and so can only guess at solutions until details are provided.

8 Feb 2019, 7:59 AM
#7
cindygordon avatar

cindygordon

New Zenner

Join Date:
Sep 2016
Location:
Dallas, TX USA
Posts:
71
Plugin Contributions:
0

Re: Display total weight for order on order detail page with free shipping

I know this is old, but I'm still trying to figure out why the shopping cart displays 0 lbs when there are 2 items in the cart that do have weight designations. Anyone figure out why this might be? Even tho I am not shipping by the pound, it would be very helpful to the customers to know their total weight.
Attachment 18323

8 Feb 2019, 8:03 AM
#8
cindygordon avatar

cindygordon

New Zenner

Join Date:
Sep 2016
Location:
Dallas, TX USA
Posts:
71
Plugin Contributions:
0

Re: Display total weight for order on order detail page with free shipping

Just to clarify... I am actually shipping by the pound... but it's set to 0.
The cost of shipping in my cart is figured into the price rather than add it in the cart.
I don't have free shipping configured as someone suggested above.
Anything I'm missing somewhere?
It's not an URGENT issue, but one I would love to resolve.
Attachment 18324

8 Feb 2019, 8:05 AM
#9
cindygordon avatar

cindygordon

New Zenner

Join Date:
Sep 2016
Location:
Dallas, TX USA
Posts:
71
Plugin Contributions:
0

Re: Display total weight for order on order detail page with free shipping

Oh and lastly, if it could display total weight in the admin area, that would be a bonus! (I saw that mentioned above too.)

8 Feb 2019, 12:15 PM
#10
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Display total weight for order on order detail page with free shipping

So if the weight displayed is 0 and the product has weight, here are the possible areas in a default install that generate the values. Software that has been added or changes made to the existing software may be causing the issue.

includes/classes/shopping_cart.php <- this is where the the values are collected with the result to be provided by the method: show_weight().
includes/modules/pages/shopping_cart/header_php.php <- this is the file that is to collect the data to be displayed on the shopping cart page. It makes a call to the shopping_cart class to obtain the weight and to append the weight to a string. The string is $totalsDisplay.
includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php <- where YOUR_TEMPLATE is the name of the template being used. If the file doesn't exist there, the YOUR_TEMPLATE is template_default. This file in a default install displays the value of $totalsDisplay that was collected above.

Any software that affects the value of $totalsDisplay or the calculation of the weight by the shopping_cart class or in the header_php.php file, or if another file beginning with header_php and ending with .php in the includes/modules/pages/shopping_cart folder could likely be the cause of this. There may be more to consider if the weight is based off of attributes and not just the main product.

Without additional information about what all is installed and changes made, little can be identified as the root cause other than suggesting the addition of some debug commands to capture information in key spots of the software.

From my review, I didn't see anything related to the potential shipping modules that would affect this determination on the shopping cart page. Later in the checkout process maybe, but not on the shopping cart page.

10 Feb 2019, 4:29 AM
#11
cindygordon avatar

cindygordon

New Zenner

Join Date:
Sep 2016
Location:
Dallas, TX USA
Posts:
71
Plugin Contributions:
0

Re: Display total weight for order on order detail page with free shipping

mc12345678, thank you for responding!

includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php is the string you wrote above.
I don't have that string. I have
includes/templates/classic/ where I can find tpl_shopping_cart_default.php

I haven't made any changes to that. I can post the contents of that file, if it would help?

You also mention a "includes/modules/pages/shopping_cart folder"
I have an "includes/modules/pages" folder, but there's not a "shopping cart" folder inside of that.

Unfortunately I can't find anything offensive or altered in the files you've mentioned above. Is the further info that I can provide that will allow you to gain more insight?

Thank you again for trying!!

10 Feb 2019, 7:20 AM
#12
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Display total weight for order on order detail page with free shipping

cindygordon:

mc12345678, thank you for responding!

includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php is the string you wrote above.
I don't have that string. I have
includes/templates/classic/ where I can find tpl_shopping_cart_default.php

I haven't made any changes to that. I can post the contents of that file, if it would help?

You also mention a "includes/modules/pages/shopping_cart folder"
I have an "includes/modules/pages" folder, but there's not a "shopping cart" folder inside of that.

Unfortunately I can't find anything offensive or altered in the files you've mentioned above. Is the further info that I can provide that will allow you to gain more insight?

Thank you again for trying!!
Ok, so let us make sure that there is understanding. You say that includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php is not present but includes/templates/classic/templates/tpl_shopping_cart_default.php is... In my instruction, YOUR_TEMPLATE represents the folder name for the template that you are currently using. Am I to understand that your current template uses the classic template?

As to includes/modules/pages/shopping_cart If that folder does not exist, then there is more to be understood such as how this supposed shopping cart works? If that folder is missing, then there is something else that is presenting the "shopping cart" and that software is what is not properly displaying the total weight (or at least not calculating it). The absence of that folder is an alteration. If you were to look at the tpl_shopping_cart_default.php to first identify the variable that provides the primary text and make a minor change to validate that the file is in fact responsible for display of the shopping cart page, then can use the tools->Developers tool kit to find where that variable is generated in all of the software and further determine why the weight is displayed as being 0 instead of the actual weight of the items.

Based on the provided information, I do not wish to blindly stumble through the issues. Confirmation of working with the correct folder/file should be made by making some known change that can be confirmed and from there to discover and identify the applicable/desired next piece of information.