close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Tax the shipping charges in PS3

Thread began 7/08/2010 10:18 am by aradyne410059 | Last modified 11/27/2015 11:58 am by Ray Borduin | 1645 views | 11 replies |

aradyne410059

Tax the shipping charges in PS3

We are located in Texas and have to tax the shipping charges for any shipments to a Texas address. In sandbox mode, the shipping is not taxed. How can I fix this?

Jan

Sign in to reply to this post

Jason ByrnesWebAssist

in the WA_eCart/WA_Store_Cart_PHP.php file, find the following line:

php:
$this->ShippingIsTaxed = false;




and change it to:

php:
$this->ShippingIsTaxed = true;
Sign in to reply to this post

aradyne410059

I see the line of code – but, will this make the shipping for ALL shipments, including those going to out-of-state addresses taxable? If so, that's not what we need to do. We only need to tax the shipping when the shipment is going to an address inside Texas.

Sign in to reply to this post

Jason ByrnesWebAssist

to make this apply to Texas only,

php:
if(isset($_SESSION["eCartCheckoutForm_shipping_state_province"]) && $_SESSION["eCartCheckoutForm_shipping_state_province"] == "TX") {
    $this->ShippingIsTaxed = true;  
} else {
    $this->ShippingIsTaxed = false;  
}
Sign in to reply to this post

aradyne410059

I apologize - I'm not very familar with coding.

Is this the correct node?
If so, where should I insert the "if" clause

//start node
function DefineRules() {
$this->Discounts = array();
$this->Charges = array();
$this->Tax = array();
$this->Shipping = array();
$this->ShippingIsTaxed = false;
//Discounts
$this->Discounts[] = new WA_eCart_Rule(urldecode("CouponOnTotal"), true, "WAEC_WA_Store_Cart_CouponOnTotal");
//Charges
//Tax
$this->Tax[] = new WA_eCart_Rule(urldecode("Sales%20Tax"), true, "WAEC_WA_Store_Cart_SalesTax");
//Shipping
$this->Shipping[] = new WA_eCart_Rule(urldecode("USPS%20Shipping"), true, "WAEC_WA_Store_Cart_USPSShipping");
$this->Shipping[] = new WA_eCart_Rule(urldecode("FedEx%20Shipping"), true, "WAEC_WA_Store_Cart_FedExShipping");
$this->Shipping[] = new WA_eCart_Rule(urldecode("UPS%20Shipping"), true, "WAEC_WA_Store_Cart_UPSShipping");
}
//end node

Sign in to reply to this post

Jason ByrnesWebAssist

find this line of code:

php:
$this->ShippingIsTaxed = false;



and change it to:

php:
if(isset($_SESSION["eCartCheckoutForm_shipping_state_province"]) && $_SESSION["eCartCheckoutForm_shipping_state_province"] == "TX") {

    $this->ShippingIsTaxed = true;  
} else {
    $this->ShippingIsTaxed = false;  
}
Sign in to reply to this post

aradyne410059

I changed the code as directed and it now looks like this

$this->Shipping = array();
if(isset($_SESSION["eCartCheckoutForm_shipping_state_province"]) && $_SESSION["eCartCheckoutForm_shipping_state_province"] == "TX") {
$this->ShippingIsTaxed = true;
} else {
$this->ShippingIsTaxed = false;
}

The cart is still not taxing the shipping.

Jan

Sign in to reply to this post

Jason ByrnesWebAssist

make sure that the WA_eCart/WA_Store_Cart_PHP.php file is uploaded to the server.

if it is not taxing the shipping, this updated file is most likely not uploaded to the server correctly.

I tested this change on my local system and it functions correctly.

Sign in to reply to this post

stuff223820

I just tried the same fix and can not get it to work. All my products are set to ignore carrier shipping rules and instead are using "shipping and handling" and "additional items" to charge shipping. do i need to change code somewhere else as well?

Sign in to reply to this post

Ray BorduinWebAssist

If you send me FTP access and steps to reproduce I can debug it and see what is wrong.

Sign in to reply to this post
Did this help? Tips are appreciated...
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...