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 05-13-2012 08:01 PM

Re: X-Cart popup messages
 
If it shows text then it should work as this text is the extra condition to show only products with avail > 0.

You can change the same code in product.php as well

if (!empty($active_modules['Recommended_Products']))
include $xcart_dir . '/recommends.php';

to


if (!empty($active_modules['Recommended_Products'])) {
$only_instock = true;
include $xcart_dir . '/recommends.php';
}

but keep in mind that this just will hide out of stock products from the tab as well so it won't make much sense to have this extra option.
More coding will be required to separate them like this but I don't see how is ok to show out of stock products on the tab but not ok on the popup?

Thomasb134 05-13-2012 08:26 PM

Re: X-Cart popup messages
 
Quote:

but keep in mind that this just will hide out of stock products from the tab as well so it won't make much sense to have this extra option.
I added that new code in product.php and the out of stock items still appear in the "customers also bought" tab. But we don't require hiding them in that tab, so it is not a problem.

Quote:

More coding will be required to separate them like this but I don't see how is ok to show out of stock products on the tab but not ok on the popup?

It is important that we don't hide out of stock items from the "Related Products" tab. Since the popup draws from the Related Products tab I can understand that any that are out of stock will also appear in the pop up.

Your pop-up is an ideal impulse-buy sales point so it would be best not to waste space there with items that are not available. That is the reason for not showing the unavailable goods inside the added-to-cart pop-up.

Since hiding the out of stock items in the pop-up is bigger challenge than anticipated we'll just live with the way it works. So no need for you to spend more time on this. Thanks for your attempts to tweak it for me, I appreciate it.

cflsystems 05-13-2012 08:33 PM

Re: X-Cart popup messages
 
"customers also bought" tab holds the recommended products which come from recommends.php
"related products" tab holds upsell products which are different products and come from different script

The mod will show "related products" if they exists for the product otherwise - recommended products
If you would like drop me an email and I can customize it futher for you but make sure to clearly indicate what you need

Thomasb134 05-13-2012 08:48 PM

Re: X-Cart popup messages
 
Quote:

The mod will show "related products" if they exists for the product otherwise - recommended products
Now I understand. Our popular products have important *Related Products* to help our customers make the best purchase decisions. These are what have been appearing in the popup. What I mean is that the popup is NOT using the *Customer Also Bought* (recommended) products data. So this appears to explain why the special patch is not masking out the out of stock items.

cflsystems 05-13-2012 09:32 PM

Re: X-Cart popup messages
 
You can change that if you want to in the template file so only recommended products show and not related.

designguru 02-19-2013 01:41 AM

Re: X-Cart popup messages
 
Does anyone know if the popup messages are also shown when adding to the cart from the product list. I'm sure it works on the product page, but what about the product list for example the list on the search page etc.
I tried to ask cflsystems last week via email but got no answer yet.

cflsystems 02-19-2013 09:38 AM

Re: X-Cart popup messages
 
Yes it works on products list pages as well. I sent you an email few days ago

designguru 02-19-2013 12:32 PM

Re: X-Cart popup messages
 
Quote:

Originally Posted by cflsystems
Yes it works on products list pages as well. I sent you an email few days ago


Thanks for your help!

carpeperdiem 02-27-2013 07:07 AM

Re: X-Cart popup messages
 
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

SecSno 02-27-2013 07:29 AM

Re: X-Cart popup messages
 
working great for us in 4.5.5 as you mentioned you can't use both the add2cart module from x-cart and popup-message's add2 cart code but you already are doing that so you should be all set.


All times are GMT -8. The time now is 08:19 AM.

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