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)

xtech 02-08-2011 06:17 AM

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?

PhilJ 02-08-2011 10:46 AM

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 :)

graffix 02-28-2011 12:23 PM

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?

PhilJ 03-06-2011 08:10 AM

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

graffix 03-06-2011 03:27 PM

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

graffix 03-07-2011 12:49 AM

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?

graffix 03-07-2011 09:16 AM

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.

PhilJ 03-07-2011 09:52 AM

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.

graffix 03-07-2011 10:04 AM

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?

PhilJ 03-07-2011 10:04 AM

Re: 'Add to Cart' Alert Message
 
Add the code after..

{load_defer_code type="css"}
{load_defer_code type="js"}


All times are GMT -8. The time now is 01:36 PM.

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