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

Show Online Product Count

 
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-23-2019, 07:41 PM
  Blainevk's Avatar 
Blainevk Blainevk is offline
 

Senior Member
  
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 162
 

Default Show Online Product Count

Hello,

I just upgraded from X-cart 4 to X-cart 5 Multi-vendor.

In X-cart 4 I displayed the Product Count in the store header using:

Choose From {insert name="productsonline"} Quality Gifts!

... this does not work in X-cart 5, what would be the correct code for X-cart 5?
__________________
Blaine

X-Cart Multi-vendor 5.4.1.35
PHP version: 8.1

Blaine's Travel Club - http://blainestravelclub.com

Collect Travel Points - http://blainestravelclub.com/travelpoints/rewards/

Travel Points Gift Mall - https://blainestravelclub.com/travelpoints/giftmall/

Grow Your Business - http://blainestravelclub.com/business/

Making Money & Fun - http://blainestravelclub.com/travelers/

Charitable Fun-razing - http://blainestravelclub.com/fun-razors
Reply With Quote
  #2  
Old 10-24-2019, 04:30 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Show Online Product Count

There is no such thing as "insert name="productsonline"" in any XC version. It is something custom coded for you. So you need to get it custom coded for XC5 as well.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 10-24-2019, 04:35 PM
  Blainevk's Avatar 
Blainevk Blainevk is offline
 

Senior Member
  
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 162
 

Default Re: Show Online Product Count

Quote:
Originally Posted by cflsystems
There is no such thing as "insert name="productsonline"" in any XC version. It is something custom coded for you. So you need to get it custom coded for XC5 as well.

I never paid for special codeing, nor was i told that it was special codeing, I simply asked how to display Products Online and Someone from X-cart gave me the code.

I'm trying to find the old thread in the Forums, so I can ask the same person, but can not find it.

If it is special codeing, can anyone develop it and tell me what it would be?
__________________
Blaine

X-Cart Multi-vendor 5.4.1.35
PHP version: 8.1

Blaine's Travel Club - http://blainestravelclub.com

Collect Travel Points - http://blainestravelclub.com/travelpoints/rewards/

Travel Points Gift Mall - https://blainestravelclub.com/travelpoints/giftmall/

Grow Your Business - http://blainestravelclub.com/business/

Making Money & Fun - http://blainestravelclub.com/travelers/

Charitable Fun-razing - http://blainestravelclub.com/fun-razors
Reply With Quote
  #4  
Old 10-25-2019, 04:55 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Show Online Product Count

Hm this seem to be coded in XC4 yes, so not custom coded. I even found a post from like 10 years ago I commented on - https://forum.x-cart.com/showthread.php?t=51685


Anyway I don't think there is such thing in XC5. It is not hard to code but it needs to be coded as custom module.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 10-27-2019, 07:32 AM
  Blainevk's Avatar 
Blainevk Blainevk is offline
 

Senior Member
  
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 162
 

Default Re: Show Online Product Count

So, I'm not loosing my mind, "productsonline" DID EXIST in XC4... PHEW!

OK, current day, in XC5 Multi-Vendor, at the bottom of the PRODUCTS page: /admin.php?target=product_list ...before the quantity per page, it displays "318 items" how would I find this code that is displaying how many items "318" are currently in the store?
__________________
Blaine

X-Cart Multi-vendor 5.4.1.35
PHP version: 8.1

Blaine's Travel Club - http://blainestravelclub.com

Collect Travel Points - http://blainestravelclub.com/travelpoints/rewards/

Travel Points Gift Mall - https://blainestravelclub.com/travelpoints/giftmall/

Grow Your Business - http://blainestravelclub.com/business/

Making Money & Fun - http://blainestravelclub.com/travelers/

Charitable Fun-razing - http://blainestravelclub.com/fun-razors
Reply With Quote
  #6  
Old 10-27-2019, 09:28 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Show Online Product Count

Login to admin, open customer front in the same browser different tab, at the lower left corner there is a gear icon - click on it and select template editor - there you can find the template showing the element you need and what the code is.
However this may be code that shows only on specific pages
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 07-18-2020, 04:00 AM
  Blainevk's Avatar 
Blainevk Blainevk is offline
 

Senior Member
  
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 162
 

Default Re: Show Online Product Count

Hi Steve,

Getting back to this, where I found "318 Items" is at the bottom of the Product List Page found in THE ADMIN AREA... how can I open the template on a page in the ADMIN?

Blaine.
__________________
Blaine

X-Cart Multi-vendor 5.4.1.35
PHP version: 8.1

Blaine's Travel Club - http://blainestravelclub.com

Collect Travel Points - http://blainestravelclub.com/travelpoints/rewards/

Travel Points Gift Mall - https://blainestravelclub.com/travelpoints/giftmall/

Grow Your Business - http://blainestravelclub.com/business/

Making Money & Fun - http://blainestravelclub.com/travelers/

Charitable Fun-razing - http://blainestravelclub.com/fun-razors
Reply With Quote
  #8  
Old 07-18-2020, 06:04 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Show Online Product Count

You need to install the Webmaster Mode module - https://market.x-cart.com/addons/webmaster-kit.html
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #9  
Old 07-18-2020, 10:59 AM
  Blainevk's Avatar 
Blainevk Blainevk is offline
 

Senior Member
  
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 162
 

Default Re: Show Online Product Count

Hi Steve,

Maybe you missed what I said in my earlier reply, the code that I am looking for is on an ADMIN PAGE, how do I access Template Editor on an ADMIN PAGE?

Blaine.
__________________
Blaine

X-Cart Multi-vendor 5.4.1.35
PHP version: 8.1

Blaine's Travel Club - http://blainestravelclub.com

Collect Travel Points - http://blainestravelclub.com/travelpoints/rewards/

Travel Points Gift Mall - https://blainestravelclub.com/travelpoints/giftmall/

Grow Your Business - http://blainestravelclub.com/business/

Making Money & Fun - http://blainestravelclub.com/travelers/

Charitable Fun-razing - http://blainestravelclub.com/fun-razors
Reply With Quote
  #10  
Old 07-18-2020, 11:05 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Show Online Product Count

No I did not miss it. This module is the only way to find out the templates/classes used in admin if you don't know your way around.
Now if you expect it to work as the built-in template editor for the storefront - no it doesn't. Look at the module images and docs to see how you can use it.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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:19 AM.

   

 
X-Cart forums © 2001-2020