Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

'Add to Cart' Alert Message

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 02-08-2011, 06:17 AM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: 'Add to Cart' Alert Message

Quote:
Originally Posted by PhilJ
Here you go - If anyone can improve it, please share here

Is it possible for 4.1.x version also?
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #12  
Old 02-08-2011, 10:46 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: 'Add to Cart' Alert Message

Quote:
Is it possible for 4.1.x version also?
This is for v4.3.x and v4.4.x only I'm afraid.

I have updated the install files, which you can get here

Thanks to Steve
__________________
xcartmods.co.uk
Reply With Quote
  #13  
Old 02-28-2011, 12:23 PM
 
graffix graffix is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 39
 

Default Re: 'Add to Cart' Alert Message

Quote:
Originally Posted by nickff
**NEVERMIND**

I had edited my buy now button and that's what broke it.

**/NEVERMIND**

Quick question- For the Ajax add to cart functionality to be in place, I just need to check "Update mini-cart in background on product list and product details pages" in general settings, right? I'm struggling just to get the ajax add to cart to work, and wanting to make sure I'm not missing something in the admin.

Let me know, thanks!

What is the default value of the Buy Now button that you refer to. I have edited mine as well, and I believe that is why I can't get this mod working. Is it originally just "Add To Cart"? Also, could I change this value elsewhere to make it work with my buy it now button?
__________________
version 4.4.3
X-payments
sales and stats
Reply With Quote
  #14  
Old 03-06-2011, 08:10 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: 'Add to Cart' Alert Message

6th March 2011 - The mod has been updated to display upselling items properly on the search results pages and it now has proper language labels Here
__________________
xcartmods.co.uk
Reply With Quote
  #15  
Old 03-06-2011, 03:27 PM
 
graffix graffix is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 39
 

Default Re: 'Add to Cart' Alert Message

I followed all the instructions, but when I add an item to the cart firebug trips on this error:

window["Cart_Alert_Product_" + this.productid] is not a function

Line 383
__________________
version 4.4.3
X-payments
sales and stats
Reply With Quote
  #16  
Old 03-07-2011, 12:49 AM
 
graffix graffix is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 39
 

Default Re: 'Add to Cart' Alert Message

I think I may have an idea as to what is going on. It looks like cart_alert.tpl isn't getting loaded. I have a feeling this is because I have xcart installed in a subdirectory. How can I change the include to make it call my subdirectory?
__________________
version 4.4.3
X-payments
sales and stats
Reply With Quote
  #17  
Old 03-07-2011, 09:16 AM
 
graffix graffix is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 39
 

Default Re: 'Add to Cart' Alert Message

Man I just don't get it, I'm not dumb and I followed the instructions to a Tee. Either the instructions are not written correctly, or they are just plain wrong. For some reason the include isn't happening, anyone who could help me with this it would be greatly appreciated.
__________________
version 4.4.3
X-payments
sales and stats
Reply With Quote
  #18  
Old 03-07-2011, 09:52 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: 'Add to Cart' Alert Message

Having the store in a subdir should not affect the mod in anyway.

Try running cleanup.php afterwards.

If you are using an alternative skin, check that you have added the code in step 3 to the correct file.
__________________
xcartmods.co.uk
Reply With Quote
  #19  
Old 03-07-2011, 10:04 AM
 
graffix graffix is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 39
 

Default Re: 'Add to Cart' Alert Message

I followed all the instructions, patched the DB with the included SQL queries, added all the code, switched back to the default skin just to make sure, even though the skin i'm using still uses service_head.tpl. Here is what my service_head.tpl looks like

{*
$Id: service_head.tpl,v 1.1 2010/05/21 08:32:02 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{get_title page_type=$meta_page_type page_id=$meta_page_id}
{include file="customer/meta.tpl"}
{include file="customer/service_js.tpl"}
{include file="customer/service_css.tpl"}
{if $canonical_url}
<link rel="canonical" href="{$current_location}/{$canonical_url}" />
{/if}
{if $config.SEO.clean_urls_enabled eq "Y"}
<base href="{$catalogs.customer}/" />
{/if}
{if $main eq "product" || $main eq "search" || $main eq "products" || $main eq "catalog"}
<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}
{load_defer_code type="css"}
{load_defer_code type="js"}


and again the debugger error I get in firebug is:

window["Cart_Alert_Product_" + this.productid] is not a function

Line 383

I hope I don't seem like a complete idiot, I am new to xcart and smarty, but the instructions are PAINFULLY simple and I have followed them, any ideas?
__________________
version 4.4.3
X-payments
sales and stats
Reply With Quote
  #20  
Old 03-07-2011, 10:04 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: 'Add to Cart' Alert Message

Add the code after..

{load_defer_code type="css"}
{load_defer_code type="js"}
__________________
xcartmods.co.uk
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:47 PM.

   

 
X-Cart forums © 2001-2020