I recently upgraded to 1.4.8 and the only mod I had installed was Options Plus.
Currently I am experiencing an issue in which after a product is added to the shopping cart.
The side shopping cart totals included Taxes prior to ever asking for the customers address which would trigger the geozone.
I also notice that the tax is automatically removed once the customer makes an account and their state is selected.
however For example a customer is shown CA Sales Tax in the image which would cause people to think they are being charged by default prior to creating an account.
I would like to make it so that taxes are only displayed on the Checkout Confirmation page.
Any help is greatly appreciated
-Christian
Reason: Title adjusted
1. EDIT: system/library/tax.php
2. FIND:
Code: Select all
if (isset($this->session->data['country_id']) && isset($this->session->data['zone_id'])) {
$country_id = $this->session->data['country_id'];
$zone_id = $this->session->data['zone_id'];
} else {
$country_id = $this->config->get('config_country_id');
$zone_id = $this->config->get('config_zone_id');
}
Code: Select all
if (isset($this->session->data['country_id']) && isset($this->session->data['zone_id'])) {
$country_id = $this->session->data['country_id'];
$zone_id = $this->session->data['zone_id'];
} else {
if ($this->config->get('config_tax')) {
$country_id = $this->config->get('config_country_id');
$zone_id = $this->config->get('config_zone_id');
} else {
$country_id = 0;
$zone_id = 0;
}
}
5. FIND:
Code: Select all
public function logout() {
Code: Select all
session_destroy();
Thank you for you kind wordsQphoria wrote:Updated the post above with the new fix that should shut everyone up for a while.

Your not quit there yet

When I log in, as a customer with a Tax class different then the default one of the Store/Item, it will change Tax class only after I add an item to the cart and choose Checkout.
Before it will show prices with the default Store/Item Tax.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
You mean if you have "display prices with tax" set to YES correct?i2Paq wrote:Thank you for you kind wordsQphoria wrote:Updated the post above with the new fix that should shut everyone up for a while.![]()
Your not quit there yet![]()
When I log in, as a customer with a Tax class different then the default one of the Store/Item, it will change Tax class only after I add an item to the cart and choose Checkout.
Before it will show prices with the default Store/Item Tax.
Correct.Qphoria wrote:You mean if you have "display prices with tax" set to YES correct?
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Looking at the system/library/tax.php from the 1.4.8b patch I see:Qphoria wrote:Be sure you made all the changes above, including the change in the tax file.
Code: Select all
if (isset($this->session->data['country_id']) && isset($this->session->data['zone_id'])) {
$country_id = $this->session->data['country_id'];
$zone_id = $this->session->data['zone_id'];
} else {
if ($this->config->get('config_tax')) {
$country_id = $this->config->get('config_country_id');
$zone_id = $this->config->get('config_zone_id');
} else {
$country_id = 0;
$zone_id = 0;
}
}
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Edit:Qphoria wrote:correct.. replace that chunk with the above
I replaced mine part with the one from #2, Tax stopped working completely.
It only shows tax on the checkout page when logged on, otherwise it is without tax.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Qphoria wrote:You mean if you have "display prices with tax" set to YES correct?i2Paq wrote:Thank you for you kind wordsQphoria wrote:Updated the post above with the new fix that should shut everyone up for a while.![]()
Your not quit there yet![]()
When I log in, as a customer with a Tax class different then the default one of the Store/Item, it will change Tax class only after I add an item to the cart and choose Checkout.
Before it will show prices with the default Store/Item Tax.
In the BO goto: System -> Settings -> Tab: Option -> Display Prices With Tax:adrunkentheory wrote:Where is this setting... Display Prices with Tax?
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
I have the same problem but only in the second store; my default store calculates the sales tax just fine. Can somebody please summarize what should I do to fix it. I read the discussion but there were a lot of corrections and going back and forth, so I am not sure what I should do and in what order.djcxm wrote:Tax Added and Showing Before Checkout
by djcxm » Fri Jun 11, 2010 7:27 am
Hi All,
I recently upgraded to 1.4.8 and the only mod I had installed was Options Plus.
Currently I am experiencing an issue in which after a product is added to the shopping cart.
The side shopping cart totals included Taxes prior to ever asking for the customers address which would trigger the geozone.
Thanks for helping.
Cheers,
Valentina
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Is the store set to 'Display tax= No' in the admin panel? ..I am no expert, but spent some time trying to achieve the opposite effect (show tax before shipping is known).kwasini wrote:I followed the fix provided by Qphoria, but I still have the same problem with the cart showing sales tax, which is set for NY only, when the customer adds an item to the shopping cart. The tax goes away when the customer keys in their non-New York address. I am not sure if the fix worked for others, but it has not worked in my case, provided I followed them correctly.
Yes, I did set "Display tax=no" (and I also had on "yes" with similar results). I appreciate the help.Moggin wrote:Is the store set to 'Display tax= No' in the admin panel? ..I am no expert, but spent some time trying to achieve the opposite effect (show tax before shipping is known).kwasini wrote:I followed the fix provided by Qphoria, but I still have the same problem with the cart showing sales tax, which is set for NY only, when the customer adds an item to the shopping cart. The tax goes away when the customer keys in their non-New York address. I am not sure if the fix worked for others, but it has not worked in my case, provided I followed them correctly.
kwasini wrote:I followed the fix provided by Qphoria, but I still have the same problem with the cart showing sales tax, which is set for NY only, when the customer adds an item to the shopping cart. The tax goes away when the customer keys in their non-New York address. I am not sure if the fix worked for others, but it has not worked in my case, provided I followed them correctly.

Users browsing this forum: No registered users and 1 guest