close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

eCart Charges

Thread began 7/30/2009 9:03 am by Alf | Last modified 8/06/2009 1:01 am by Alf | 2059 views | 4 replies |

Alf

eCart Charges

I have a blank text box named 'reverse' for adding an engraving in my cart
If some-one wants an engraving I need to add a charge of 5.00 on each occassion this box is utilised

Any suggestions?

Sign in to reply to this post

Ray BorduinWebAssist

What server language?
I would add a column to my cart called "Engraving"
Then I would create a calculations in the cart:

TruePrice = [Price] + (([Engraving]!="")?5:0)

and I would update the calculation:

TotalPrice = ([Price] + (([Engraving]!="")?5:0)) * [Quantity]

Then update the cart display to show "TruePrice" instead of "Price"

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

Alf

Hi Ray

Thanks for the feedback

I'm coding in .php

I have already set up a column called 'reverse' which is collecting the reverse engraving details.

I've been trying to utilise the Charges feature. i.e. if 'reverse' != (emptycell) then add 5.00
But can't seem to get the right syntax.

thanks

Alf

Sign in to reply to this post

Ray BorduinWebAssist

You can't use charges without calculations in this case, I don't think. Did you try using the calculations I suggested? Is there a reason that technique won't work for you.

I don't think charges is the correct solution since each row may be different. Charges are used for totaling and manipulating the cart as a whole. Individual row variations must be handled with calculations.

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

Alf

Hi Ray

thanks for the feedback

Went back to your original code and tweeked it slightly.......works like a dream

Thanks again

Alf

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