![]() |
Quote:
Yes that is the same problem. If 'display cart/order totals including tax' but in the way I 'think' Jeanne has it. This way actually shows tax calculation on each value in the cart. e.g. with the box checked Subtotal: $10.31 Discount: $0.95 Discounted subtotal: $9.28 Shipping: $5.38 TOTAL: $14.65 Including: Sales Tax: $1.16 e.g. without the box checked Subtotal: $9.49 Discount: $0.95 Discounted subtotal: $8.54 Shipping: $4.95 Sales Tax 8.625%: n/a TOTAL: $14.65 e.g. when customer is logged in (the way I want it) Subtotal: $9.49 Discount: $0.95 Discounted subtotal: $8.54 Shipping: $4.95 Sales Tax 8.625%: $1.16 TOTAL: $14.65 Certainly will post if I come up with the solution. Jeanne am I correct in assuming what I did about your taxes calculation? |
If the tax zone is looking for cities then the only way that you will get taxes to show with the zip code estimate is to either build a routine in cart.php that will translate the zip to a city or set up your tax zone by zip code.
if($zipcode_estimate >= 10001 && $zipcode_estimate <= 10002){ $config["General"]["default_city"] = "A City"; }elseif($zipcode_estimate >= 10003 && $zipcode_estimate <= 10004){ $config["General"]["default_city"] = "Another City"; } (I don't know what the correct zip codes would be.) I think that it would be easier to set up your tax zone up by zip code though so if you needed to change any zip codes you would not have to dig through the code. |
Sorry I didn't see that part about having that box unchecked before.
That is the way that I have it on my site (The "Display cart/order totals including tax" is unchecked). It looks like this when someone enters a zip code (not logged in) that is from California. Subtotal: $32.95 Shipping: $2.00 California State Tax 7.25%: $2.39 TOTAL: $37.34 |
OK Duh, I obviously don't keep close enough track on what I change in my files. Go to main/customer/cart_totals.tpl
Instead of Code:
{if $cart.taxes and $config.Taxes.display_taxed_order_totals ne "Y"} Code:
{if $cart.taxes and $config.Taxes.display_taxed_order_totals ne "Y"} That should get the tax to show up instead of n/a |
THANK YOU JEANNE! That fixed it. You are a star!
|
=D> ALL HAIL JEANNE =D> Thank you . Also special thanks to Rackit and all others who. But right now Jeanne you are the :-#
|
Got it working on 4.0.13. The problem I was having was with the taxes, but Jeanne's cart_totals.tpl tweak fixed my issue.
Thanks, Jason |
I use xcart 4.0.13
and modify cart.php and cart_totals.tpl as follow 1- cart.php after Code:
x_session_register("cart"); Addition: Code:
x_session_register("shipping_country_name"); 2-cart_totals.tpl Addition: Code:
{if $estimate ne "NO"} I setup zones manually and all shipping price depending on country only If I choose the country form Drop-Down list I have no change (the shipping price stile 0$) for check on cart.php I use this url Code:
http://www.sanaabel.com/estore/cart.php?shipping_country=US I found it works good with no error (correct value of shipping price) I down't know what I do? I think I need to modify in cart_totals.tpl . |
Has anyone come up with a solution to this one:
Quote:
This happens when using the Canada Post Sell Online Shipping Module and entering a US zip code. I am wondering if Canada Post requires a State as well? Thanks, Jason |
update mod
Here we are over a year old on this mod. Over 9 pages to read thru and try to figure out what was good is not good now and need to change that to this to make it work now. Can someone post the most current code for 4.0.14. This way we can start from there to keep this mod alive.
Thank you |
All times are GMT -8. The time now is 12:49 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.