X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   X-Cart popup messages (https://forum.x-cart.com/showthread.php?t=58343)

welly 07-22-2011 08:02 AM

Re: X-Cart popup messages
 
Thanks Steve. I'll give it a go.

I assume I won't have any problems when I change domain? I'm working on a subdomain at the moment (xcart.traininglines.co.uk) but will move to www.traininglines.co.uk shortly.

Cheers

Welly

cflsystems 07-22-2011 01:14 PM

Re: X-Cart popup messages
 
No, you won't have any problems with domain name

welly 07-23-2011 01:58 AM

Re: X-Cart popup messages
 
I've installed it, and so far it looks great. Money well spent!

I'll admit I found it a bit tricky to pick through the install to avoid the 'add to cart' stuff, but that says more about me than the mod I think.

Thanks for your help.

Welly

cflsystems 11-12-2011 12:21 PM

Re: X-Cart popup messages
 
Since I've been asked few times here is how to make the popup messages to auto close after some time period. In /skin/common_files/js/ajax.add2cart.js and in /skin/common_files/customer/dialog_message.tpl where the mod colorbox code is added add to options

onComplete: function(){ setTimeout($.fn.colorbox.close,5000); },

That will set the auto close to 5 seconds (change the number as needed). Of course you can add to dialog_message.tpl only and it will apply to messages only

tqualizerman 12-07-2011 04:22 PM

Re: X-Cart popup messages
 
Hi Steve,

Is it possible to employ this in place of the native X-Cart log in popup (4.4x)?

cflsystems 12-07-2011 06:41 PM

Re: X-Cart popup messages
 
No I don't think so. XC uses this http://jqueryui.com/demos/dialog/ and it's way too deep into the core. You can however style the login popup to look like colorbox - it's all css, it may have some js control thought

tqualizerman 12-07-2011 07:32 PM

Re: X-Cart popup messages
 
I'm wondering if it might still be possible to call. For instance, here's how the log in link works (at least from the one page checkout module):

<a title="{$lng.lbl_sign_in|escape}" href="login.php" onclick="javascript: popupOpen('login.php'); return false;">({$lng.lbl_sign_in|lower|escape})</a>

Is there any way to replace popupOpen function with your modules' function?

cflsystems 12-08-2011 02:21 PM

Re: X-Cart popup messages
 
I have not tried but the problem is not to make it show there the problem will be with the login button to execute properly

tqualizerman 12-08-2011 02:28 PM

Re: X-Cart popup messages
 
I'd be happy to test this, but would need a hint about how to make your module call login.php. Any ideas?

elmirage001 01-14-2012 11:21 AM

Re: X-Cart popup messages
 
Hi Steve,

Will your mod work with:

Phil's new Ability template

and

AJAX options:
Update mini-cart in background on product list and product details pages "Unchecked"

Thanks!

Paul


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

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