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

rating

Price increasing

Thread began 4/15/2011 9:46 am by moz1104419172 | Last modified 4/25/2011 4:39 am by moz1104419172 | 1114 views | 4 replies |

moz1104419172

Price increasing

Is there a simpler method to increasing the price of an item rather than needing to use the recordset information and the product option table in the database, there would be nothing dynamic depending on which item is shown, just that if a checkbox is clicked (or even better, if a text entry field is not empty), then the price increases £4.

Sign in to reply to this post

Jason ByrnesWebAssist

sure, that can be done.

add a new column for your option, for the sake of example, lets call it "itemText" set the unique attribute for this new column. in the add to cart button, set the itemText column to updatable from a text box.

now in the eCart object, go to the calculations tab, create a new calculation called realPrice:
(abs([itemText]!='')?[Price] + 4:[Price])

and update the total Price calculation to:
(abs([itemText]!='')?[Price] + 4:[Price]) * [Quantity]

when you create the cart display page, on the second page of the cart display wizard, remove the column for price, and add the realPrice column in it's place.

Sign in to reply to this post

moz1104419172

Thats fantastic it seems to be working a treat, is there any way it could alter the price on the page in real time? so it would add the cost to the price value at the bottom when its not empty, and go back to its original value if it is

many thanks

Sign in to reply to this post

Jason ByrnesWebAssist

You would need to hand code a javascript function on the page to accomplish that, we do not offer support for hand coding javascript.

Sign in to reply to this post

moz1104419172

I thought that would be the case, thanks anyway

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