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)
-   -   "Product Added" information box above product list when product is added to cart? (https://forum.x-cart.com/showthread.php?t=28010)

inebriate 08-12-2007 11:19 AM

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

amenterprises 08-13-2007 06:31 PM

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?

uglysign 03-08-2008 04:24 PM

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 :D/

inebriate 03-08-2008 06:59 PM

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

uglysign 03-09-2008 05:54 AM

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! :wink:

inebriate 03-09-2008 02:26 PM

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

inebriate 03-13-2008 12:34 AM

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

loopsound 03-13-2008 03:53 AM

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

inebriate 03-13-2008 09:50 AM

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


All times are GMT -8. The time now is 07:48 PM.

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