Showing weight in checkout

General ShopSite user discussion

Showing weight in checkout

Postby hiamps » Sat Oct 06, 2007 8:58 pm

How can I set shopsite to show the total weight of the order?
hiamps
 
Posts: 160
Joined: Thu Sep 14, 2006 7:42 pm
Location: Lakewood Wa

Postby Jim » Sun Oct 07, 2007 7:50 am

There is no setting to show the product weight or total weight in the shopping cart. It is used to calculate the shipping charge if you are using a method that does that but there is no way to display it.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby loren_d_c » Mon Oct 08, 2007 10:46 am

Note that if you have ShopSite Pro and know JavaScript (or know/hire someone who does) then you could use the Shopping Cart JavaScript Variables feature to determine the total weight of the order.

http://www.shopsite.com/help/8.3/en-US/sc/pro/cart.variables.html

The ss_weight JavaScript array created by this feature will contain the weight of each item in the cart in each element of the array, so if you loop through this array in your own custom JavaScript and add up all of the the weights then you would have the total order weight, which you could then place somewhere on the shopping cart screen using a JavaScript document.write. Using a default ShopSite shopping cart template you could place your custom JavaScript at the top or bottom of the screen using the 'Text at the top of the..' and 'Text at the bottom of the..' fields under the various submenus of Commerce Setup -> Order System, or if you are using a custom shopping cart template then you could put it almost anywhere in the shopping cart screens that you want.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum

Who is online

Users browsing this forum: Bing [Bot] and 41 guests