Post by john123 » Wed Mar 14, 2012 1:27 am

Hello,
I am using 1.5.1.3 version of OPENCART.
I don't want to show tax of the product in cart before users login to the shopping cart

Shopping cart is calculating tax (based on admin store zip-code) when users add product in cart even when they are not logged in. This looks confusion.

Can you please help me this how can we correct this? How can we show only price of the product in cart until user login?

Thanks!

-J

New member

Posts

Joined
Wed Sep 21, 2011 10:26 am

Post by Johnathan » Wed Mar 14, 2012 4:27 am

I haven't tried this, but you should be able to keep the store from using the store location by doing the following edit:

Code: Select all

IN:
/system/library/tax.php

REPLACE:
$this->setShippingAddress($this->config->get('config_country_id'), $this->config->get('config_zone_id'));

WITH:
$this->setShippingAddress(0, 0);

AND REPLACE:
$this->setPaymentAddress($this->config->get('config_country_id'), $this->config->get('config_zone_id'));

WITH:
$this->setPaymentAddress(0, 0); 

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by john123 » Thu Mar 15, 2012 11:24 pm

Thanks so much Johnathan! You are THE BEST :)
THIS WORKS PERFECTLY!!

-J

New member

Posts

Joined
Wed Sep 21, 2011 10:26 am
Who is online

Users browsing this forum: No registered users and 2 guests