==================================
X-Cart Add to Cart Alert v4.4.x
www.xcartmods.co.uk
==================================

Thanks to Steve @ CFL Systems.




1) Upload files.

------------------------------------------------

2) Apply this SQL patch...

REPLACE INTO xcart_languages SET code='en', name='lbl_cart_alert_added', value='You have added...', topic='Labels';
REPLACE INTO xcart_languages SET code='en', name='lbl_cart_alert_to_cart', value='To the cart', topic='Labels';
REPLACE INTO xcart_languages SET code='en', name='lbl_cart_alert_also', value='These items may also interest you...', topic='Labels';
REPLACE INTO xcart_languages SET code='en', name='lbl_cart_alert_view', value='View Cart', topic='Labels';
REPLACE INTO xcart_languages SET code='en', name='lbl_cart_alert_continue', value='Continue Shopping', topic='Labels';
REPLACE INTO xcart_languages SET code='en', name='lbl_cart_alert_checkout', value='Checkout', topic='Labels';

------------------------------------------------

3) skin/common_files/customer/service_head.tpl

At end of template, insert...

{if $main eq "product" || $main eq "search" || $main eq "products" || $main eq "catalog" || $main eq "featured"}
<link type="text/css" rel="stylesheet" href="{$SkinDir}/modules/Cart_Alert/css/shadowbox.css" />
<script type="text/javascript" src="{$SkinDir}/modules/Cart_Alert/shadowbox.js"></script>
{include file="modules/Cart_Alert/cart_alert.tpl"}
{/if}

------------------------------------------------

4) skin/common_files/js/ajax.add2cart.js

After...

  if (this.savedData.box)
    this.savedData.box.html(lbl_added);

Insert...

	// Added to Cart Alert Start
	window['Cart_Alert_Product_' + this.productid]();
	// Added to Cart Alert End

Then change the "return true;" that is right after where you added the above to "return false;" unless you want the customer to be returned to your homepage when they click "Continue Shopping".

------------------------------------------------

5) Run www.yourstore.com/cleanup.php



NOTE - Ensure your language labels are plain text.
If you use HTML, the popup may stop working.

