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

ecart shipping

Thread began 6/27/2010 11:46 pm by watercolor346374 | Last modified 6/30/2010 1:23 pm by watercolor346374 | 1438 views | 12 replies |

watercolor346374

ecart shipping

Hi,
I set up my shipping rules for the US, which are rather complicated. They are not working. I am sending the script. I have four shipping rules for the US. I used the session variable:
eCartCheckoutForm_shipping_country. Also want to set up for next day in US with a flat rate.
The out of US rules will be similar.
Thank you

Attached Files
confirm.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

you also need to send the winkee_PHP.php so I can see what the shipping rule definitions are.


Also, add the following code:

php:
<pre><?php

if(!session_id()) session_start();
var_dump($_SESSION);
?></pre>



after the <body> tag and report the results.

Sign in to reply to this post

watercolor346374

Here are the results:
array(29) {
["cust"]=>
string(2) "55"
["total"]=>
float(20)
["shipcost"]=>
string(1) "5"
["tax"]=>
string(1) "0"
["track_num"]=>
string(0) ""
["winkee_admin"]=>
string(6) "kkbird"
["food_mart_admin"]=>
string(5) "admin"
["levelid"]=>
string(1) "1"
["shop"]=>
array(3) {
[0]=>
string(2) "32"
[1]=>
string(2) "17"
[2]=>
string(2) "15"
}
["pass_phrase"]=>
string(40) "3de9647ccdb3564c0083a35f26e3b3d433cb295d"
["vercode"]=>
int(83976)
["cart"]=>
array(0) {
}
["megan_admin"]=>
string(6) "kkbird"
["megan_isaacs_Items"]=>
string(157) "223|WAECART|2222|WAECART|bracelets|WAECART|0|WAECART|2|WAECART|50|WAECART|om12iii.jpg|WAECART||WAECART||WAECART|95|WAECART|0|WAECART|100|WAECART|2 2222 (223)"
["WAEC_ContinueRedirect"]=>
string(28) "/winkee/detail.php?prodid=41"
["winkee_Items"]=>
string(399) "46|WAECART||WAECART|Spy Tape|WAECART|0|WAECART|1|WAECART|5|WAECART|parsley.jpg20100604224337|WAECART||WAECART||WAECART|0|WAECART|12121212|WAECART||WAECART||WAECART|0|WAECART|5|WAECART|1 (46)&#65533;41|WAECART||WAECART|Black Rouched|WAECART|0|WAECART|1|WAECART|22|WAECART|chefhat.jpg20100601221932|WAECART|Long Tab|WAECART||WAECART|19|WAECART|97897979|WAECART||WAECART||WAECART|0|WAECART|22|WAECART|1 (41)"
["lolos_boutique_Items"]=>
string(457) "18|WAECART|Treasure|WAECART|Treasure Rock Angle Print Tank Ruffle Bottom with Gold Stones |WAECART|5|WAECART|1|WAECART|48.8|WAECART|small|WAECART||WAECART|0|WAECART|1|WAECART|0|WAECART|0|WAECART|0|WAECART|5|WAECART|48.8|WAECART|1 Treasure (18)&#65533;78|WAECART|Fillmore|WAECART|Fillmore, White Duck Vote Tee 2008|WAECART|5|WAECART|1|WAECART|26|WAECART|small|WAECART||WAECART|0|WAECART|1|WAECART|0|WAECART|0|WAECART|0|WAECART|5|WAECART|26|WAECART|1 Fillmore (78)"
["eCartCheckoutForm_state_province"]=>
string(2) "AL"
["eCartCheckoutForm_country"]=>
string(2) "US"
["eCartCheckoutForm_shipping_state_province"]=>
string(2) "AL"
["eCartCheckoutForm_shipping_country"]=>
string(2) "US"
["date"]=>
string(19) "2010-06-28 13:36:29"
["insert_order_status"]=>
string(7) "pending"
["eCartCheckoutForm_counties"]=>
string(5) "0.065"
["winkee_OrderID"]=>
int(124)
["megan_isaacs_OrderID"]=>
int(74)
["countyid"]=>
string(0) ""
["counties"]=>
string(5) "0.075"
["backorder"]=>
string(0) ""
}

