[Skip to main content](#vessel-content)

#   Vendor product listing problems

##

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile") Topic Author
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

11 years 4 months ago [\#206719](#206719) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  *[Vendor product listing problems](/forum/20-market-feature-requests/877859-vendor-product-listing-problems#206719 "-- url of the page with the problem -- : local &amp; live -- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.3 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5.3 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : JS error (see below)  Hi Jerome,  I've noticed it earlier, and am now reproducing it in my &quot;clean&quot; environment set up as described earlier.  Scenario: Vendor has added products, looks them up in the vendor product listing. In case it matters: Vendor has set the products to &quot;published&quot;, but Admin has not approved them yet. Just FYI, his is what it looks like:  1.) Can not sort the list by clicking  items like ID or Name. a.) Nothing happens, the order remains the same. b.) Each click on such  throws a JS error:  You may know, but it's in /media/system/js/core.js  2.) Default list order: By default, the list shows &quot;Oldest item first&quot;, and I don't see an option to change this. I strongly believe that &quot;Newest item first&quot; is the only default that makes sense (imagine vendors with long lists of products, eventually even spreading over multiple pages....!), and would appreciate if you changed the default list order accordingly, or - in case of protest from elsewhere - added an option to set the default order.  Thanks again!")* was created by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")*

-- url of the page with the problem -- : local &amp; live
-- HikaShop version -- : 2.5.0
-- HikaMarket version -- : 1.6.3
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.5.3
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : JS error (see below)

Hi Jerome,

I've noticed it earlier, and am now reproducing it in my "clean" environment set up as described earlier.

Scenario:
Vendor has added products, looks them up in the vendor product listing.
In case it matters: Vendor has set the products to "published", but Admin has not approved them yet. Just FYI, his is what it looks like:
[ ![vprodlist&#95;list.jpg](/forum/attachment/25267) ](/forum/attachment/25267 "...dlist&#95;list.jpg")

1.) Can not sort the list by clicking &lt;th&gt; items like ID or Name.
a.) Nothing happens, the order remains the same.
b.) Each click on such &lt;th&gt; throws a JS error:
[ ![vprodlist&#95;js&#95;error.jpg](/forum/attachment/25268) ](/forum/attachment/25268 "...t&#95;js&#95;error.jpg")

You may know, but it's in /media/system/js/core.js

2.) Default list order:
By default, the list shows "Oldest item first", and I don't see an option to change this.
I strongly believe that "Newest item first" is the only default that makes sense (imagine vendors with long lists of products, eventually even spreading over multiple pages....!), and would appreciate if you changed the default list order accordingly, or - in case of protest from elsewhere - added an option to set the default order.

Thanks again!

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

- [ ![vprodlist&#95;list.jpg](/forum/attachment/25267) ](/forum/attachment/25267 "...dlist&#95;list.jpg") [ ](/forum/attachment/25267?download=1 "...dlist&#95;list.jpg")
- [ ![vprodlist&#95;js&#95;error.jpg](/forum/attachment/25268) ](/forum/attachment/25268 "...t&#95;js&#95;error.jpg") [ ](/forum/attachment/25268?download=1 "...t&#95;js&#95;error.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3Nzg1OS12ZW5kb3ItcHJvZHVjdC1saXN0aW5nLXByb2JsZW1zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 4 months ago [\#206725](#206725) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor product listing problems](/forum/20-market-feature-requests/877859-vendor-product-listing-problems#206725 "-- url of the page with the problem -- : local &amp; live -- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.3 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5.3 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : JS error (see below)  Hi Jerome,  I've noticed it earlier, and am now reproducing it in my &quot;clean&quot; environment set up as described earlier.  Scenario: Vendor has added products, looks them up in the vendor product listing. In case it matters: Vendor has set the products to &quot;published&quot;, but Admin has not approved them yet. Just FYI, his is what it looks like:  1.) Can not sort the list by clicking  items like ID or Name. a.) Nothing happens, the order remains the same. b.) Each click on such  throws a JS error:  You may know, but it's in /media/system/js/core.js  2.) Default list order: By default, the list shows &quot;Oldest item first&quot;, and I don't see an option to change this. I strongly believe that &quot;Newest item first&quot; is the only default that makes sense (imagine vendors with long lists of products, eventually even spreading over multiple pages....!), and would appreciate if you changed the default list order accordingly, or - in case of protest from elsewhere - added an option to set the default order.  Thanks again!")*

Hi,

1) Great, they changed the core javascript again !

2) An option seems fair.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3Nzg1OS12ZW5kb3ItcHJvZHVjdC1saXN0aW5nLXByb2JsZW1zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile") Topic Author
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

11 years 4 months ago [\#206745](#206745) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[Vendor product listing problems](/forum/20-market-feature-requests/877859-vendor-product-listing-problems#206745 "-- url of the page with the problem -- : local &amp; live -- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.3 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5.3 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : JS error (see below)  Hi Jerome,  I've noticed it earlier, and am now reproducing it in my &quot;clean&quot; environment set up as described earlier.  Scenario: Vendor has added products, looks them up in the vendor product listing. In case it matters: Vendor has set the products to &quot;published&quot;, but Admin has not approved them yet. Just FYI, his is what it looks like:  1.) Can not sort the list by clicking  items like ID or Name. a.) Nothing happens, the order remains the same. b.) Each click on such  throws a JS error:  You may know, but it's in /media/system/js/core.js  2.) Default list order: By default, the list shows &quot;Oldest item first&quot;, and I don't see an option to change this. I strongly believe that &quot;Newest item first&quot; is the only default that makes sense (imagine vendors with long lists of products, eventually even spreading over multiple pages....!), and would appreciate if you changed the default list order accordingly, or - in case of protest from elsewhere - added an option to set the default order.  Thanks again!")*

1.) Why is it always **ME** being the first running into trouble and needing to write a (small) book to get things fixed? ![;)](/media/kunena/emoticons/24.png ";)")

2.) An option is not the most urgent thing if the default were "Newest item first" to start with. Or at least the sorting thingy worked, hehe.

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3Nzg1OS12ZW5kb3ItcHJvZHVjdC1saXN0aW5nLXByb2JsZW1zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 4 months ago [\#206761](#206761) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor product listing problems](/forum/20-market-feature-requests/877859-vendor-product-listing-problems#206761 "-- url of the page with the problem -- : local &amp; live -- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.3 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5.3 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : JS error (see below)  Hi Jerome,  I've noticed it earlier, and am now reproducing it in my &quot;clean&quot; environment set up as described earlier.  Scenario: Vendor has added products, looks them up in the vendor product listing. In case it matters: Vendor has set the products to &quot;published&quot;, but Admin has not approved them yet. Just FYI, his is what it looks like:  1.) Can not sort the list by clicking  items like ID or Name. a.) Nothing happens, the order remains the same. b.) Each click on such  throws a JS error:  You may know, but it's in /media/system/js/core.js  2.) Default list order: By default, the list shows &quot;Oldest item first&quot;, and I don't see an option to change this. I strongly believe that &quot;Newest item first&quot; is the only default that makes sense (imagine vendors with long lists of products, eventually even spreading over multiple pages....!), and would appreciate if you changed the default list order accordingly, or - in case of protest from elsewhere - added an option to set the default order.  Thanks again!")*

Hi,

1/ I don't know..
The fast solution will be to replace the form in the begin of the productmarket &#124; listing view Code:

&lt;form action="&lt;?php echo hikamarket::completeLink('product&amp;task=listing'); ?&gt;" method="post" name="adminForm" id="adminForm"&gt;

What I can tell you is the javascript modification is pretty recent in Joomla 3.

2/ For the moment the "getPageInfo" function is called with default arguments in the product listing function.
So you can change it by modifying a core file (view.html.php)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3Nzg1OS12ZW5kb3ItcHJvZHVjdC1saXN0aW5nLXByb2JsZW1zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile") Topic Author
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

11 years 4 months ago [\#206802](#206802) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[Vendor product listing problems](/forum/20-market-feature-requests/877859-vendor-product-listing-problems#206802 "-- url of the page with the problem -- : local &amp; live -- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.3 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5.3 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : JS error (see below)  Hi Jerome,  I've noticed it earlier, and am now reproducing it in my &quot;clean&quot; environment set up as described earlier.  Scenario: Vendor has added products, looks them up in the vendor product listing. In case it matters: Vendor has set the products to &quot;published&quot;, but Admin has not approved them yet. Just FYI, his is what it looks like:  1.) Can not sort the list by clicking  items like ID or Name. a.) Nothing happens, the order remains the same. b.) Each click on such  throws a JS error:  You may know, but it's in /media/system/js/core.js  2.) Default list order: By default, the list shows &quot;Oldest item first&quot;, and I don't see an option to change this. I strongly believe that &quot;Newest item first&quot; is the only default that makes sense (imagine vendors with long lists of products, eventually even spreading over multiple pages....!), and would appreciate if you changed the default list order accordingly, or - in case of protest from elsewhere - added an option to set the default order.  Thanks again!")*

1.) Changed name and id, and yes, sorting works now. Thanks.
Guess you'll have that in the next version? I'll find out.

2.) No qualms at all about changing a core file - it won't be the first, and I guess it ain't gonna be the last. When taking proper notes it's not a problem.
But again, in the name of all vendors with more than just a handful of products I'm urging you to make "Newest first" the default from next version on. If that'll be the case - wonderful. I can wait that long. If you don't plan to, or if it takes longer, I'll require the hack for the core file, and I'll be very thankful for the code as I don't see it being a simple ASC -&gt; DESC change.

If you want to make it a configurable option, fine, but same applies: good if in next version, otherwise please provide hack code for view.html.php for the meantime.

If the hack is it for one reason or another, and you don't want to post it here publicly (core file - I understand), there's a link to "Private Messages" here in the upper right corner... ![;)](/media/kunena/emoticons/24.png ";)")

Either way, thanks!

T

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3Nzg1OS12ZW5kb3ItcHJvZHVjdC1saXN0aW5nLXByb2JsZW1zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 4 months ago [\#206808](#206808) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor product listing problems](/forum/20-market-feature-requests/877859-vendor-product-listing-problems#206808 "-- url of the page with the problem -- : local &amp; live -- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.3 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5.3 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : JS error (see below)  Hi Jerome,  I've noticed it earlier, and am now reproducing it in my &quot;clean&quot; environment set up as described earlier.  Scenario: Vendor has added products, looks them up in the vendor product listing. In case it matters: Vendor has set the products to &quot;published&quot;, but Admin has not approved them yet. Just FYI, his is what it looks like:  1.) Can not sort the list by clicking  items like ID or Name. a.) Nothing happens, the order remains the same. b.) Each click on such  throws a JS error:  You may know, but it's in /media/system/js/core.js  2.) Default list order: By default, the list shows &quot;Oldest item first&quot;, and I don't see an option to change this. I strongly believe that &quot;Newest item first&quot; is the only default that makes sense (imagine vendors with long lists of products, eventually even spreading over multiple pages....!), and would appreciate if you changed the default list order accordingly, or - in case of protest from elsewhere - added an option to set the default order.  Thanks again!")*

Hi,

1/ That's right.

2/ You can edit the file "components/com_hikamarket/views/productmarket/view.html.php" and replace Code:

$pageInfo = $this-&gt;getPageInfo($cfg['order_sql_value']);

By Code:

$default_sort_value = trim($config-&gt;get('product_listing_default_sort_value', $cfg['order_sql_value'])); if(empty($default_sort_value)) $default_sort_value = $cfg['order_sql_value']; $default_sort_dir = trim($config-&gt;get('product_listing_default_sort_dir', 'asc')); if(empty($default_sort_dir) &#124;&#124; !in_array($default_sort_dir, array('asc', 'desc'))) $default_sort_dir = 'asc'; $pageInfo = $this-&gt;getPageInfo($default_sort_value, $default_sort_dir);

Thanks to that, you will be able to add new entries in the table "hikamarket_config" in order to change the default value and the default direction for the sorting in the HikaMarket front-end product listing.
The code will be in the next release but the option will stay hidden for the moment.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3Nzg1OS12ZW5kb3ItcHJvZHVjdC1saXN0aW5nLXByb2JsZW1zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile") Topic Author
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

11 years 4 months ago [\#206826](#206826) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[Vendor product listing problems](/forum/20-market-feature-requests/877859-vendor-product-listing-problems#206826 "-- url of the page with the problem -- : local &amp; live -- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.3 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5.3 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : JS error (see below)  Hi Jerome,  I've noticed it earlier, and am now reproducing it in my &quot;clean&quot; environment set up as described earlier.  Scenario: Vendor has added products, looks them up in the vendor product listing. In case it matters: Vendor has set the products to &quot;published&quot;, but Admin has not approved them yet. Just FYI, his is what it looks like:  1.) Can not sort the list by clicking  items like ID or Name. a.) Nothing happens, the order remains the same. b.) Each click on such  throws a JS error:  You may know, but it's in /media/system/js/core.js  2.) Default list order: By default, the list shows &quot;Oldest item first&quot;, and I don't see an option to change this. I strongly believe that &quot;Newest item first&quot; is the only default that makes sense (imagine vendors with long lists of products, eventually even spreading over multiple pages....!), and would appreciate if you changed the default list order accordingly, or - in case of protest from elsewhere - added an option to set the default order.  Thanks again!")*

Hi Jerome,

I am very thankful, indeed! Have to yet try it (have to overcome the other, bigger problem first), but trust it'll work just fine then.

Cheers!

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3Nzg1OS12ZW5kb3ItcHJvZHVjdC1saXN0aW5nLXByb2JsZW1zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile") Topic Author
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

11 years 4 months ago -  11 years 4 months ago [\#206853](#206853) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[Vendor product listing problems](/forum/20-market-feature-requests/877859-vendor-product-listing-problems#206853 "-- url of the page with the problem -- : local &amp; live -- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.3 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5.3 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : JS error (see below)  Hi Jerome,  I've noticed it earlier, and am now reproducing it in my &quot;clean&quot; environment set up as described earlier.  Scenario: Vendor has added products, looks them up in the vendor product listing. In case it matters: Vendor has set the products to &quot;published&quot;, but Admin has not approved them yet. Just FYI, his is what it looks like:  1.) Can not sort the list by clicking  items like ID or Name. a.) Nothing happens, the order remains the same. b.) Each click on such  throws a JS error:  You may know, but it's in /media/system/js/core.js  2.) Default list order: By default, the list shows &quot;Oldest item first&quot;, and I don't see an option to change this. I strongly believe that &quot;Newest item first&quot; is the only default that makes sense (imagine vendors with long lists of products, eventually even spreading over multiple pages....!), and would appreciate if you changed the default list order accordingly, or - in case of protest from elsewhere - added an option to set the default order.  Thanks again!")*

Just tried:

As expected, code snippet in file, DB rows added, default sort value set to 0 and sort dir to desc = works! Brilliant!

FYI, the value must be 0 or empty, only then dir does what it's supposed to do, asc or desc across the whole table. If the value is anything else, e.g. 1, then it's strange: no "sorting", but the newest is pulled at the top of the list, the rest below is asc, no matter what dir is set to:
10 (= newest)
1 (= oldest)
2
3
4
...

Anyway, the basic functionality is there. Thanks again.

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

Last edit: 11 years 4 months ago by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3Nzg1OS12ZW5kb3ItcHJvZHVjdC1saXN0aW5nLXByb2JsZW1zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.113 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
