X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   'Add to Cart' Alert Message (https://forum.x-cart.com/showthread.php?t=56998)

welly 06-04-2011 04:40 PM

Re: 'Add to Cart' Alert Message
 
I haven't tested this exhaustively, but I think I have the alert working on category pages with featured products.

Step two of the installation suggests adding the following lines to service_head.tpl or service_css.tpl (depending on which iteration of the mod you install):

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

(note that in the above, the extra condition I've added for the manufacturer list is missing as it is a cut-n-paste from the installation txt file only).

I have added these lines to the top of the skin/common_files/customer/main/products_list.tpl file, and in the service_head.tpl file I have changed the first line of the above snippet to read:

{if $main eq "product"}

It seems to work on the store I'm building at the moment, but please take the usual precautions if you try it on yours just in case I've broken something without knowing (yet).

Welly

floracal 06-15-2011 08:11 AM

Re: 'Add to Cart' Alert Message
 
Quote:

Originally Posted by JWait
OK.. I made some changes and now it works sweeeeet!

Added $main eq "featured" to the list of "pages" to fix the problem of it working sometimes and sometimes not, and modified the instructions. The attached file is for version 4.4.x (tested on 4.4.3).


Works great JWait great job. Works great on 4.4.3.

Thank you.

a1deano 07-01-2011 11:42 AM

Re: 'Add to Cart' Alert Message
 
Just wondered if there is anyway way to make the pop up just stay on for a few seconds and then disappear just to show customer item was added to cart

graffix 09-01-2011 10:46 AM

Re: 'Add to Cart' Alert Message
 
Man, I have this mod working, but it WILL NOT display my upsell products for anything... It always displays the next three products in line after the one I choose. Any suggestions anyone?
EDIT**
Actually, its always displaying the first three products from that category, really odd. I have entered products into related products inside the admin panel...this is really starting to get to me.

swartzieee 04-30-2012 04:45 PM

Re: 'Add to Cart' Alert Message
 
I just downloaded this and attempted to install. I am running the Ability Template from xcartmods.co.uk. I do not get a popup at all. Any suggestions?

bitofeverything 04-30-2012 05:09 PM

Re: 'Add to Cart' Alert Message
 
check for any javascript errors in firefox/firebug

swartzieee 04-30-2012 05:13 PM

Re: 'Add to Cart' Alert Message
 
I do not see any errors??

Duramax 6.6L 04-30-2012 05:35 PM

Re: 'Add to Cart' Alert Message
 
If you are using ability, make sure any files that need to be changed are also change in the ability folder

swartzieee 04-30-2012 05:38 PM

Re: 'Add to Cart' Alert Message
 
Quote:

Originally Posted by Duramax 6.6L
If you are using ability, make sure any files that need to be changed are also change in the ability folder


I think that is my problem. I am not sure of all what files need to be edited. Guess I need to wait for Phil to respond or someone who has this mod working on Ability. What files of your Smart Template did you have to edit? I am sure Smart and Ability are pretty close.

bitofeverything 04-30-2012 06:27 PM

Re: 'Add to Cart' Alert Message
 
you have unterminated string literal js errors being generated.


All times are GMT -8. The time now is 07:37 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.