Show vm products by user order

News Show Pro GK5 - flexible, responsive and easily extendable free Joomla module support forum.
Rate this topic: Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.6.00 out of 6 based on 1 vote(s)
GK User
Sat Oct 10, 2015 11:29 am
Hi,
I'm using NSP5 to display vm products from 1 categorie on frontpage,
works fine. But as I set 'news order' - 'By order' (to manually set products order) nothing happens?
-Attached my settings-
Any suggestion?

Using: Joomla! 3.4.4, VirtueMart 3.0.10, Shop and buy template, News Show Pro GK5 1.9.1.2

Thanks Pascal
User avatar
Gold Boarder

GK User
Wed Oct 14, 2015 7:27 am
Different content has different sorting options, but here they all are combined together. "By order" works with default Joomla articles which can be manually sorted in Article Manager.
User avatar
Moderator

GK User
Wed Oct 14, 2015 8:50 am
It's set for virtuemart products. Virtuemart is also set to manually sort in general config.
But nspgk5 sorts by product ID.

How can this be solved?

Thanks,

Pascal
User avatar
Gold Boarder

GK User
Mon Oct 19, 2015 11:51 am
I'll ask our devteam about this problem and will reply as soon as I get an answer.
User avatar
Moderator

GK User
Sat Oct 24, 2015 9:44 am
Ok, please try editing this file:
mod_news_pro_gk5/data_sources/com_virtuemart/model.php
and find this part of code:
Code: Select all
         if ($config['news_sort_value'] == 'created') {
            $sort_value = 'created_on';
         } elseif($config['news_sort_value'] == 'title') {
            $sort_value = 'product_name';
         } else {

and change it to:
Code: Select all
if ($config['news_sort_value'] == 'created') {
            $sort_value = 'created_on';
         } elseif($config['news_sort_value'] == 'ordering') {
            $sort_value = 'pordering';
         } elseif($config['news_sort_value'] == 'title') {
            $sort_value = 'product_name';
         } else {
User avatar
Moderator


cron