Back to vBulletin Tips & Tricks

Simple: seperate unactive products in Products Manager
by vbenhancer 16 Apr 2012
Rating: (1 vote - 5.00 average)

Just a simple tweak to list your products in order of "inactive/active" so you can track easily the products that are enable or not... way easier to read than the regular display that only have titles striked.

from /admincp/plugin.php

FIND ON LINE 707

PHP Code:
    $products $db->query_read("
        SELECT *
        FROM " 
TABLE_PREFIX "product
        ORDER BY title
    "
); 

ADD "active, " SO IT SHOWS AS:

PHP Code:
    $products $db->query_read("
        SELECT *
        FROM " 
TABLE_PREFIX "product
        ORDER BY active, title
    "
); 
that's it, yeap... now, visit http:/ /yoursite.com/admincp/plugin.php?do=product to see the result!

--------------- Added 16 Apr 2012 at 23:17 ---------------

... i was bored to scroll down today, so it took me 32 seconds to fix that!...

vblts.ru supports vBulletin®, 2022-2024