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

excluding certain products from delivery calculation

Thread began 9/06/2016 4:44 pm by Christopher West | Last modified 9/13/2016 6:55 pm by Christopher West | 1390 views | 13 replies

Christopher WestCommunity Expert

Hi Ray, I'm looking at a fresh approach (as before I was overthinking and confusing different approaches).

I'm almost there, I just need a little help finishing of the logic.

Here is what I have done

(1) In my products table in the database I have I have 2 fields;ProductFreeDelivery and ProductCollectionOnly (these are both tinyint value of 0 or 1)
(2) in my eCart object I have added 2 columns: ProductFreeDelivery and ProductCollectionOnly (im using Output type: Number)
(3) In my eCart object for Calculations I have included:
(A) TotalWeight = [Weight] * [Quantity] * [ProductCollectionOnly] * [ProductFreeDelivery]
(B) TotalSize = ([Width] * [Height] * [Depth]) * [Quantity] * [ProductCollectionOnly] * [ProductFreeDelivery]

(4) On my product page the Add to cart server behaviour I have matched the bindings for both ProductCollectionOnly and ProductFreeDelivery

So from the above setup the the weight is calculated with any products with a value of 1 in the products table fields.

Its a little backwards, because the logic suggests that if 1 is set for (ProductCollection or ProductFreeDelivery) in the products table then include that product in the weight/size calculation) So I would need to reverse the 0 or 1 value in my admin page when admin is setting for those. Does that make sense? I guess I should have used your naming convention that you suggested with "ChargeShipping" since then any product with value of 1 would mean charge shipping. But even though my naming convention is backwards, it still works I assume. I'm just seeing if there are any issues i haven't thought of?


Chris

Chris

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

Content

rating

Layout

rating

Ease of use

rating

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