close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Price by weight and item

Thread began 5/18/2010 4:52 am by mrs | Last modified 5/20/2010 6:47 am by mrs | 873 views | 1 replies

Jason ByrnesWebAssist

you will need to have a cart column to determine if the item is sold by weight or not. in this itemType column, set the value to 1 for items that are sold by weight and 2 for item that use the regular price.

Then in the eCart object create a new calculation called real price.

the calculation should be:
(([itemType] == 1)?[Price] * [Weight]:[Price])

This basicly says:
Is the value in the itemType column 1?
Yes: set the price to Price * Weight
No: Set the price to Price


you will also need to change the Total price calculation from:
[Price] * [Quantity]

to:
(([itemType] == 1)?[Price] * [Weight]:[Price]) * [Quantity]

In the cart display, you will need to change it from showing the Price column to showing the realPrice calcualtion.

You will also need to modify the checkout behaviors to pass the realPrice calculation to the gateway instead of the Price calculation.


Yes, please start a new thread for the delivery booking issue.

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