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)

cflsystems 03-06-2011 07:40 PM

X-Cart popup messages
 
Custom mod for X-Cart 4.4.x system messages. Get rid of the default ridiculous way QT coded the messages to show in the right upper corner. The mod uses colorbox jQuery that comes with XC and templates so no additonal files to install. Shows the messages in the center of the browser window in an easy to see/read way. Shows product added to cart message and uses the the buttons defined in cart. Also fixes a bug in XC-IE when adding coupon in OPC. Here is a sneak preview.

Get the mod here
https://www.cflsystems.com/system-messages-mod-for-x-cart.html

http://www.cflsystems.com/public/everyone/add_coupon_error_cart_1.png

http://www.cflsystems.com/public/everyone/products_added_product_page_1.png

ADDISON 03-07-2011 12:32 AM

Re: X-Cart popup messages
 
This is not free. You should move it to Third Party Add-ons.

cflsystems 03-07-2011 02:51 AM

Re: X-Cart popup messages
 
Sorry. I guess I posted in the wrong place. Can't move it though. QT Alex can you please move. Thanks

qualiteam 03-07-2011 07:43 AM

Re: X-Cart popup messages
 
OK. Moved to "Third Party Add-Ons" forum.

JacksmithxD 03-08-2011 04:08 PM

Re: X-Cart popup messages
 
Excellent mod, works perfect in 4.4.2. Everyone needs something like this! As the alerts that come with xcart are indeed an absolute joke. Thanks for this, keeps the customers happy!

dhaworth 03-10-2011 02:39 PM

Re: X-Cart popup messages
 
Unbelievable mod and a great price. This is what should come with X-Cart. I have only been using it for a few days but already the number of customers who are completing their orders is up! But it's not just the ADD TO CART SUCCESSFULLY that is great. Steve has fixed all the crazy manners in which x-cart communicates with the customer - like when the customer sends to a friend, or when they log in or make a change to their profile or apply their contact details in the order cart. There are just so many little improvements you have to see them to understand. As well the order process seems a lot faster, which may be my imagination, but it does appear to be very quick. Having the extra "May We Suggest" certainly doesn't hurt either. All in all, a terrific mod and finally my cart is what it should be: a help to every customers, easy to understand, easy to follow along. Amazon should be this good. I can tell my customers are happier just by the increase in completed orders. Thanks Steve for such a great mod - I am finally done fiddling with the mini-cart. Now if only someone could fix the silly x-cart address book and do away with "personal details". !! "THANKS STEVE at CFLSYSTEMS"

dhaworth 03-18-2011 11:24 AM

Re: X-Cart popup messages
 
Just an addon message to again thank Steve. The popup also does a great job of showing detail product images. I have had quite a number of customer comments about the "slide show" wondering how it was done. I told them it was your mod that created the great looking slide show. Thanks again Steve.

Craig Ferrante 06-17-2011 08:03 PM

Re: X-Cart popup messages
 
Hi Steve

Just wanted to say thanks for this fantastic mod, just the add to cart alert box feature would have sold me, it also dresses up and presents the utilitarian design of the built in message alerts with a nice slick look.

buy it you'll like it!

welly 07-21-2011 02:53 PM

Re: X-Cart popup messages
 
I have a question about this mod Steve.

I recently implemented the 'add to cart alert' mod, which I believe you are familiar with. Quite a lot of fiddling about, but now it works very well.

Will these mods coexist, or does this one supercede Add to Cart?

Cheers

Welly

cflsystems 07-21-2011 04:29 PM

Re: X-Cart popup messages
 
You can omit the "add to cart popup" part from this mod and just not install it, the rest of the popups will work with the other mod you have, they don;t cross paths

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

cflsystems 01-14-2012 12:01 PM

Re: X-Cart popup messages
 
I have not checked with this new template so I can only assume it will work, after all it does change only default XC behaviour which still exists with the template.

If you have the ajax minicart off the add to cart message will not show - there is nothing to trigger it. The messages that replace XC default upper right corner messages will still work

elmirage001 01-14-2012 12:29 PM

Re: X-Cart popup messages
 
Quote:

Originally Posted by cflsystems
I have not checked with this new template so I can only assume it will work, after all it does change only default XC behaviour which still exists with the template.

If you have the ajax minicart off the add to cart message will not show - there is nothing to trigger it. The messages that replace XC default upper right corner messages will still work

That's what I thought... I've not been using the ajax as my store features unique one of a kind items and the 'add to cart' button does not always change to 'out of stock' when items are added to the cart.

candc 01-17-2012 12:15 PM

Re: X-Cart popup messages
 
It works fine unless you are using the the "header drop down" basket option.

elmirage001 01-17-2012 03:25 PM

Re: X-Cart popup messages
 
Hi Steve,

I purchased your mod and have a question. Does the popup window stay until the user clicks one of the choices or does the window close automatically after so many seconds.

Thanks!

Paul

cflsystems 01-17-2012 03:38 PM

Re: X-Cart popup messages
 
