Jump to content

New Line in Shopping Cart Summary - Enabling AJAX


Recommended Posts

Hi all,

 

I have added a new line to my shopping cart summary page in order to display total tax on a separate line. I have added the following code to shopping-cart.tpl in order to do this:

 

{if $use_taxes}

<tr class="cart_summery_tax">

<td colspan="5">{l s='Total tax:'}</td>

<td colspan="2" class="price" id="total_tax">{displayPrice price=$total_tax}</td>

</tr>

{/if}

 

The above works perfectly. My only problem is that this new line is not updating when alterations to product quantities are made. AJAX updates all other lines fine.

 

I think I probably need to add some code to cart-summary.js in order to enable AJAX. I have taken a look but can not figure this out myself. AJAX is completely new to me!

 

Is anyone able to help me out with this please?

 

Cheers :rolleyes:

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...