View Single Post
  #12  
Old 11-29-2005, 07:37 PM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default

It works!

Here is the code:
in cart.php
Code:
Change this in the redirect section: if(!empty($HTTP_REFERER)) { func_header_location($HTTP_REFERER); to this: if(!empty($HTTP_REFERER)) { func_header_location($HTTP_REFERER.'$page&addedtocart=1');

In customer/product.tpl
I added this code from Jon after the add to cart button code:
Code:
{if $smarty.get.addedtocart eq "1"} Product has been added to cart {/if}

I just use text but it could have been a language var like
Code:
{if $smarty.get.addedtocart eq "1"} {$lng.txt_product_added_announ} {/if}
and added that var in the language area of the cart admin.
Reply With Quote