If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / How to disable new products of the month...?

How to disable new products of the month...?

Locked

Started by jrod31 on 30 Oct 2009, 4:46 AM · Views: 1,019

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
30 Oct 2009, 4:46 AM
#1
jrod31 avatar

jrod31

New Zenner

Join Date:
Jun 2007
Location:
Orlando, Florida
Posts:
72
Plugin Contributions:
0

Post #1 by jrod31

I want to take out the link from under the product list where it says new products for october.... an also i dont want the site to show the new products of the month how do i disable this feature?

30 Oct 2009, 4:52 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Post #2 by haredo

Jr,
admin panel/ configuration/ maximum value/

  1. set them to 0

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

30 Oct 2009, 6:03 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

A quick FAQ search for "new products" reveals this article: https://www.zen-cart.com/tutorials/index.php?article=3

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Mar 2010, 2:09 AM
#4
david_johns avatar

david_johns

New Zenner

Join Date:
Mar 2010
Posts:
5
Plugin Contributions:
0

Post #4 by david_johns

When I set it to "0" I still get the header "New Products For ..." without any products below it. To completely disable this I added a line to includes/modules/new_products.php:

  //if ($new_products->RecordCount() > 0) {
  if ($new_products->RecordCount() > 0 && MAX_DISPLAY_NEW_PRODUCTS > 0) {

Everyone please tell me if there is a problem with this or if it is easier/better to do another way.

23 Mar 2010, 9:50 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #5 by drbyte

That shouldn't be necessary, since the RecordCount would already be zero if MAX_DISPLAY_NEW_PRODUCTS is set to zero.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.