mp88 Posted January 4, 2013 Share Posted January 4, 2013 I’m trying to justify numbers in all places through the BO, basically to look like this: Price(s) – just a product price; Tax(s) – if applicable, if not then zero; Total – sum of above. But we can get only this -> see attached. Numbers look very confusing for customer. I thought, it is basic presta’s option, isn’t it? May be I missed something? Anyway, any tips to resolve it much appreciated. (Presta 1.4.8.2) Link to comment Share on other sites More sharing options...
tdr170 Posted January 4, 2013 Share Posted January 4, 2013 Taxes should be excluded not included otherwise tax will be added twice. Link to comment Share on other sites More sharing options...
mp88 Posted January 5, 2013 Author Share Posted January 5, 2013 Thanks for reply. With "taxes excluded" option, cart block doesn't display tax line & add taxes, pls have a look at pics. It seems, this straightforward way (Price+Tax=Total) to display calculation for customer is not an option in presta. ?? Besides even on the same page, the totals are not matching! What is solution? Is the only option to change a code? Link to comment Share on other sites More sharing options...
tdr170 Posted January 5, 2013 Share Posted January 5, 2013 Did you add a tax rule to each product for your state. When not logged in tax will not be added to the cart because it does not know what tax to charge. I can almost guarantee this is a setting you have as my cart and taxes work perfectly. You need to have tax excluded and figure out why tax is not added to cart. Do you have tax enabled in payment, taxes. There are so many reasons why this could happen and hard to fix from just your pics without seeing all your settings in the BO. If you want I can take a look at your BO settings send me log in for Admin. Here is a code that will display the tax line in cart reagrdless of tax included or not. modules/blockcart/blockcart.php Change this else $taxCalculationMethod = Group::getDefaultPriceDisplayMethod(); $useTax = !($taxCalculationMethod == PS_TAX_EXC); To this else $taxCalculationMethod = Group::getDefaultPriceDisplayMethod(); $useTax = true; /*!($taxCalculationMethod == PS_TAX_EXC)*/; 1 Link to comment Share on other sites More sharing options...
mp88 Posted January 5, 2013 Author Share Posted January 5, 2013 Thank you for the tip to enable taxes in blockcart. My I ask you 2 more questions? Would you mind to share: where to change “Price” to “Total” in line “Cart: 1 product 105.00 USD”? where to replace “Estimated Sales Tax” with “Tax (real tax name specified in BO)”? I have attached the screenshot for details. Thanks greatly for your time. Link to comment Share on other sites More sharing options...
tdr170 Posted January 5, 2013 Share Posted January 5, 2013 For item #1 you can change line 47 of ..modules/blockuserinfo/blockuserinfo.tpl to this {if $priceDisplay == 2} the cart will show price with tax not sure how to make it add shipping. It still works a little funny in that when placing item in cart it will only show product price on a page refresh or clicking on a link to load another page it shows product + Tax. For item number 2 not sure what you mean by real tax name I assume you are referring to the State or Country. Not sure that is possible but in themes/yourtheme/shoppingcart.tpl around line 103 you can change the text that is displayed. Link to comment Share on other sites More sharing options...
mp88 Posted January 6, 2013 Author Share Posted January 6, 2013 Thank you for taking your time. #1 after enabling taxes in blockcart (as you suggested) the cart shows price+tax already. The description of this global variable says: $priceDisplay (current price display settings [currency dependent]). It just toggles the option: tax excluded=1 OR included = else, not sure if it =2, may be =0. #2 under “real tax name” I meant BO>Payment >Taxes>Name: [Tax name to display in cart and on invoice, e.g., VAT] Link to comment Share on other sites More sharing options...
Joy Laney Posted November 21, 2013 Share Posted November 21, 2013 I am having the same problem with tax adding twice but I don't see a solution for that here. It shows in my cart before checkout and then adds it again once they select their payment method. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now