array(29) {
["cust"]=>
string(2) "55"
["total"]=>
float(20)
["shipcost"]=>
string(1) "5"
["tax"]=>
string(1) "0"
["track_num"]=>
string(0) ""
["winkee_admin"]=>
string(6) "kkbird"
["food_mart_admin"]=>
string(5) "admin"
["levelid"]=>
string(1) "1"
["shop"]=>
array(3) {
[0]=>
string(2) "32"
[1]=>
string(2) "17"
[2]=>
string(2) "15"
}
["pass_phrase"]=>
string(40) "3de9647ccdb3564c0083a35f26e3b3d433cb295d"
["vercode"]=>
int(83976)
["cart"]=>
array(0) {
}
["megan_admin"]=>
string(6) "kkbird"
["megan_isaacs_Items"]=>
string(157) "223|WAECART|2222|WAECART|bracelets|WAECART|0|WAECART|2|WAECART|50|WAECART|om12iii.jpg|WAECART||WAECART||WAECART|95|WAECART|0|WAECART|100|WAECART|2 2222 (223)"
["WAEC_ContinueRedirect"]=>
string(28) "/winkee/detail.php?prodid=41"
["winkee_Items"]=>
string(399) "46|WAECART||WAECART|Spy Tape|WAECART|0|WAECART|1|WAECART|5|WAECART|parsley.jpg20100604224337|WAECART||WAECART||WAECART|0|WAECART|12121212|WAECART||WAECART||WAECART|0|WAECART|5|WAECART|1 (46)&#65533;41|WAECART||WAECART|Black Rouched|WAECART|0|WAECART|1|WAECART|22|WAECART|chefhat.jpg20100601221932|WAECART|Long Tab|WAECART||WAECART|19|WAECART|97897979|WAECART||WAECART||WAECART|0|WAECART|22|WAECART|1 (41)"
["lolos_boutique_Items"]=>
string(457) "18|WAECART|Treasure|WAECART|Treasure Rock Angle Print Tank Ruffle Bottom with Gold Stones |WAECART|5|WAECART|1|WAECART|48.8|WAECART|small|WAECART||WAECART|0|WAECART|1|WAECART|0|WAECART|0|WAECART|0|WAECART|5|WAECART|48.8|WAECART|1 Treasure (18)&#65533;78|WAECART|Fillmore|WAECART|Fillmore, White Duck Vote Tee 2008|WAECART|5|WAECART|1|WAECART|26|WAECART|small|WAECART||WAECART|0|WAECART|1|WAECART|0|WAECART|0|WAECART|0|WAECART|5|WAECART|26|WAECART|1 Fillmore (78)"
["eCartCheckoutForm_state_province"]=>
string(2) "AL"
["eCartCheckoutForm_country"]=>
string(2) "US"
["eCartCheckoutForm_shipping_state_province"]=>
string(2) "AL"
["eCartCheckoutForm_shipping_country"]=>
string(2) "US"
["date"]=>
string(19) "2010-06-28 13:41:31"
["insert_order_status"]=>
string(7) "pending"
["eCartCheckoutForm_counties"]=>
string(5) "0.065"
["winkee_OrderID"]=>
int(124)
["megan_isaacs_OrderID"]=>
int(74)
["countyid"]=>
string(0) ""
["counties"]=>
string(5) "0.075"
["backorder"]=>
string(0) ""
}
Thank you,
K

Attached Files
winkeephp4.zip
Sign in to reply to this post

Jason ByrnesWebAssist

So, the countyid session is not getting a value:

["countyid"]=>
string(0) ""
["counties"]=>
string(5) "0.075"


perhaps you should be using the counties session variable

Sign in to reply to this post

Jason ByrnesWebAssist

the problem is the triggers you are using.

In each of the rules you are using a trigger for the total being equal to a value.


but then another trigger for less than or equal to a different value.

I think you should be using Greater than or Equal ">=" for the first trigger instead of Equal "="

Sign in to reply to this post

watercolor346374

shipping still not showing

Hi Jason,
I changed the = to >= and the shipping still does not show up.

Thank you,
K

Sign in to reply to this post

watercolor346374

Hi Jason,
I went back into the ecart object...none of my changes took, so I redid it and tested again, they took and the shipping is correct. I do notice that even thought shipping label does not show in my cart, if I get to the confirm, and the shipping shows, then I go back to change my cart and add more, the shipping is being added into the cart total...how do I prevent the shipping from showing in the cart...when the cart is fresh, it does not show.

Sign in to reply to this post

Jason ByrnesWebAssist

well, once the shipping country is set in a session, the shipping will always be appied.


you could add the following code to the cart page to unset the shipping:

php:
<?php

if(!session_id()) session_start();
if(isset(
$_SESSION["eCartCheckoutForm_shipping_country"])) unset($_SESSION["eCartCheckoutForm_shipping_country"]); 
?>
Sign in to reply to this post

watercolor346374

Placed it at different parts of the page and still the total reflects the shipping

Sign in to reply to this post

watercolor346374

shipping not unsetting

Hi Jason,
Now I see the problem...If I shop and then at check out add the info and input US, I get to my confirm page. Then I decide to modify the info and click the button go back to the checkout page then change the country, go to the confirm page, the shipping reflected is the shipcost for the us and out of us combined. How can the shipping be unset in the confirm page when a customer wants to change their info? They will have to change it all since the page will have validations.

Sign in to reply to this post
loading

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