Sorting row "published" ?

09.08.2012 11:22
#1
pcsupport
Joomshopping forum user no avatar
Name: pcsupport
15.09.2011
Posts: 166
Quote
Sorting row "published" ?

Hello,

I'm wondering, why is disable sorting row "published" ? When I'm in products list in my administrator, I want have sorted my products by published and unpublished. (published products first, unpublished after)

Is it possible to fix it somehow?

Thanks


Joomla: latest
JoomShopping: latest
PHP: latest
MySQL: latest
 
09.08.2012 13:43
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25921
Quote
Aw: Sorting row "published" ?

Try use filter
Show:

 
09.08.2012 16:03
#3
pcsupport
Joomshopping forum user no avatar
Name: pcsupport
15.09.2011
Posts: 166
Quote
Aw: Sorting row "published" ?

no chance do linkable this row?


Joomla: latest
JoomShopping: latest
PHP: latest
 
09.08.2012 16:13
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25921
Quote
Aw: Sorting row "published" ?

administrator\components\com_jshopping\views\product_list\tmpl\default.php

<?php echo _JSHOP_PUBLISH;?>

replace to

<?php echo JHTML::_( 'grid.sort', _JSHOP_PUBLISH, 'published', $this->filter_order_Dir, $this->filter_order);?>


administrator\components\com_jshopping\models\products.php

$fields = array("product_id"=>"pr.product_id", "name"=>"name",'category'=>"namescats","manufacturer"=>"man_name","vendor"=>"v_f_name","ean"=>"ean","qty"=>"qty","price"=>"pr.product_price","hits"=>"pr.hits","date"=>"pr.product_date_added");

replce to

$fields = array("product_id"=>"pr.product_id", "name"=>"name",'category'=>"namescats","manufacturer"=>"man_name","vendor"=>"v_f_name","ean"=>"ean","qty"=>"qty","price"=>"pr.product_price","hits"=>"pr.hits","date"=>"pr.product_date_added",
"published"=>'pr.product_publish');


Last change: 09.08.2012 16:15
 
09.08.2012 16:23
#5
pcsupport
Joomshopping forum user no avatar
Name: pcsupport
15.09.2011
Posts: 166
Quote
Aw: Sorting row "published" ?

cool man, you're the best! :-)

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.