close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Price by weight and item

Thread began 5/18/2010 7:52 am by mrs | Last modified 5/20/2010 9:47 am by Jason Byrnes | 687 views | 1 replies |

mrs

Price by weight and item

I have been asked to look at building a site for a grocery store that delivers it's goods.

The sell organic goods, and they sell juices by the bottle or carton, and they also sell fruit and veg. The juices will have a per item price, and the veg will be sold by weight which determines the price.

I know how to do the price by item, but how do I also tackle the price by weight in the same cart?

I have the latest eCart (but have never used it) and I also have the PowerStore 2. Could I take the PowerStore and modify it with eCart to suit my needs.

Any advice on this is appreciated.

Also, I need to make a delivery booking system... is that another thread?

Thanks.

Sign in to reply to this post

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.

Sign in to reply to this post

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