Jump to content
Sign in to follow this  

alert when adding a product to shopping cart

Recommended Posts

I'm using this contribution:



1. Open catalog/includes/header.php
add this on top:
// language definition

// give alert if new product added to the cart
if (tep_session_is_registered('new_products_id_in_cart')) {
echo '<script>alert(\''.PRODUCT_ADDED.'\');</script>';

2. open your language definition (ie: catalog/includes/language/italian.php):
add this:
define('add_cart', 'Product was added to your basket!');


the problem appears when I add to cart a product with attributes, since that each visited page in my store displays the alert :blink:

Share this post

Link to post
Share on other sites

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
Sign in to follow this