Sorting row "published" ?

09.08.2012 11:22
#1
mommek
Joomshopping forum user no avatar
Name: mommek
15.09.2011
Posts: 136
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
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16504
Quote
Aw: Sorting row "published" ?

Try use filter
Show:

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

no chance do linkable this row?


Joomla: latest
JoomShopping: latest
PHP: latest
 
09.08.2012 16:13
#4
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16504
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');


Letzte Ă„nderung: 09.08.2012 16:15
 
09.08.2012 16:23
#5
mommek
Joomshopping forum user no avatar
Name: mommek
15.09.2011
Posts: 136
Quote
Aw: Sorting row "published" ?

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

 
Copyrights MAXXmarketing GmbH. All Rights Reserved