Post by winter » Sat Oct 20, 2018 9:03 pm

Hi there,

I have just set up my webshop using OC 3.0.2.0.
When I add a new product in, I find that instead of that product being added to the page in alphabetical order, it is in fact added to the end of the page.
The way around this is to manually set the Sort By drop down to (NAME A - Z).
The newly created item (uncloned) then appears in the correct order.

How do I change it so that each page automatically defaults to the (NAME A - Z) SORT BY setting, instead of the SORT BY: Default setting?

Just as a foot note, this doesn't happen, if say I copy a current product then edit it. The reason I don't wish to do that, is that the then newly (cloned/copied) item, does not appear in the New Arrivals element if the webshop, in the correct order i.e. date added.

Would appreciate some assistance please.
Webshop link added for reference, so you can see the out of Alpha order item at the end.
https://www.winter-light.nl/Mail-Order- ... ABC?page=8

Many thanks.

Winter-Light
Last edited by winter on Tue May 14, 2019 5:43 pm, edited 2 times in total.

New member

Posts

Joined
Wed May 16, 2012 6:10 pm

Post by khnaz35 » Sat Oct 20, 2018 9:13 pm

winter wrote:
Sat Oct 20, 2018 9:03 pm
Hi there,

I have just set up my webshop using OC 3.0.2.0.
When I add a new product in, I find that instead of that product being added to the page in alphabetical order, it is in fact added to the end of the page.
The way around this is to manually set the Sort By drop down to (NAME A - Z).
The newly created item (uncloned) then appears in the correct order.

How do I change it so that each page automatically defaults to the (NAME A - Z) SORT BY setting, instead of the SORT BY: Default setting?

Just as a foot note, this doesn't happen, if say I copy a current product then edit it. The reason I don't wish to do that, is that the then newly (cloned/copied) item, does not appear in the New Arrivals element if the webshop, in the correct order i.e. date added.

Would appreciate some assistance please.
Webshop link added for reference, so you can see the out of Alpha order item at the end.
https://www.winter-light.nl/Mail-Order- ... ABC?page=8

Many thanks.

Winter-Light
While you are adding products don't use sort order leave it blank

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by DigitCart » Sat Oct 20, 2018 9:18 pm

Hi,
for category page, edit this file:

Code: Select all

catalog\controller\product\category.php
Find:

Code: Select all

$sort = 'p.sort_order';
Change it to:

Code: Select all

$sort = 'pd.name';
Then you may need to refresh your modifications.

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by winter » Sun Oct 21, 2018 12:19 am

Many thanks for the fast response.

I've emptied the sort order field (leaving it blank) when adding the product and this seems to have sorted the problem.

Many thanks!

New member

Posts

Joined
Wed May 16, 2012 6:10 pm

Post by khnaz35 » Sun Oct 21, 2018 7:11 pm

winter wrote:
Sun Oct 21, 2018 12:19 am
Many thanks for the fast response.

I've emptied the sort order field (leaving it blank) when adding the product and this seems to have sorted the problem.

Many thanks!
You are welcome, glad you found it helpful

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: nonnedelectari and 404 guests