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
  #41  
Old 04-30-2012, 11:59 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: X-Cart popup messages

Works on 4.5.x as well. 4.5.x uses same default top-right corner messages which are easy to miss
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #42  
Old 05-11-2012, 10:36 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: X-Cart popup messages

Hi Steve,

Do you know if/how this might work with the Buy Together module from AlteredCart?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #43  
Old 05-11-2012, 09:55 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: X-Cart popup messages

I never tried it but in XC code is just changes in templates so if you do similar should work probably
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #44  
Old 05-13-2012, 08:15 AM
 
Thomasb134 Thomasb134 is offline
 

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

Default Re: X-Cart popup messages

We added this mod to our v4.4.5 and it is fantastic. Highly recommended!

I have a some requests for future mod enhancement:

1. In the "May we suggest the following items" popup it would be great if only items that are in stock are suggested. To increase customer satisfaction an out of stock item should be not shown in the popup.

2. Add a fourth item to the suggestion list that says "Show More Suggestions". If the customer clicks it then bring them directly to the related items section of the catalog page (or present a new pop-up with all the related products).
__________________
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
  #45  
Old 05-13-2012, 09:13 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: X-Cart popup messages

Thanks Thomas

#1 - this uses recommends.php which already limits products to in stock only; make sure you have inventory in XC settings on
#2 - it can easily be extended by adding an <a> tag in popup_add_to_cart.tpl to link to the product details page
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #46  
Old 05-13-2012, 09:59 AM
 
Thomasb134 Thomasb134 is offline
 

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

Default Re: X-Cart popup messages

Thank you for the reply.

Quote:
#1 - this uses recommends.php which already limits products to in stock only; make sure you have inventory in XC settings on
I'm not quite sure what setting you mean. What is the exact name of the setting?

FWIW, we have "Show products which are out of stock" enabled. Disabling this causes customer confusion. The "Disable inventory tracking" setting is NOT checked.

Currently XC is showing out of stock items in the Related Products area. This is not a problem and we prefer it this way. However, we don't want any out of stock items to appear in the pop up window.

XC is also showing out of stock items in the "Customers Also Bought" (recommend) page. This seems to be directly related to the issue.

If it's just a improper XC setting that needs a tweak then that is awesome. I just need a bit more guidance.
__________________
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
  #47  
Old 05-13-2012, 11:16 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: X-Cart popup messages

Yes these 2 settings. They are global and you have them set to show out of stock products. Since the mod doesn't modify any XC files and uses recommends.php directly you get what the file returns. This XC file can be modified of course

You can change

Code:
// 'Added to Cart' message - CFL Systems if (!empty($active_modules['Recommended_Products'])) include $xcart_dir . '/recommends.php'; // 'Added to Cart' message - CFL Systems

to

Code:
// 'Added to Cart' message - CFL Systems if (!empty($active_modules['Recommended_Products'])) { $only_instock = true; include $xcart_dir . '/recommends.php'; } // 'Added to Cart' message - CFL Systems

then in recommends.php this

Code:
if ( $config['General']['unlimited_products'] != 'Y' && $config['General']['show_outofstock_products'] != 'Y' ) {

change to
Code:
if ( ($config['General']['unlimited_products'] != 'Y' && $config['General']['show_outofstock_products'] != 'Y') || $only_instock ) {

Not tested though
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #48  
Old 05-13-2012, 05:14 PM
 
Thomasb134 Thomasb134 is offline
 

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

Default Re: X-Cart popup messages

Thanks for the code. I installed it and I still see the out of stock items in the pop-up.

Just to confirm, I updated the first part to these 5 files:
1. /home.php
2. /products.php
3. /search.php
4. /manufacturers.php
5. /products_map.php

and then updated the second part to /recommends.php

All files were in the xcart root directory.

Did I miss anything?
__________________
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
  #49  
Old 05-13-2012, 06:55 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: X-Cart popup messages

Yes, it should work. You can add in recommends.php just before

$_membershipid = intval($user_account['membershipid']);

this

echo $avail_where;

and see if it outputs anything on the screen. This is just for testing so delete it after you test.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #50  
Old 05-13-2012, 07:45 PM
 
Thomasb134 Thomasb134 is offline
 

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

Default Re: X-Cart popup messages

Adding the echo $avail_where shows some extra text on the home page at the top of the page. But I don't see it on the item's catalog page. Does that help point to the problem?

I'm feeling guilty about being off topic. If you would like me to take my issue off-line (can use email instead) then just let me know.
__________________
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
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:07 AM.

   

 
X-Cart forums © 2001-2020