Post by Simple » Thu Dec 09, 2010 12:24 am

Is there a way to display "Latest Products" on its own page ?
On my old store on oscommerce you used to be able to click "Latest Products" and it would display the products recently added.
This was handy for regular customers who could see easily whats new.

I know the Latest Products module can be customized to display more items but I don't want it to take up lots of room on the home page. I have added a lot of items today, more than can be displayed in the module on the home page.

Thank You

User avatar
New member

Posts

Joined
Sun Jul 25, 2010 6:44 pm

Post by Johnathan » Thu Dec 09, 2010 12:34 am


Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Simple » Thu Dec 09, 2010 12:56 am

Superb, thanks for the quick reply Johnathan

User avatar
New member

Posts

Joined
Sun Jul 25, 2010 6:44 pm

Post by Johnathan » Wed Dec 15, 2010 12:58 pm

As an update, I've created Latest, Featured, and Bestseller Pages which you can just upload and then put the links where you want. This way it supports pagination and sorting, and will work like any other product-listing page. You can get it for not too much here:

http://www.getclearthinking.com/store/l ... ller-pages

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Simple » Wed Dec 15, 2010 5:36 pm

Johnathan wrote:As an update, I've created Latest, Featured, and Bestseller Pages which you can just upload and then put the links where you want. This way it supports pagination and sorting, and will work like any other product-listing page. You can get it for not too much here:

http://www.getclearthinking.com/store/l ... ller-pages

Can you set how many products are displayed on the Latest product page.

Looks very good thank you, Just what open cart needs :)

User avatar
New member

Posts

Joined
Sun Jul 25, 2010 6:44 pm

Post by Simple » Wed Dec 15, 2010 6:02 pm

Installed and works a treat thank you. I have commented on the package and rated it.
Thanks a lot

User avatar
New member

Posts

Joined
Sun Jul 25, 2010 6:44 pm

Post by Johnathan » Wed Dec 15, 2010 11:38 pm

Simple wrote:Can you set how many products are displayed on the Latest product page.

Looks very good thank you, Just what open cart needs :)
Thanks for the comments! As for pagination, by default it simply lists all of the products, using the pagination setting from the admin. If you want to limit it to a certain number of products, you can do the following change (in this example, showing 24 total products 8 at a time):

Code: Select all

IN:
/catalog/controller/product/latest.php

REPLACE:
$this->model_catalog_latest->getTotalLatestProducts()

WITH:
24

AND REPLACE ALL OCCURRENCES OF:
$this->config->get('config_catalog_limit')

WITH:
8

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by manson » Thu Dec 16, 2010 2:13 am

hi john,
meaning 8 products will be shown per page and it goes up until 24 pages?

I don't know much about PHP...~~
Don't know much about JQuery...~~
But I do know that I love OC!~~
and I know that if you'd guide me, what a wonderful world this would be...!~~

_________________________________________________________________
Using OC 1.4.9.2
http://www.ten2hundred.com


User avatar
New member

Posts

Joined
Mon Dec 06, 2010 6:58 pm

Post by Johnathan » Thu Dec 16, 2010 4:58 am

No, meaning it will show 8 products per page, with 3 pages. (3 pages x 8 products per page = 24 total products)

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by manson » Thu Dec 16, 2010 9:06 am

Johnathan wrote:No, meaning it will show 8 products per page, with 3 pages. (3 pages x 8 products per page = 24 total products)
ahhh ok! nice this is what i need. btw is tweaking the all_products page same as this? cause when i go products/all it is automaticly set at 100 although my global setting is 44.

I don't know much about PHP...~~
Don't know much about JQuery...~~
But I do know that I love OC!~~
and I know that if you'd guide me, what a wonderful world this would be...!~~

_________________________________________________________________
Using OC 1.4.9.2
http://www.ten2hundred.com


User avatar
New member

Posts

Joined
Mon Dec 06, 2010 6:58 pm

Post by Johnathan » Thu Dec 16, 2010 11:25 am

Probably, although I haven't ever used it so I couldn't say for sure. The code is likely very similar, though.

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by manson » Thu Dec 16, 2010 8:47 pm

yup I found the codes with almost the same variables, so I got it showing the right limit each time it is loaded.

I did notice that allproducts page have the dropdown selection of 10/20/50/100 limit for the page. can you show me how to copy these codes (exactly which line of codes that shows these limit on top of the page) to the one you created? (latest page).

Thanks Johnathan!

I don't know much about PHP...~~
Don't know much about JQuery...~~
But I do know that I love OC!~~
and I know that if you'd guide me, what a wonderful world this would be...!~~

_________________________________________________________________
Using OC 1.4.9.2
http://www.ten2hundred.com


User avatar
New member

Posts

Joined
Mon Dec 06, 2010 6:58 pm
Who is online

Users browsing this forum: No registered users and 33 guests