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
  #1  
Old 12-10-2010, 01:08 PM
 
nickff nickff is offline
 

Senior Member
  
Join Date: Aug 2010
Posts: 132
 

Default 'Add to Cart' Alert Message

Hi All,

I'm wanting to add one of those "information" alert boxes (you know, the ones styled up in main.css using the "message-i" class). I'm not re-directing people to the cart upon adding to cart, so I want them to know for sure they've successfully added something to their cart, and one of these handy info boxes on page refresh would be perfect.

Does anyone know how to go about firing one of those boxes off upon page refresh, post-add to cart?

Let me know if you have any ideas. Thanks all!
__________________
nick hoag
looking forward to the future
http://thefutureforward.com
xcart versions 4.2.x, 4.3.x, 4.4.x
Reply With Quote
  #2  
Old 12-11-2010, 04:56 AM
 
PhilJ PhilJ is offline
 

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

Default Re: 'Add to Cart' Alert Message

I've had a go at a mod... demo
It displays upselling products, or random products if no upselling.
Getting it to work on the products or search result pages is a bit more complex.
I can upload the mod as-is here, and maybe others can expand on it.

* Updated *
__________________
xcartmods.co.uk
Reply With Quote
  #3  
Old 12-11-2010, 05:48 AM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default Re: 'Add to Cart' Alert Message

Phil,

If you get this working 100% I would be interested in the mod. I would even be willing to pay a small fee.
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #4  
Old 12-11-2010, 06:16 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: 'Add to Cart' Alert Message

Quote:
Originally Posted by PhilJ
I can upload the mod as-is here, and maybe others can expand on it.

If you upload it here that would be great Phil, thanks. The demo looks very promising
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 12-11-2010, 10:33 AM
 
PhilJ PhilJ is offline
 

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

Default Re: 'Add to Cart' Alert Message

Quote:
If you upload it here that would be great Phil, thanks. The demo looks very promising
Here you go - If anyone can improve it, please share here
__________________
xcartmods.co.uk
Reply With Quote

The following 6 users thank PhilJ for this useful post:
am2003 (12-14-2010), candc (12-13-2010), cflsystems (12-11-2010), flyclothing (08-18-2011), gb2world (12-11-2010), tricked (12-18-2010)
  #6  
Old 12-11-2010, 01:56 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default Re: 'Add to Cart' Alert Message

Thank you very much, Phil
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #7  
Old 12-11-2010, 09:08 PM
 
nickff nickff is offline
 

Senior Member
  
Join Date: Aug 2010
Posts: 132
 

Default Re: 'Add to Cart' Alert Message

This looks fantastic Phil, thank-you so much. I'll give a go at implementing it next week and let you know how it goes.

Thanks again!
__________________
nick hoag
looking forward to the future
http://thefutureforward.com
xcart versions 4.2.x, 4.3.x, 4.4.x
Reply With Quote
  #8  
Old 12-14-2010, 05:28 AM
 
nickff nickff is offline
 

Senior Member
  
Join Date: Aug 2010
Posts: 132
 

Default Re: 'Add to Cart' Alert Message

**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!
__________________
nick hoag
looking forward to the future
http://thefutureforward.com
xcart versions 4.2.x, 4.3.x, 4.4.x
Reply With Quote
  #9  
Old 12-15-2010, 07:22 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: 'Add to Cart' Alert Message

Ok here is an improvement for 4.4.x (it may work on 4.3.x as well but not tested). Made it to work on categories list pages, read the install.txt
Attached Files
File Type: zip X-Cart_Add_to_Cart_Alert_v4.4.x_improved.zip (32.3 KB, 222 views)
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following 2 users thank cflsystems for this useful post:
am2003 (01-24-2011), heather@MX1 (05-14-2011)
  #10  
Old 01-24-2011, 10:57 AM
 
bitofeverything bitofeverything is offline
 

Member
  
Join Date: Sep 2008
Posts: 23
 

Default Re: 'Add to Cart' Alert Message

Works great. I added "return false" for the continue shopping link so the page does not refresh.
__________________
Version 4.2.2 [linux] Adult Toy Superstore
Version 4.3.0 [linux] Coochy Outlet
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 12:51 PM.

   

 
X-Cart forums © 2001-2020