close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Need help with shipping rule

Thread began 8/18/2011 4:52 am by Base5 Designs | Last modified 8/23/2011 1:40 am by Base5 Designs | 2303 views | 6 replies

Base5 Designs

Hi Jason

I'm still struggling with this

the steps i have taken are as follows

in my ecart object i have a colulmn called totalbottles which sums up how many bottles need to be shipped (the number of bottles per product is stored in my product table)

the cost of shipping 1 case is in a recordset that is filtered by the country code (in fact its the same table that stores all my countrys for the select list)

i have a function as described earlier that works out the shipping rate (i have checked this function and it does work as expected if i put in static values)

on my checkout page i have created a session variable to hold the returned value from my shippingcost function

to the function i pass the cost of shipping one case and the totalbottles amount

$bottleAmount = $eCart1->DisplayInfo("TotalBottles");
$shippingCost = $row_rs_saleparams['shipcost_scn'];
$shippingAmount = myshipping($bottleAmount, $shippingCost);

this i then store in a session variable

if (!session_id()) session_start();
if(isset($_POST["Checkout_x"])) {
$_SESSION["myShippingAmount"] = "".$shippingAmount ."";
}
when i get to the confirm page no shipping is displayed.


i'm not sure if i understand the flow of the checkout pages correctly

if the checkout form submits to confirm.php then i am guessing the session variable will not be set as the code is not on that page,
If i put the all the code to set the shipping on confirm.php then the session variable wont be avaliable to work out and display the shipping cost. (as it will need a page refresh to pick up the session variable)

if you could give me a detailed workflow of what to put where i would appreciate it.

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