Post by Gobbo » Tue Feb 16, 2021 4:49 pm

Hi,

I want to add a category called 'New Items', but how can I set it up so all items only listed in this category are in date format? The latest first.

Upgraded to opencart version 3.0.3.2


Active Member

Posts

Joined
Tue Jun 22, 2010 12:38 am

Post by paulfeakins » Tue Feb 16, 2021 5:09 pm

Gobbo wrote:
Tue Feb 16, 2021 4:49 pm
I want to add a category called 'New Items', but how can I set it up so all items only listed in this category are in date format? The latest first.
If you can't find an extension, you could pay a developer such as ourselves or post a job in the Commercial Support Forum.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by Gobbo » Tue Feb 16, 2021 5:11 pm

Thanks Paul,

But we really can't afford it.

Upgraded to opencart version 3.0.3.2


Active Member

Posts

Joined
Tue Jun 22, 2010 12:38 am

Post by Gobbo » Tue Feb 16, 2021 5:34 pm

Found this extension https://www.opencart.com/index.php?rout ... iA941yC7XA

FIngers crossed it'll work.

Upgraded to opencart version 3.0.3.2


Active Member

Posts

Joined
Tue Jun 22, 2010 12:38 am

Post by xxvirusxx » Tue Feb 16, 2021 5:34 pm

Try to convert this 2.3.0.2 ocmod extension for 3.0.x.x

https://www.opencart.com/index.php?rout ... n_id=27639

My converted modules | Buy me a beer | Opencart upgrade service


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by buluterol » Tue Feb 16, 2021 11:04 pm

Gobbo wrote:
Tue Feb 16, 2021 4:49 pm
Hi,

I want to add a category called 'New Items', but how can I set it up so all items only listed in this category are in date format? The latest first.
I dont know default Custom HTML Code module can execute <script> tag inside but you can use those URL parameters on New Items category page URL:

Code: Select all

&sort=p.date_added&order=DESC
Or

Code: Select all

&sort=p.date_added&order=ASC
It sorts for date newest or oldest

Create a new design for your new items category
Create a html code module with these codes:

Code: Select all

<script>
if (!window.location.href.indexOf("p.date_added") )
window.location.href = "https://yourwebsite.com/new-items?&sort=p.date_added&order=DESC"
</script>
Add this html code module to your new items category page design ( dont forget to set New Items category design)

If you do it correct that whereever you click on new item category page link it will go to that link and it will sort it quickly.

User avatar
Newbie

Posts

Joined
Fri Feb 22, 2019 6:04 am
Who is online

Users browsing this forum: paulfeakins, thekrotek and 40 guests