View Single Post
  #1  
Old 11-09-2014, 01:35 AM
 
Northcore Northcore is offline
 

Newbie
  
Join Date: Feb 2014
Posts: 9
 

Default Cart summary update problem - AJAX question??

I've been a bit of butcher and in myskin/common_files/customer/head.tpl I've deleted everything in the line1 div (don't need the tabs/speedbar) and written a little cart summary using $minicart_total_items and $minicart_total_cost which also displays messages based on the amount in the cart and $store_country (e.g. spend ё10 more for free UK shipping).

Everything works except if I add a product to the cart the information doesn't get updated because that area of the page is not being refreshed. If I move to another page it catches up and is correct. If I change the Your Country it refreshes fine - this is the behaviour I need when a product is added.

So how do I trigger a refresh of head.tpl or the .line1 div when an item is added to the cart?

FYI I'm using the add to cart popup module but the behaviour is the same if I disable it.

Any help would be great - the stores nearly finished but I don't know where to start on this.
__________________
Gold Plus 4.6.4
CD SEO Custom Module
---------------
First go with X-Cart still under construction
www.northcore-europe.com/northcore-shop/
Reply With Quote