Jump to content

Cart Modification


Recommended Posts

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.

 

afterrefresh.jpg

 

After you add an item and before you refresh the page it shows no closing bracket?

 

beforerefresh.jpg

 

I have been looking for hours!! But i cannot find why this is happening??  

 

Can anyone help??

 

Thanks

Ian

Edited by iantooke (see edit history)
Link to comment
Share on other sites

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

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??

 

 

bracket.jpg

Edited by iantooke (see edit history)
Link to comment
Share on other sites

  • 2 months later...

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

post-726562-0-02337700-1389015056_thumb.png

Edited by Ganesh Hipparkar (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...