close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

tax not showing in confirm.php

Thread began 6/25/2010 7:06 am by watercolor346374 | Last modified 6/30/2010 1:55 pm by watercolor346374 | 2870 views | 16 replies |

watercolor346374

tax not showing in confirm.php

Hi,
The tax is not showing in the confirm.php. What is odd is that this is a formula that I have used in the past and it has shown. I have gone over my files and cannot see why it will not show. I have it set in the ecart under tax tab. Florida Tax. It is based on a session variable, countyid. I have included the files.

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

Jason ByrnesWebAssist

your confirm page does not create a session named county id, it creates a session named eCartCheckoutForm_counties


<?php
if (!session_id()) session_start();
if(($row_rsCounties['countyid'] != "")) {
$_SESSION["eCartCheckoutForm_counties"] = "".$row_rsCounties['tax'] ."";
}
?>

Sign in to reply to this post

watercolor346374

still not showing

Hi Jason,
What I do not understand is why this works in another site with ecart. I set everything re the tax and tax rules identical to another site where this works. The only difference is the state. I did create the session and changed the tax rule as well as the record set and it still does not work. I get a message:

Notice: Undefined variable: row_rsCounties in /Applications/MAMP/htdocs/winkee/confirm.php on line 15
Thank you,
K

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

Jason ByrnesWebAssist

I can't say why it works in one cart and not the other.


The reason the error is occurring, is because the code to set the countyid session variable is before the code that creates the recordset, move the code to create the session so that it is after the code to create the recordset.

Sign in to reply to this post

watercolor346374

tax still not showing

Hi Jason,
I redid the session, moved it under the rs, updated the tax rule and still no luck. Not at all sure what is going on..
thank you

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

Jason ByrnesWebAssist

send a copy of the WA_eCart/winkee_PHP.php page so i can see the tax rule.

also add the following code to the confirm page:

php:
<pre><?php 

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




this will dump the session to the page, post this back along with the cart page.

Sign in to reply to this post

watercolor346374

tax not showing files

Thank you,
Here are the files.

Attached Files
winkeephp3 2.zip
Sign in to reply to this post

watercolor346374

tax not showing on confirm

Hi Jason,
Over the weekend I worked on this and redid the tax stuff in my cart (tax rule), confirm page(session variable) I used the session that has worked for me in the past (when I have to create a table for each county in the state that is taxed, in this case Florida) It still did not work. I am resending the info you requested.
Thank you for your help with this.

Attached Files
redo of tax.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I still need you to add this code to the confirm page and post back the result:

php:
<pre><?php 

if(!session_id()) session_start();
var_dump($_SESSION);
?></pre>
Sign in to reply to this post

watercolor346374

tax not showing on confirm

Hi Jason,
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) "FL"
["eCartCheckoutForm_country"]=>
string(2) "US"
["eCartCheckoutForm_shipping_state_province"]=>
string(2) "FL"
["eCartCheckoutForm_shipping_country"]=>
string(2) "US"
["date"]=>
string(19) "2010-06-27 23:35:19"
["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) "FL"
["eCartCheckoutForm_country"]=>
string(2) "US"
["eCartCheckoutForm_shipping_state_province"]=>
string(2) "FL"
["eCartCheckoutForm_shipping_country"]=>
string(2) "US"
["date"]=>
string(19) "2010-06-27 23:35:19"
["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) ""
}
Also included the file

Attached Files
confirm.php.zip
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...