View Single Post
  #2  
Old 09-19-2012, 02:36 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Adding SKU # in Users Online section?

Sku is already assigned to Smarty, so this is pretty easy.

Look in /common_files/modules/Users_online/stats.tpl
Find:
PHP Code:
<tr>
      <
td nowrap="nowrap" valign="top"><a href="product_modify.php?productid={$p.productid}"><b>{$p.product}</a>:</b></td>
    </
tr
Change it to:

PHP Code:
<tr>
      <
td nowrap="nowrap"  valign="top"><a  href="product_modify.php?productid={$p.productid}"><b>{$p.productcode} - {$p.product}</a>:</b></td>
    </
tr

I just added the "{$p.productcode} - " to append the sku in front of the product name. If you want it displayed in it's own column you will have to adjust the table.

Hope it helps,
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote