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

"Product Added" information box above product list when product is added to cart?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-14-2007, 06:47 AM
 
loopsound loopsound is offline
 

Advanced Member
  
Join Date: Feb 2004
Posts: 85
 

Exclamation "Product Added" information box above product list when product is added to cart?

Could anyone tell me how I would go about making an information box appear when an item has successfully added to the cart. i.e "Product has been added to your cart"

My website does not redirect to product details page, it just list all products on the page so ideally I want the message to displays above the products list when item has been added.

I have had a look around the forums but no-one seems to have a solution.

All help gratefully recieved.
__________________
xcartgold 4.5.4
xcartgold 4.5.5
Reply With Quote
  #2  
Old 01-14-2007, 07:29 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: "Product Added" information box above product list when product is added to cart?

http://bcsengineering.com/store/catalog/XCart_ezUpsell-p-96.html
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-14-2007, 07:58 AM
 
loopsound loopsound is offline
 

Advanced Member
  
Join Date: Feb 2004
Posts: 85
 

Default Re: "Product Added" information box above product list when product is added to cart?

Thank you for your response, however this isn't really what I want.

When the product is added to minicart.tpl from my product list, I would like to display a "product added" message in the same page as the products being viewed.

Example:
1. The customer selects category from menu
2. The list of products in that category appear on multiple pages
3. The customer presses Add to Cart button of desired product in product list
4. The cart updates (mincart.tpl)
5. A"product added" message is displayed above product list (like when you save something in x-cart admin?) or perhaps as some type of pop-up box that sits at the mouse position (javascript perhaps?)

I believe istockphoto.com is a good example of what I would like. When you add an image to a lightbox (wishlist) a box appears at the cursor with the option to save product to lightbox. When item is saved to lightbox the message box at the cursor displays "item added"

I hope this makes sense.

Again, any help would be gratefully recieved
__________________
xcartgold 4.5.4
xcartgold 4.5.5
Reply With Quote
  #4  
Old 01-22-2007, 12:45 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Re: "Product Added" information box above product list when product is added to cart?

Lads, i am looking for the same thing. I can appreciate what X-Cart ezUpsell #96 does, but is overkill perhaps for what we are looking for. After adding an item i dont redirect my clients to the checkout.

Personally all I require is either a popup that says " Item added to cart" or even a similar message that appears on the refreshed item description page, that gives soem sort of notification.

Currently my users get confused if the item has actually been added, when they clcik the add to cart button.

We have a great Brain pool here - Any suggestions much appreciated.
__________________
Version 4.7.7
Reply With Quote
  #5  
Old 01-23-2007, 02:51 AM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: "Product Added" information box above product list when product is added to cart?

in product.tpl

find
Quote:
{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}

and replace with
Quote:
{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();alert('Item added to cart.')"}
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #6  
Old 01-23-2007, 06:59 AM
 
loopsound loopsound is offline
 

Advanced Member
  
Join Date: Feb 2004
Posts: 85
 

Default Re: "Product Added" information box above product list when product is added to cart?

I tried the above but it didn't seem to work? The site I would like to implement this change is a 4.1.2 site, maybe that's why?

Where should the alert be seen? Any further help would be great...I am really hoping to solve this one. It would solve alot of customer confusion

Cheers
__________________
xcartgold 4.5.4
xcartgold 4.5.5
Reply With Quote
  #7  
Old 01-23-2007, 11:09 AM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Re: "Product Added" information box above product list when product is added to cart?

Fantastic - this worked a treat for me (V4.0.19). Just what i needed - the brains trust comes to the rescue again
__________________
Version 4.7.7
Reply With Quote
  #8  
Old 08-11-2007, 11:28 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Re: "Product Added" information box above product list when product is added to cart?

Confirm also works in 4.1.8
__________________
Version 4.7.7
Reply With Quote
  #9  
Old 08-12-2007, 12:20 AM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: "Product Added" information box above product list when product is added to cart?

i would recommend against the code i gave you before, since i believe the alert will still come up when there is an error with adding the product

instead in include/cart_process.php (or cart.php for 4.0.x), after
Code:
if ($productid && $amount) { if ($amount < $added_product["min_amount"]) { $return["redirect_to"] = "error_message.php?access_denied&id=31"; return $return; }
put
echo "<script>alert('Product has been added.')</script>";
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #10  
Old 08-12-2007, 03:30 AM
 
loopsound loopsound is offline
 

Advanced Member
  
Join Date: Feb 2004
Posts: 85
 

Default Re: "Product Added" information box above product list when product is added to cart?

New code works like a charm. Thanks so much!!

I was wondering however if there is any way to display this alert box without/before the refresh. At present when customer presses "add to cart" a white page and the alert follows and a "if page does not refresh...etc" page displays .

I would like to achieve the following....

1. The add to cart button is pressed,

2. Alert box is displayed on the current page rather than on the blank.

3. Customer presses ok on alert box

4. Then site refreshes - if it has to.

This would be a fantastic additive to X-cart, if the box could be displayed on current page where customer is adding product from. I know I've been waiting for this for ages!!!!!

All help greatfully recieved.
__________________
xcartgold 4.5.4
xcartgold 4.5.5
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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:42 PM.

   

 
X-Cart forums © 2001-2020