close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

shipping by weight + options for 1st, 2nd, Recorded and International help

Thread began 5/24/2012 9:27 pm by Christopher West | Last modified 6/06/2012 12:29 pm by Christopher West | 2028 views | 27 replies

Christopher WestCommunity Expert

right...first bug... it seems that if i add the same product the TotalWeight seems fine in calculating the cost...however if i add a different product then the weight remains the same.

with the code you provided earlier it wasnt producting the results fromt he recordsets...however if i switched the Where clause around it work...

WHERE paramCartWeight >=DeliveryWorldMin AND paramCartWeight <= DeliveryWorldMax

In addition in I had to use for the runtime value : $_GET['TotalWeight'] (got this from another thread due to an error that was displaying: Fatal error: Can't use method return value in write context in C:\Server\www\lostsheep\checkout.php).

and added <?php $_GET['TotalWeight'] = $SheepCart->TotalColumn("TotalWeight"); ?> before the recordset so i can use that $_GET.

so not sure if it was that code that is causing the current bug. its odd. Im attaching the checkout.php file so see if there is anything from that thats obvious....

if you want to test the bug you can view the website here: (on the checkout page I have included code to display the current weight for reference.

also added some session display code at the bottom in case needed.

so just add a few random products to see the bug of TotalWeight not performing correctly on different products (yet it works on a single product with many qualities of that product) etc: lostsheep/

I hope its an easy mistake I done :)

Best Regards,

Attached Files

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...