Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / change "New Products for" layout

change "New Products for" layout

Locked

Views: 3,037

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
24 Jun 2007, 7:42 PM
#1
winky3d avatar

winky3d

New Zenner

Join Date:
Jun 2007
Posts:
44
Plugin Contributions:
0

change "New Products for" layout

Hello,

I can over ride tpl_modules_whats_new.php.

But I want it to look like tpl_products_new_default.php

Pasting that code into the override version of tpl_modules_whats_new.php just gives the Sort By dropdown and text reading "More new products will be added soon. Please check back later."

tpl_products_new_default.php works fine from the "New Products" link.

thx.

24 Jun 2007, 8:32 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: change "New Products for" layout

Pasting that code into the override version of tpl_modules_whats_new.php just gives the Sort By dropdown and text reading "More new products will be added soon. Please check back later."
How much of this code and/or what part of this did you paste and what part of the orig did you remove?

24 Jun 2007, 8:47 PM
#3
winky3d avatar

winky3d

New Zenner

Join Date:
Jun 2007
Posts:
44
Plugin Contributions:
0

Re: change "New Products for" layout

I tried a full replace and got what I mentioned.

Also tried adding just the "* display the new products" section below the orig code and got the orig display and text reading "More new products will be added soon. Please check back later."

It doesn't seem to be finding the new products.

24 Jun 2007, 8:49 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: change "New Products for" layout

Do you have products added?
How long has it been since you added a product?
Check the date filter for new products in the admin

Post a url to this

24 Jun 2007, 8:59 PM
#5
winky3d avatar

winky3d

New Zenner

Join Date:
Jun 2007
Posts:
44
Plugin Contributions:
0

Re: change "New Products for" layout

I added products in the last couple of days.

Not sure where the date filter is, but
tpl_products_new_default.php works fine from the "New Products" link, meaning it shows all the new products.
As does the orig tpl_modules_whats_new.php

edit: I have "max values: new product listing - limited to" set to 0

24 Jun 2007, 9:12 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: change "New Products for" layout

edit: I have "max values: new product listing - limited to" set to 0This should prevent a new listing and most likely why you get the message...

24 Jun 2007, 9:17 PM
#7
winky3d avatar

winky3d

New Zenner

Join Date:
Jun 2007
Posts:
44
Plugin Contributions:
0

Re: change "New Products for" layout

According to the admin panel
max values: new product listing - limited to" set to 0 = All Products

also - it seems that modules/new_products.php is what I need to change.

24 Jun 2007, 9:26 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: change "New Products for" layout

My Opps:oops:
I thought that this was New Products Listing- Number Per Page

What this is : is the time filter that I referenced

24 Jun 2007, 9:33 PM
#9
winky3d avatar

winky3d

New Zenner

Join Date:
Jun 2007
Posts:
44
Plugin Contributions:
0

Re: change "New Products for" layout

New Products Listing- Number Per Page is set to 10

Just tried pasting all of tpl_products_new_default.php
into an override of modules/new_products.php and got
just the Sort By dropdown and text reading "More new products will be added soon. Please check back later."

Seems I have do a big mod on new_products.php... ack!

25 Jun 2007, 2:12 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: change "New Products for" layout

Just tried pasting all of tpl_products_new_default.php
into an override of modules/new_products.php and got
You are mixing these in error tpl's belong in templates and things like new_products.php belong where you find them and not as a tpl

Try looking at the tpl_modules_products_new_listing.php and then tpl_modules_whats_new.php and see if this illuminates anything

25 Jun 2007, 2:33 AM
#11
winky3d avatar

winky3d

New Zenner

Join Date:
Jun 2007
Posts:
44
Plugin Contributions:
0

Re: change "New Products for" layout

Over-riding those tpl's doesn't work.
I'd hoped that overriding tpl_modules_whats_new.php with tpl_modules_products_new_listing.php would work but it can't find the products and only says, again, "More new products will be added soon. Please check back later."

I pretty sure it has to be an override for modules/new_products.php
but the sql in that file calls a table without a product_description field.

Can I get some help with the sql that will include a product_description?