| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Popup - Item Added to Cart | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Popup - Item Added to Cart
Edit (18/8/09): For 4.2.2 code refer to this post
Hi, I am trying to put in a popup message telling a user when they have added an item to the cart. I have done this successfully on http://www.hids4u.co.uk What you may notice about this is that it isn't using SEF URL's, simply because it causes a 404 error. I am using XC_SEO Basic and have been hacking around in it all day but had no success. The conflict comes from something added to the URL redirect in cart.php that tells a bit of javascript in menu_cart.tpl to display the pop up, which XC_SEO doesn't like. Does anyone know how to either incorporate an addition to the URL in XC_SEO or know of an alternative method for getting this to display? Thanks
__________________
Autobulbs Direct Ltd X-Cart Version: 4.2.2 eWay Designs - Custom X-Cart Templates / CMS Websites / Bespoke web applications |
|||||||
#2
|
|||||||
|
|||||||
Re: Popup - Item Added to Cart
__________________
Autobulbs Direct Ltd X-Cart Version: 4.2.2 eWay Designs - Custom X-Cart Templates / CMS Websites / Bespoke web applications |
|||||||
#3
|
|||||||
|
|||||||
Re: Popup - Item Added to Cart
Just thought I would share this solution (mainly so I can refer to it myself )
Firstly, in cart.php around line 240 find: func_save_customer_cart($login, $cart); and put this underneath it: Code:
In init.php at around line 690 add this: Code:
In menu_cart.tpl at line 2 add this: Code:
Create item_added.tpl in skin1/customer and put this in it: (replace the buttons with you're own) Code:
In common.js at the bottom add this: Code:
Finally, in skin1.css at the bottom add this: (again, you will need to replace any images/stying to suit you're site) Code:
I think that's everything. It could be made much tidier, but this is just somthing I whipped up Regards - Nick Quick Edit: You will need to uncheck "redirect to cart" in general options
__________________
Autobulbs Direct Ltd X-Cart Version: 4.2.2 eWay Designs - Custom X-Cart Templates / CMS Websites / Bespoke web applications |
|||||||
#4
|
|||||||
|
|||||||
Re: Popup - Item Added to Cart
Quote:
Thanks autobulbs for your effort. Also is it possible to insert a close button and the small red window scroll through the page? |
|||||||
#5
|
|||||||
|
|||||||
Re: Popup - Item Added to Cart
Moving to Custom Mods
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||
|
|||||||
Re: Popup - Item Added to Cart
Quote:
Yes it is, I think the code is in there. It is within item_added.tpl: Code:
It just needs to be repositioned slighty. I took this actual bit from previous work i did where the box was a bit smaller (on the HIDS4U site mention in the first post). I was toying with the idea of making that area link to the basket but decided not to. I am now going to make it disappear/fade away if not closed within 10 seconds. Edit: I think I mis read your post! At the moment it is fixed in position, I will work on making it move with the page
__________________
Autobulbs Direct Ltd X-Cart Version: 4.2.2 eWay Designs - Custom X-Cart Templates / CMS Websites / Bespoke web applications |
|||||||
#7
|
|||||||
|
|||||||
Re: Popup - Item Added to Cart
Thanks autobulbs for your codes.
But some problems are-1) It is not working on IE only works on Mozilla. 2)javascript:item_added_close() not working. please help me. Thanks to all. |
|||||||
#8
|
|||||||
|
|||||||
Re: Popup - Item Added to Cart
Quote:
Change Code:
To Code:
In item_added.tpl
__________________
Autobulbs Direct Ltd X-Cart Version: 4.2.2 eWay Designs - Custom X-Cart Templates / CMS Websites / Bespoke web applications |
|||||||
#9
|
|||||||
|
|||||||
Re: Popup - Item Added to Cart
Quote:
Thanks autobulbs for your reply.But this close code again also not working.The codes are working well on Mozilla only.Is it possible to work universally on all browsers(IE,Opera,Chrome)? Thanks to all again. |
|||||||
#10
|
|||||||
|
|||||||
Re: Popup - Item Added to Cart
Hi Autobulbs. Thanks so much for a great mode. I have one problem. I▓m using Buy Together module. Not sure if you are familiar with it but when I▓m adding bundle into basket popup note doesn▓t display. Any idea?
Many thanks
__________________
Tanya x-cart version: 4.1.7 4.1.9. 4.2 |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|