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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Set Up Flat Rate

Thread began 2/10/2015 12:30 pm by mycalidesigns | Last modified 2/10/2015 4:11 pm by Jason Byrnes | 826 views | 8 replies |

mycalidesigns

Set Up Flat Rate

I am currently setting up flat rate for certain products, I would like for ecart to calculate shopping on both flat rate packages and shipping packages.

I already set up my table to have a flatrate entry, how do i configure shipping rule?

Sign in to reply to this post

mycalidesigns

i got the shipping rule to work. now i am running into were if i add a item that has a flat rate and item that doesn't have a flat rate it doest calculate both rates?

Also please help on the checkout process, its not going through. It is set up for sandbox now.

Sign in to reply to this post

Jason ByrnesWebAssist

you have to have 2 rules set up.

one of the flat rat and another for the shipping rate lookup.

you need to have a column in the cart to mark whether they should be applied to the flat rate rule or the shipping rat lookup rule.
For example, lets call that column:
shipMethod

for flat rat items set that columns value to 1 for rate lookup set that column to 2

in the shipping rules add triggers to look at the value for that column


to get this working for the rate lookup will require some hand coding, you would need to add code to calculate the weight for the items that have shipmethod set to 2. We can help implement that part in a premiere support appointment:
http://www.webassist.com/premier_request.php


to troubleshoot the checkout process, add the following code to the checkout failure page to dump the session:

<pre><?php var_dump($_SESSION); ?></pre>

the session contents will contain the response from the gateway, this will have information on why the transaction is failing.

Sign in to reply to this post

mycalidesigns

thanks jason,

i narrowed the cart issue to the following. when i process an order and it goes to the order success page. everything looks good, it show products order and details of order submitted. when i navigate back to the the store some how it is storing the products in session along with all other session varables. so when i go through the checkout process through paypal it doesn't process the order. i am assuming the token is expired. my question how do i clear all cart and session values, after my order is successfully gone through? i added the clear cart to the checkout_success page but it didn't work?

Sign in to reply to this post

Jason ByrnesWebAssist

add the following code on the success page after the </html> tag to clear the session:

<?php
// Initialize the session.
// If you are using session_name("something"), don't forget it now!
@session_start();

// Unset all of the session variables.
$_SESSION = array();

// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!
if (ini_get("session.use_cookies")) {
$params = session_get_cookie_params();
@setcookie(session_name(), '', time() - 42000,
$params["path"], $params["domain"],
$params["secure"], $params["httponly"]
);
}

// Finally, destroy the session.
@session_destroy();
@session_regenerate_id();
?>
Sign in to reply to this post

mycalidesigns

great i will give that a try. can you contact me to figure out the shipping thing?

Sign in to reply to this post

Jason ByrnesWebAssist

The shipping issue will involve custom coding.

you should sign up for a premiere support appointment:
http://www.webassist.com/premier_request.php

Sign in to reply to this post

mycalidesigns

i added this to checkout_success3 and it didn't work? what am i doing wrong?

Sign in to reply to this post

Jason ByrnesWebAssist

it must not be on the right page. make sure the session destroy code is on the correct success page.

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