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
  #11  
Old 08-12-2007, 11:19 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?

forgot about that white page...i will have a look at the cart php page again
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #12  
Old 08-13-2007, 06:31 PM
  amenterprises's Avatar 
amenterprises amenterprises is offline
 

Member
  
Join Date: Mar 2006
Location: Western Sydney, Australia
Posts: 27
 

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

The popup message works great for a single product view (4.17 Crystal Blue), but don't work on the products list for the "buy it now" button. Any ideas here?
__________________
YankeeRoo
Batteries, Battery Chargers & Precision Test and Measurement Equipment
http://www.yankeeroo.com

X-Cart components info:
X-Cart version 4,2,1
X-AOM
X-SpecialOffers
PHP 5.2.5
MySQL server 5.0.32-Debian_7etch5
Web server Zeus/4.3
Operation system Linux
Perl 5.008008
BCSE Order Processing Made Easy
BCSE Preorder/Backorder
Reply With Quote
  #13  
Old 03-08-2008, 04:24 PM
 
uglysign uglysign is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 70
 

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

Jinkies! finally find something i can use.... but

Is there a way to get this alert message to appear for a few seconds then close?

Yes yes, i know theres mods for sale. A bit tapped for now on the funds.


Thanks all
__________________
4.4.3
One Page Checkout :: OnSale :: Download Expander
Smart Template by X-Cart MODS
Reply With Quote
  #14  
Old 03-08-2008, 06:59 PM
 
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?

you would have to use javascript popup window with a timer (or a div if you so choose) to close instead of an alert, since you can close a window (or div) but not an alert
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #15  
Old 03-09-2008, 05:54 AM
 
uglysign uglysign is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 70
 

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

err, thanks ineb

anychance on how to go about writing this? So far i havent touched much of javascript because im not familar withit. Only changes on things such as above i'll try. JS always seemed like the bully of the code not wanting to be bothered with.

Thanx for your reply!
__________________
4.4.3
One Page Checkout :: OnSale :: Download Expander
Smart Template by X-Cart MODS
Reply With Quote
  #16  
Old 03-09-2008, 02:26 PM
 
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?

currently working on a customer's mod, so i would have to get back to this later on
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #17  
Old 03-13-2008, 12:34 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 put up the mod at http://xcart-toolshop.com/itemaddedmsgmod.html
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #18  
Old 03-13-2008, 03:53 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?

This code looks really promising. But I am a little confused by the code you provide after -

"now in a template and location you so choose, add..."

Could you provide an example? What and where should that code be placed? Something like products.tpl? I would really like this to work in the products list.

Also, would this mod be 4.1.2 and 4.1.9 compatible as I see you are using Pro 4.0.18.

Thanks for your help
__________________
xcartgold 4.5.4
xcartgold 4.5.5
Reply With Quote
  #19  
Old 03-13-2008, 09:50 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?

its not product specific, so if you want to put it in products.tpl you can but it wont be on a per product basis, so you would put it before the {section}{/section} (or maybe it was {foreach}{/foreach}) loop or after...i would suggest putting it in the minicart, somewhere visible to the customer that wont get mixed up with other info

an item added to cart will imply that any item was added, so putting it next to a single product in a products list is not a good idea, which is why i suggested putting it before the loop

you can make it product specific but that requires more code since you need to check not only for the product but match the product options as well

this code was made for 4.1.x, 4.0.x should be similar but i havent bothered to look yet

what this code does is it will display the message for 5 seconds once the script finishes loading (not to be mistaken for a complete page load) and then clears it, you can adjust the time if you so choose
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
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 10:37 AM.

   

 
X-Cart forums © 2001-2020