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

displaying number of products in catalog

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-09-2010, 09:53 AM
 
jbvideo jbvideo is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 73
 

Default displaying number of products in catalog

at some point in the past couple years, one of my sites had a notice at the top of the main page that says "Our store has x number or products"

I'm not sure how it disappeared.

I looked at the code from another x-cart site I do (which has the notice) and I copied over that portion of welcome.tpl.

however the notification still does not show up on my first site. How can I get this back?

here's what I have now and when submitting a question to this forum, how do I get my code to appear in a box with a light blue background?

I have tried removing the {* and *} but it didnt make a difference, and this is how my other site has it

{* $Id: welcome.tpl,v 1.28.2.1 2006/07/12 04:51:17 svowl Exp $ *}

{if ($active_modules.Greet_Visitor ne "") and ($smarty.cookies.GreetingCookie ne "") and $logout_user eq ''}
{assign var="_name" value=$smarty.cookies.GreetingCookie|replace:"\'": "'"}
<h3>{$lng.lbl_welcome_back|substitute:"name":$_nam e} </h3>
{elseif $lng.lbl_site_title}
<h3>{*{$lng.lbl_welcome_to|substitute:"company":$l ng.lbl_site_title}*} Our store currently has {insert name="productsonline"} {$lng.lbl_products}. </h3>
{else}
<h3>{*{$lng.lbl_welcome_to|substitute:"company":$c onfig.Company.company_name}*} Our store currently has {insert name="productsonline"} {$lng.lbl_products}. </h3>
{/if}
{$lng.txt_welcome}
<br />
{if $active_modules.Bestsellers ne "" and $config.Bestsellers.bestsellers_menu ne "Y"}
{include file="modules/Bestsellers/bestsellers.tpl"}
{/if}
<br />
{include file="retail/main/featured.tpl" f_products=$f_products}
__________________
Sharon
vers. gold 4.0.17 to 4.1.10 (july 2008 )
Reply With Quote
  #2  
Old 01-09-2010, 10:12 AM
 
jbvideo jbvideo is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 73
 

Default Re: displaying number of products in catalog

ok .. when I"m logged in as a customer, I can see the number of products ... but not if I'm entering the site anonymously.
__________________
Sharon
vers. gold 4.0.17 to 4.1.10 (july 2008 )
Reply With Quote
  #3  
Old 01-09-2010, 06:52 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: displaying number of products in catalog

Actually originally this code is in head.tpl
Code:
{******** Remove this line to display how much products there are online **** <tr> {insert name="productsonline" assign="_productsonline"} <td colspan="2" class="NumberOfArticles" align="right"> {if $config.Appearance.show_in_stock eq "Y"} {insert name="itemsonline" assign="_itemsonline"} {$lng.lbl_products_and_items_online|substitute:"X":$_productsonline:"Y":$_itemsonline} {else} {$lng.lbl_products_online|substitute:"X":$_productsonline} {/if} &nbsp; </td> </tr> **** Remove this line to display how much products there are online ********}

This code is from 4.1.10.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 11:06 PM.

   

 
X-Cart forums © 2001-2020