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)
-   -   Adding SKU # in Users Online section? (https://forum.x-cart.com/showthread.php?t=64902)

rageon75 09-19-2012 02:06 PM

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!:-)

totaltec 09-19-2012 02:36 PM

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,

rageon75 09-19-2012 02:54 PM

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!


All times are GMT -8. The time now is 11:26 PM.

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