Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

X-Cart popup messages

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #51  
Old 05-13-2012, 08:01 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default 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?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #52  
Old 05-13-2012, 08:26 PM
 
Thomasb134 Thomasb134 is offline
 

X-Adept
  
Join Date: Apr 2007
Location: USA
Posts: 789
 

Default 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.
__________________
Thomas / USA
XCart V4.4.5 Gold
XCart Mobile V1.4.12
XCart X-PDF
XCart X-HotProducts
AlteredCart Checkout One (One Page Checkout)
BCSE Back In Stock
CFL Holiday Message
CFL System Message
Smack Digital (WebsiteCM) Remember Anon Carts
xcartmods Testimonials
xcartmods reCAPTCHA for X-Cart Classic
Unix, PHP 7.0 (patched 5.4).
MySQL 5.6
Reply With Quote
  #53  
Old 05-13-2012, 08:33 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #54  
Old 05-13-2012, 08:48 PM
 
Thomasb134 Thomasb134 is offline
 

X-Adept
  
Join Date: Apr 2007
Location: USA
Posts: 789
 

Default 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.
__________________
Thomas / USA
XCart V4.4.5 Gold
XCart Mobile V1.4.12
XCart X-PDF
XCart X-HotProducts
AlteredCart Checkout One (One Page Checkout)
BCSE Back In Stock
CFL Holiday Message
CFL System Message
Smack Digital (WebsiteCM) Remember Anon Carts
xcartmods Testimonials
xcartmods reCAPTCHA for X-Cart Classic
Unix, PHP 7.0 (patched 5.4).
MySQL 5.6
Reply With Quote
  #55  
Old 05-13-2012, 09:32 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default 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.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #56  
Old 02-19-2013, 01:41 AM
 
designguru designguru is offline
 

X-Adept
  
Join Date: Dec 2010
Posts: 418
 

Default 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.
__________________
X-Cart Pro 4.6.2 with many modules
X-CART Pro 4.4.1
Reply With Quote
  #57  
Old 02-19-2013, 09:38 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: X-Cart popup messages

Yes it works on products list pages as well. I sent you an email few days ago
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
sixfigure (02-19-2013)
  #58  
Old 02-19-2013, 12:32 PM
 
designguru designguru is offline
 

X-Adept
  
Join Date: Dec 2010
Posts: 418
 

Default 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!
__________________
X-Cart Pro 4.6.2 with many modules
X-CART Pro 4.4.1
Reply With Quote
  #59  
Old 02-27-2013, 07:07 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #60  
Old 02-27-2013, 07:29 AM
 
SecSno SecSno is offline
 

Newbie
  
Join Date: Sep 2008
Posts: 8
 

Default 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.
__________________
Version 4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:03 AM.

   

 
X-Cart forums © 2001-2020