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

Shipping Session not Clearning on Shopping Cart Page...

Thread began 8/06/2015 12:33 pm by sfranzken73972 | Last modified 8/10/2015 2:48 pm by Ray Borduin | 365 views | 5 replies |

sfranzken73972

Shipping Session not Clearning on Shopping Cart Page...

Shipping Session not Clearning on Shopping Cart Page after you clear the cart button

Sign in to reply to this post

Ray BorduinWebAssist

I'd just remove the shipping line from the cart page so that it isn't displayed since it won't be recalculated until they fill in the checkout form.

You can clear the shipping session variable on the checkout success page to clear it after a purchase has been made. If you don't have user login then you can probably just clear the entire session with:

php:
<?php

session_destroy
();
?>



Just place that right before the </body> tag on the checkout success page. If you do have user login and don't want to have them logged out, you can remove individual session variables with:

php:
<?php

unset($_SESSION['YourCartName_UPS_Quote']);
?>



The correct variable name depends on the shipping provider and cart name you are using. You can look it up from your eCart definition file for what is used to calculate the charge.

You can add two shipping rules with conditions based on the weight so that UPS shipping charges only are used if the total weight is over a certain value then add a separate rule for setting the shipping charge if the weight is under that value.

Sign in to reply to this post

sfranzken73972

Shipping Rules Questoin

You can add two shipping rules with conditions based on the weight so that UPS shipping charges only are used if the total weight is over a certain value then add a separate rule for setting the shipping charge if the weight is under that value.

Sign in to reply to this post

Ray BorduinWebAssist

That is correct.

This could easily be done in a single premier support ticket. I think you have my skype contact information, just message me there if you want to finish this that way.

Sign in to reply to this post

sfranzken73972

Session destroy did not work

See private message to recreate error.

Sign in to reply to this post

Ray BorduinWebAssist

I would just remove the shipping row from the shopping cart display on the cart page. Shipping isn't calculated until the checkout page, so any value displayed there won't reflect any updates made to the cart.

The session destroy is on the checkout success page, so by not proceeding to that stage the session destroy code doesn't run.

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