Look in skin/common_files/js/ajax.add2cart.js and find the code you inserted when installing the mod
If you find in it
Code:

onComplete: function(){ setTimeout($.fn.colorbox.close,5000); },
it auto closes after 5 seconds. If you want to disable it just change it to

Code:

onComplete: false,
if you want to increase the auto close time change 5000 to whatever number you want, for example 10 sec will be 10000

elmirage001 01-17-2012 03:44 PM

Re: X-Cart popup messages
 
Quote:

Originally Posted by cflsystems
Look in skin/common_files/js/ajax.add2cart.js and find the code you inserted when installing the mod
If you find in it
Code:

onComplete: function(){ setTimeout($.fn.colorbox.close,5000); },
it auto closes after 5 seconds. If you want to disable it just change it to

Code:

onComplete: false,
if you want to increase the auto close time change 5000 to whatever number you want, for example 10 sec will be 10000

Perfect! Love the mod. Thanks so much! Paul

cflsystems 02-08-2012 10:16 AM

Re: X-Cart popup messages
 
I've been asked in relation to this mod how to keep the coupon messages popup but disable the message when customer creates/updates account info

Not tested but in /skin/common_files/modules/One_Page_Checkout/ajax.checkout.js find

Code:


ajax.widgets.checkout.obj.prototype._callbackUpdateProfile = function(data) {

and comment out this line

Code:


this.showMessage(data.content, 'I');


SecSno 02-29-2012 10:36 PM

Re: X-Cart popup messages
 
A very nice mod, and a real no brainer. Even if you are an expert modder its going to take you more than $30 worth of time to do this(recreate it not install it). Good job Steve and thanks for a polished addon.

cflsystems 02-29-2012 11:06 PM

Re: X-Cart popup messages
 
Thanks, glad you find it usefull

tqualizerman 03-28-2012 08:27 AM

Re: X-Cart popup messages
 
Hi Steve,

I am having trouble (on a 4.4.5 install) with step #7 of the install instructions. It says find the code '$cart = func_array_merge($cart, func_calculate($cart, $products, $logged_userid, $current_area, 0));' in modules/Discount_Coupons/discount_coupons.php but I can't find it.

Second issue is that the popup is not working on product pages. It works on home.php, and products.php though. Any ideas where to start tracking down that issue?

cflsystems 03-28-2012 09:43 AM

Re: X-Cart popup messages
 
Quote:

7. Open "modules/Discount_Coupons/discount_coupons.php" and FIND

$cart = func_array_merge($cart, func_calculate($cart, $products, $logged_userid, $current_area, 0));

In 4.4.3 the above doesn't exist - look for this line

list($cart, $products) = func_generate_products_n_recalculate_cart();


If it's not working on product details page you have something not loading there, check the install again

tqualizerman 03-28-2012 09:52 AM

Re: X-Cart popup messages
 
Thanks.

I've been through the install twice, but I can't find anything I overlooked. Any guesses what code might be related to product.php?

tqualizerman 03-28-2012 10:08 AM

Re: X-Cart popup messages
 
I've got a little more info. I can see by the source of the page that the popups are loading on the product pages and display: none is properly set, so there must be something disconnected between the add to cart button and the module... does XC popups rely on any specific tag IDs/classes/functions relating to the add to cart button by any chance?

cflsystems 03-28-2012 10:28 AM

Re: X-Cart popup messages
 
If you have the install correct and on product details page when you click on add to cart it turns into "added" then back to "add to cart" it shoudl work

tqualizerman 03-28-2012 10:44 AM

Re: X-Cart popup messages
 
Excellent - thank you. I tracked it down to this line from product.tpl, in my template:

<div>{include file="customer/main/product_details.tpl"}</div>

Compared to the unmodified version of product.tpl:

<div class="details">{include file="customer/main/product_details.tpl"}</div>

Yikes. Putting that class tag back in there fixed it.

Thanks for your very quick help!

cflsystems 03-28-2012 11:49 AM

Re: X-Cart popup messages
 
No problem, glad you fixed it

tqualizerman 03-28-2012 01:09 PM

Re: X-Cart popup messages
 
Can this be made to work with the contact us and register functions?

cflsystems 03-28-2012 01:37 PM

Re: X-Cart popup messages
 
In relation to what?

kumar 03-31-2012 05:49 PM

Re: X-Cart popup messages
 
Is there a way to add a "buy" button in related_products.tpl (upselling products) so the items listed on product.tpl under "related products" can have a buy now button? Once the button is clicked, the popup message would appear.

I have already tried copying the code for the "buy now" button in product.tpl, but is adds the item to the cart without the popup (so the customer doesn't know the item was added, since I have "Redirect customer to cart after adding a product" disabled.

cflsystems 03-31-2012 08:04 PM

Re: X-Cart popup messages
 
Because related products uses different way to list the products, you can make related products template to use the same products_t.tpl or products_list.tpl by calling one of them and passing related products array to it


All times are GMT -8. The time now is 10:21 AM.

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