View Single Post
  #50  
Old 06-02-2011, 01:33 PM
 
welly welly is offline
 

eXpert
  
Join Date: Mar 2011
Location: UK
Posts: 209
 

Default Re: 'Add to Cart' Alert Message

I think I have figured out why the alert doesn't work on the manufacturer pages.

I assumed that adding the condition '$main eq "manufacturer_products"' to the list of conditions in the skin/common_files/customer/service_css.tpl file would be enough, but obviously it wasn't.

I've been looking at this again today, and it seems that similar conditions also exist in skin/common_files/modules/Cart_Alert/cart_alert.tpl, and therefore if you add the manufacturer_products condition to service_css.tpl then you must also add it to cart_alert.tpl. Otherwise, the add to cart process calls a function that never gets defined, which in turn stops the inventory from updating as it should.

There are 2 condition statements in cart_alert.tpl, and manufacturer_products needs to be added to the second one.

Alas, it doesn't help the problem with pages that have featured products at the top, but it is an improvement nonetheless.

Welly
__________________
X-Cart Business 5.3.6
Various add-ons

www.traininglines.co.uk
Reply With Quote