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


delivery charge logic bug

Thread began 9/19/2016 12:45 pm by Christopher West | Last modified 9/19/2016 4:42 pm by Ray Borduin | 483 views | 1 replies |

Christopher WestCommunity Expert

delivery charge logic bug

Hi I have found a bug in the calculation of delivery.

I have 4 test products:
Product 1 - chargeable product
Product 2 - chargeable product
Product 3 - free delivery
Product 4 - collect in store only (so excluded from delivery cost)

I been testing different combinations of basket and looking at the calculations which I post to page.
The delivery cost is based on total weight and total size (width x height x depth)
The calculations for total weight and total size are correct
Testing for all 4 products in basket works out correct delivery charge.
Testing for Product 1 + Product 2 in basket works out correct delivery charge.
Testing Product 3 + Product 4 in basket fails as the delivery charge is calculated at the minimum delivery cost in my database.

So I wonder what could be the cause of this?

Originally I had in my eCart Merchandising Rule: AND SubTotal of ChargeDelivery ==1 (see screenshot) but having this is the rule failed the test for Product 1 + Product 2 in the basket - (but correctly calculate Product 3 + Product 4 being free delivery) So it seems that fixing the issue by removing the rule causes the 2 free delivery products from being free delivery.

I assume its my eCart Merchandising Rules?

I have attached screenshots of the eCart object in case you see anything obvious there that's a mistake?

Also attaching the php file that calculates the delivery (its a pass through file from my checkout address page to the payment page.


Attached Files
Sign in to reply to this post

Ray BorduinWebAssist

Subtotal of chargedelivery = 1 in your shipping rule seems odd. That would only be true if 1 and only 1 item in the cart has a delivery charge.

Sign in to reply to this post
Did this help? Tips are appreciated...

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...