close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Need help with calculation

Thread began 5/03/2010 3:13 pm by Roxana | Last modified 5/12/2010 10:28 am by Roxana | 2271 views | 12 replies

Roxana

I still haven't solved the problem, but I am getting closer (maybe).

I thought I could set the trigger for shipping to the existence of a session variable. So I added the code "$_SESSION['germanShipping'] = on;" to the german confirm page, and "$_SESSION['euroShipping'] = on;" to the european confirm page. GermanShipping is set to a flat rate, and euroShipping is set to 0.00.

When I enter a European shipping destination, I am redirected to the European confirm page. Shipping is 0.00 and it is not added to the grandTotal.

When I then enter Germany as shipping destination, I am redirected to the German confirm page. Shipping is 5.80 (flat rate), and it is added to the grandTotal.

So far it is working.

However, when I change my mind again, and set a European shipping destination, the 5.80 flat rate will not go away.

I have close to no knowledge of PHP. Would it be possible to end the germanShipping session on the European confirm page? I have tried, but I can't get it to stop. The only way to stop it is to confirm the order and thereby completely destroy the session. But I don't want to do that and have the customer reenter all data.

Could you please help me out, Eric?

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