X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   displaying number of products in catalog (https://forum.x-cart.com/showthread.php?t=51685)

jbvideo 01-09-2010 09:53 AM

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}

jbvideo 01-09-2010 10:12 AM

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.

cflsystems 01-09-2010 06:52 PM

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.


All times are GMT -8. The time now is 07:40 PM.

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