hello, i have been having a few problems with opencart which have been wonderfully taken care of by bruce with his tax rate per geo zone article. thanks for that! saved me some headaches.
now, what i am wondering is this:
when i look at the home page, i show the item price plus the tax. (the base price is 16.00, when i look at the page it shows 17.12.)
i am sure that it is possible to just show the base price throughout the site until you get to the checkout, but as i am new to php and have NO experience with OOP, i am sure that i would get completely lost and break the whole program. was just wondering if someone would lend a hand and show me what to do. thanks a lot and hopefully someone understands my incoherent babbling...
ardy
now, what i am wondering is this:
when i look at the home page, i show the item price plus the tax. (the base price is 16.00, when i look at the page it shows 17.12.)
i am sure that it is possible to just show the base price throughout the site until you get to the checkout, but as i am new to php and have NO experience with OOP, i am sure that i would get completely lost and break the whole program. was just wondering if someone would lend a hand and show me what to do. thanks a lot and hopefully someone understands my incoherent babbling...
ardy
Thank you for the kind words.
If you click on the product, you should see the price displayed without tax on the product page, and everywhere else.
If so, then you have set it up as I described and the following change is also required in the file catalog\controller\home.php
I have shown what is to be removed as commented out and the replacement below.
If you click on the product, you should see the price displayed without tax on the product page, and everywhere else.
If so, then you have set it up as I described and the following change is also required in the file catalog\controller\home.php
Code: Select all
// 'price' => $currency->format($tax->calculate($result['price'], $result['tax_class_id']))
'price' => $currency->format($tax->calculate($result['price'], $result['tax_class_id'], $config->get('config_tax')))
ok...now i know that i am an idiot...
I didnt know what you meant by turn off the tax to the store...changed that and viola! it works.
should i leave that chunk of code in there, or should i go back to the original code? does it really matter.
thanks so much bruce! without you i would have been lost and would have probably given up...maybe not that far, but still...very frustrating to find such a little error.
thanks again.
I didnt know what you meant by turn off the tax to the store...changed that and viola! it works.
should i leave that chunk of code in there, or should i go back to the original code? does it really matter.
thanks so much bruce! without you i would have been lost and would have probably given up...maybe not that far, but still...very frustrating to find such a little error.
thanks again.
You are right, the search results should be shown without the taxes when $config->get('config_tax') is FALSE. The same bug exists on some other pages, too, see http://forum.opencart.com/index.php/top ... ml#msg8184 .I just noticed that the prices with tax included show up in Search page as well. You just look for "search.php" in the same folder and replace the same line from the previous post by Bruce.
P.S.: I added a new bug report at http://code.google.com/p/open-cart/issues/detail?id=47
Last edited by JNeuhoff on Sun Sep 07, 2008 3:13 am, edited 1 time in total.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Who is online
Users browsing this forum: No registered users and 1 guest