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 02-27-2013 01:33 PM

Re: X-Cart popup messages
 
Quote:

Originally Posted by carpeperdiem
Steve,

It looks like X-Cart made one minor change to /skin/common_files/customer/dialog_message.tpl for version 4.5.5

(change in red)

4.5.4:
Code:

{if $top_message.no_close eq ""}
        <a href="{$smarty.server.PHP_SELF}?{$smarty.server.QUERY_STRING|amp}" class="close-link" onclick="javascript: document.getElementById('dialog-message').style.display = 'none'; return false;"><img src="{$ImagesDir}/spacer.gif" alt="{$lng.lbl_close|escape}" class="close-img" /></a>
      {/if}


4.5.5
Code:

{if $top_message.no_close eq ""}
        <a href="{$smarty.server.PHP_SELF|escape}?{$php_url.query_string|escape}" class="close-link" onclick="javascript: document.getElementById('dialog-message').style.display = 'none'; return false;"><img src="{$ImagesDir}/spacer.gif" alt="{$lng.lbl_close|escape}" class="close-img" /></a>
      {/if}


But if we are using your file, that shouldn't matter at all, since your code replaces xcart's file in its entirety, correct?

Have you tested System Messages for X-Cart w/ 4.5.5 yet? Anything we need to know? FYI, I am NOT using the add-to-cart feature, only the system warnings.

Thanks,

J


The change it red is what the new security patch recently rleeased does as well so nothing to be concerned about. And yes - the file from the mod does not have this so no worries there either.
The mod still works ok in 4.5.5, I have not seen any issues. Also for any 4.5.x version the added to cart popup can be skipped or the "add to cart" module in XC shoudl be turned off

designguru 02-27-2013 04:02 PM

Re: X-Cart popup messages
 
Just installed the mod today and adjusted to taste! It looks so slick and clean compared to the standard XC messages. Well worth the bucks!

tqualizerman 04-18-2013 08:45 AM

Re: X-Cart popup messages
 
Can this module be made to bring up the 'Send to Friend' form in a popup?

cflsystems 04-19-2013 08:28 AM

Re: X-Cart popup messages
 
Since send to friend outputs smarty template you can load it in the popup yes but this is more of a making the send to friend being a popup instead of loading on the page

tqualizerman 04-19-2013 10:26 AM

Re: X-Cart popup messages
 
Hi Steve,

Could you tell me how to invoke the popup window if I wanted to place a link on product.tpl that would trigger it (and then load another .tpl file inside?)

cflsystems 04-19-2013 04:43 PM

Re: X-Cart popup messages
 
The send to friend is not written to be a popup to begin with. This is a whole new project as the send to friend php script has to be re-written to do that.

tqualizerman 04-19-2013 04:54 PM

Re: X-Cart popup messages
 
OK. Let's say I had another use for to invoke the popup though, is there a standard way with this addon?

cflsystems 04-19-2013 05:04 PM

Re: X-Cart popup messages
 
The mod uses standard colorbox - http://www.jacklmoore.com/colorbox/- so there are few ways depending on contents; the mod uses href="#ID" and auto open since it is on page load but if you want it on click you just need to something like

$("ELEMENT CLASS or ID").colorbox();

Vacman 06-07-2013 02:01 PM

Re: X-Cart popup messages
 
Question...

Towards the end of the install instructions you have:
Add following css classes

Which file does this get added to?

I am using a custom skin as well.

cflsystems 06-08-2013 07:40 AM

Re: X-Cart popup messages
 
To the css file loading on customer side, for stock XC is skin/common_files/css/main.css or skin/your_skin/css/altskin.css. For custom skin it will depend on the skin - whatever css file skin loads or again you can use skin/common_files/css/main.css if it is being loaded


All times are GMT -8. The time now is 11:19 PM.

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