close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

eCart6 session variable for shipping

Thread began 12/04/2014 6:51 pm by eric284736 | Last modified 12/17/2014 11:17 am by Jason Byrnes | 3593 views | 20 replies |

eric284736

eCart6 session variable for shipping

Hi Jason,

I have a shipping fee setup to only apply if the order is shipped outside the US. In the Shipping Rule it is set as Based on the session variable "CheckoutWizard_NewFromBlank_Default" != US

That still shows shipping if I select US as the country.

On a previous version of eCart I used the if session variable "eCartCheckoutForm_shipping_country" has a value "!=" to "US" but that does not work on version 6.

What am I missing?

thx!
Eric

Sign in to reply to this post

Jason ByrnesWebAssist

lets double check what session are getting set, sounds like you don't have the right session variable name.

on the confirm_cart page add the following code just before the </body tag:

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

that will dump a listing of the sessions that are set, we can use that to find the right one to use for the shipping country name

Sign in to reply to this post

eric284736

Thanks Jason. Here is the dump:
array(7) {
["WAENCRYPTEDRETURNUSED"]=>
&bool(false)
["WAENCRYPTEDRETURNSUCCESS"]=>
&bool(false)
["WAVT_login_Errors"]=>
&string(0) ""
["SecurityAssist_UserID"]=>
&string(1) "5"
["sliderhome_update_photo"]=>
&string(12) "parched3.jpg"
["eCart1_Items"]=>
&string(174) "1|WAECART|Dye-Painting with Hollis|WAECART||WAECART||WAECART|0|WAECART|1|WAECART|29.99|WAECART|1417808315844842|WAECART|0|WAECART|29.99|WAECART|1 Dye-Painting with Hollis (1)"
["WAEC_ContinueRedirect"]=>
&string(28) "/beta/store.php?prodcateid=1"
}

Sign in to reply to this post

Jason ByrnesWebAssist

looks like you haven't filled in the checkout form yet, none of the checkout form elements are int he session.

please provide a link

Sign in to reply to this post

eric284736

array(9) {
["WAENCRYPTEDRETURNUSED"]=>
&bool(false)
["WAENCRYPTEDRETURNSUCCESS"]=>
&bool(false)
["WAVT_login_Errors"]=>
&string(0) ""
["SecurityAssist_UserID"]=>
&string(1) "5"
["sliderhome_update_photo"]=>
&string(12) "parched3.jpg"
["eCart1_Items"]=>
&string(174) "1|WAECART|Dye-Painting with Hollis|WAECART||WAECART||WAECART|0|WAECART|1|WAECART|29.99|WAECART|1417808315844842|WAECART|0|WAECART|29.99|WAECART|1 Dye-Painting with Hollis (1)"
["WAEC_ContinueRedirect"]=>
&string(28) "/beta/store.php?prodcateid=1"
["WASF_CheckoutWizard_NewFromBlank_Default"]=>
&array(34) {
["plugin_from"]=>
string(38) "http://hollisart.com/beta/checkout.php"
["plugin_file"]=>
string(16) "confirm_cart.php"
["payment-type"]=>
string(10) "creditcard"
["Company_Name"]=>
string(11) "Studio Blur"
["First_Name"]=>
string(4) "Eric"
["Last_Name"]=>
string(8) "Jennings"
["Email_Address"]=>
string(19) "eric@studioblur.com"
["Phone_Number"]=>
string(14) "(828) 206-2243"
["Address_1"]=>
string(19) "894 McKinney Gap Dr"
["Address_2"]=>
string(0) ""
["Country"]=>
string(2) "US"
["State"]=>
string(2) "NC"
["City"]=>
string(9) "Mars Hill"
["Postal_Code"]=>
string(5) "28754"
["Company_Name_2"]=>
string(11) "Studio Blur"
["First_Name_2"]=>
string(4) "Eric"
["Last_Name_2"]=>
string(8) "Jennings"
["Email_Address_2"]=>
string(19) "eric@studioblur.com"
["Phone_Number_2"]=>
string(14) "(828) 206-2243"
["Address_1_2"]=>
string(19) "894 McKinney Gap Dr"
["Address_2_2"]=>
string(0) ""
["Country_2"]=>
string(2) "US"
["State_2"]=>
string(2) "NC"
["City_2"]=>
string(9) "Mars Hill"
["Postal_Code_2"]=>
string(5) "28754"
["CheckoutWizard_submit"]=>
string(8) "Continue"
["forShipping"]=>
string(0) ""
["list-phoneticlong"]=>
string(115) "190|191|189|185|184|177|176|171|187|181|182|179|180|166|159|161|164|158|162|139|143|141|142|144|153|154|156|146|160"
["PHPSESSID"]=>
string(32) "c60a281e1f3957ed3710e866e80a3088"
["kfm_cookie"]=>
string(32) "c4ca4238a0b923820dcc509a6f75849b"
["RememberMePWD"]=>
string(6) "skyler"
["RememberMeUN"]=>
string(19) "eric@studioblur.com"
["_gat"]=>
string(1) "1"
["_ga"]=>
string(27) "GA1.2.2028462982.1413320167"
}
["WAVT_confirmcart_Errors"]=>
&string(0) ""
}

Sign in to reply to this post

Jason ByrnesWebAssist

ok, so the session is:
$_SESSION['WASF_CheckoutWizard_NewFromBlank_Default']['Country_2']


your rule should be:
Based on Session variable 'WASF_CheckoutWizard_NewFromBlank_Default' is set

AND Custom Expression:
$_SESSION['WASF_CheckoutWizard_NewFromBlank_Default']['Country_2'] != 'US'

Sign in to reply to this post

eric284736

Perfect!

Thanks Jason!!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

eric284736

Jason, one more question...

I don't want any shipping charge to show until they enter the shipping address. Right now the $10 rate shows as the default until US is selected as the shipping country. How would I do that?

thx
Eric

Sign in to reply to this post

Jason ByrnesWebAssist

how are your shipping rules defined?

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