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.

Using opencart 3.0.3.2 - PHP 7.4 - Standard Template - Add to Cart Enable Disable Out of Stock Product 3.x - Export/Import Tool (V3.22) for OpenCart 3.x - Footer Social Media Link( 3.x ) v1.0


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.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

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

Thanks Paul,

But we really can't afford it.

Using opencart 3.0.3.2 - PHP 7.4 - Standard Template - Add to Cart Enable Disable Out of Stock Product 3.x - Export/Import Tool (V3.22) for OpenCart 3.x - Footer Social Media Link( 3.x ) v1.0


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.

Using opencart 3.0.3.2 - PHP 7.4 - Standard Template - Add to Cart Enable Disable Out of Stock Product 3.x - Export/Import Tool (V3.22) for OpenCart 3.x - Footer Social Media Link( 3.x ) v1.0


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

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


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: No registered users and 253 guests