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)

nickff 12-10-2010 01:08 PM

'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!

PhilJ 12-11-2010 04:56 AM

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 *

Duramax 6.6L 12-11-2010 05:48 AM

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.

cflsystems 12-11-2010 06:16 AM

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

PhilJ 12-11-2010 10:33 AM

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

Duramax 6.6L 12-11-2010 01:56 PM

Re: 'Add to Cart' Alert Message
 
Thank you very much, Phil

nickff 12-11-2010 09:08 PM

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!

nickff 12-14-2010 05:28 AM

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!

cflsystems 12-15-2010 07:22 PM

Re: 'Add to Cart' Alert Message
 
1 Attachment(s)
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

bitofeverything 01-24-2011 10:57 AM

Re: 'Add to Cart' Alert Message
 
Works great. I added "return false" for the continue shopping link so the page does not refresh.


All times are GMT -8. The time now is 07:52 AM.

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