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

Adding SKU # in Users Online section?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-19-2012, 02:06 PM
 
rageon75 rageon75 is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 108
 

Question Adding SKU # in Users Online section?

Hello everybody! Thanks for taking the time to look at me question!

In the Admin side when you go to Tools>Statistics>Users Online you are able to see what is inside the customers cart. The only thing that is missing is the SKU number. We have products with the same name and use the SKU to differentiate them.

Sometimes customers are not able to checkout do to slow internet or they lose internet connection. They call us and ask if we can print out the order and process it for them.

Since we have multiple items with the same name we have to guess which item is correct which is not good.

Where do I go to add the SKU #? Is it in the skin/admin/statistics.php? This is using X-Cart 4.4.5.

Thanks again!
__________________
X-Cart Gold 4.2 - 4.3 - 4.4.5 - 4.6 - 4.7
Reply With Quote
  #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
  #3  
Old 09-19-2012, 02:54 PM
 
rageon75 rageon75 is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 108
 

Default Re: Adding SKU # in Users Online section?

Mike thank you so much! I had forgotten that it was a module! It works great! Thank you!
__________________
X-Cart Gold 4.2 - 4.3 - 4.4.5 - 4.6 - 4.7
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:42 AM.

   

 
X-Cart forums © 2001-2020