iantooke Posted November 5, 2013 Share Posted November 5, 2013 (edited) Hi, I wonder if anyone can help me, I have added some () Brackets around the cart tax price by modifying themes/theme/modules/blockcart/blockcart.tpl as below {if $show_tax && isset($tax_cost)} <span id="cart_block_tax_cost" class="price ajax_cart_tax_cost">{$tax_cost})</span> <span>({l s='Tax' mod='blockcart'}</span> <br/> {/if} Which works but only after you refresh the page. After you add an item and before you refresh the page it shows no closing bracket? I have been looking for hours!! But i cannot find why this is happening?? Can anyone help?? Thanks Ian Edited November 5, 2013 by iantooke (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 5, 2013 Share Posted November 5, 2013 it's because with AJAX query, after adding product to cart script changes the contents of span: <span id="cart_block_tax_cost" class="price ajax_cart_tax_cost"> it mean that contents will be removed what to do? place brackets outside this span Link to comment Share on other sites More sharing options...
iantooke Posted November 5, 2013 Author Share Posted November 5, 2013 (edited) Hi Vekia, I have tried that in all different ways, for example: {if $show_tax && isset($tax_cost)} <span id="cart_block_tax_cost" class="price ajax_cart_tax_cost">{$tax_cost}</span>) <span>({l s='Tax' mod='blockcart'}</span> <br/> {/if} But the closing bracket never appears after the price?? Edited November 5, 2013 by iantooke (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 5, 2013 Share Posted November 5, 2013 you need to define css styles to place it in correct position (display:inline-block; float:right;) Link to comment Share on other sites More sharing options...
Ganesh Hipparkar Posted January 6, 2014 Share Posted January 6, 2014 (edited) Hello Vekia I just wanted to show Service tax in this format i.e 12.36% in a cart but currently it is showing tax in this form 123.60 in a cart What should I do? Thanks in advance Thanks, Ganesh Edited January 6, 2014 by Ganesh Hipparkar (see edit history) Link to comment Share on other sites More sharing options...
Ganesh Hipparkar Posted January 7, 2014 Share Posted January 7, 2014 i've figured out the service tax problem.You need to go to classes->tax->TaxCalculator line no 80 return $price_te * (1 + ($this->getTotalRate() / 100); just replace that line with this return $price_te * (1 + ($this->getTotalRate() / 100)/10); Thanks, Ganesh Link to comment Share on other sites More sharing options...
vekia Posted January 7, 2014 Share Posted January 7, 2014 thank you for posting solution btw. you will have always the same value of service tax ? or different for certain products you've got? Link to comment Share on other sites More sharing options...
Ganesh Hipparkar Posted January 7, 2014 Share Posted January 7, 2014 (edited) thank you for posting solution btw. you will have always the same value of service tax ? or different for certain products you've got? you welcome vekia.No the service tax value is different for certain products Edited January 7, 2014 by Ganesh Hipparkar (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts