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

Popup - Item Added to Cart

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #31  
Old 03-29-2010, 03:46 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Re: Popup - Item Added to Cart

Hi All & Hi Autobulbs!

Thanks for the mod - it's great! Just got it working on the site!

I've noticed that the pop-up only appears when you add an item from within the category. When you're in the product description itself, the pop-up doesn't appear?

Is this right, or am I missing something? (Probably, hehe!)

I wonder if there might be an easy way to get the pop-up to disappear after 3 seconds, (or so)?

Anywho - Thanks again!
__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote
  #32  
Old 03-29-2010, 04:30 AM
 
autobulbs autobulbs is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Southampton, UK
Posts: 68
 

Default Re: Popup - Item Added to Cart

Make sure this code

Code:
# Item Added Module if (!empty($active_modules["Item_Added"])) include $xcart_dir."/modules/Item_Added/item_added.php";

is in product.php

and to get it to disappear after three seconds put this at the top of item_added.tpl
Code:
<script type="text/javascript">setTimeout(item_added_close(), 3000);</script>

I've not tested that, but if you get errors from it, put it in the <head></head> area in home.tpl like this

Code:
{if $item_added eq 1} <script type="text/javascript">setTimeout(item_added_close(), 3000);</script> {/if}
__________________
Autobulbs Direct Ltd
X-Cart Version: 4.2.2
eWay Designs - Custom X-Cart Templates / CMS Websites / Bespoke web applications
Reply With Quote
  #33  
Old 03-29-2010, 04:33 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Re: Popup - Item Added to Cart

Aaah - I'm a fool..!! Must have completely missed that section!

Very sorry! Thank you ever-so!
__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote
  #34  
Old 03-29-2010, 04:43 AM
 
autobulbs autobulbs is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Southampton, UK
Posts: 68
 

Default Re: Popup - Item Added to Cart

Quote:
Originally Posted by Learner
Thanks autobulbs for your effort now it works fine for me for all browser. It is a great mod.But when a customer added product to cart they can't find this popup at an instant, because it is now fixed with menu cart.tpl.I want this popup to scroll through the page for better understanding of customer that the product is actually added to cart.

I'm guessing (not tried or tested) that you can move this code
Code:
{if $item_added eq 1}<div class="item_added" id="item_added_box"><div>{include file="customer/item_added.tpl"}</div></div>{/if}
out of the menu_cart.tpl and put it at the bottom of home.tpl

Then in your main.css (or skin1.css) use position: fixed instead of position:absolute on the .item_added element. You'll probably have to change the top and left values to get it to where you want it on the screen.
__________________
Autobulbs Direct Ltd
X-Cart Version: 4.2.2
eWay Designs - Custom X-Cart Templates / CMS Websites / Bespoke web applications
Reply With Quote
  #35  
Old 06-04-2010, 10:55 PM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Popup - Item Added to Cart

Autobulbs , I have added this code at the bottom of my home page,before /body and remove it from menu_cart.tpl and adjust the css but I canot get popup at the right position it shows bottom position and not scroll through the page.

Actually I want to view these on top of the cart at the rhs of the page and also want to get this when I scroll the page from top to bottom.

How to do that?

The mod is excellent and works fine for me.

Thanks.
__________________
4.6.1 Platinum


Reply With Quote
  #36  
Old 06-07-2010, 03:17 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Popup - Item Added to Cart

Hi Autobulbs Any solution to make the popup scroll through the page but when a customer add product to cart it will remains at the top of minicart .

Any solution??

Thanks for such great mod.
__________________
4.6.1 Platinum


Reply With Quote
  #37  
Old 06-09-2010, 02:16 AM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: Popup - Item Added to Cart

Excellent mod.How to make it float.Currently it is fixed it above the cart.But when I scroll down the page the this popup will remain at the top.I want to make it work as a floater.How to do that?

thanks
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #38  
Old 07-07-2010, 04:36 AM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: Popup - Item Added to Cart

Autobulbs any solution to solve the issue of making popup floating??

wait for your reply.
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #39  
Old 07-08-2010, 09:57 AM
 
RahulNeo RahulNeo is offline
 

Member
  
Join Date: May 2010
Posts: 16
 

Default Re: Popup - Item Added to Cart

Can I make some lightbox effect ?? That is when we add some product then a light box effect will come and immediately the popup open and move all the page when we scroll from top to button but display above cart?

How to achieve autobulbs this effect??

Thanks for fine codes..
__________________
X Cart Gold 4.3.1
X Cart Pro 4.3.2
Reply With Quote
  #40  
Old 07-30-2010, 02:09 PM
 
worldomega worldomega is offline
 

Advanced Member
  
Join Date: Apr 2009
Posts: 79
 

Default Re: Popup - Item Added to Cart

Anyone successful in implementing for 4.3?
__________________
Using 4.3.1 and looking forward to 4.4. I wish for easy upgrade!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 02:43 PM.

   

 
X-Cart forums © 2001-2020