Zen Cart Logo
Forums / General Questions / New products for ????

New products for ????

Locked

Views: 1,019

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
2 Nov 2007, 4:39 PM
#1
dr_koolaid avatar

dr_koolaid

Zen Follower

Join Date:
Dec 2003
Location:
Norway
Posts:
120
Plugin Contributions:
1

New products for ????

Hey
The text "New products for November" is not quiet correct default value.

In admin max alues yoou can limit Newe products to 30 days, but this still not amking the statement that the products are new in november when they are new in Oktober.

Just call this "New produkts" or something will fix it

:)

3 Nov 2007, 5:04 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: New products for ????

You would need to customize the defined constant for this ...

A search on the text:
New Products For

in the Tools ... Developers Tool Kit ...

utilizing the bottom input box would find this in your main language file:

  define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

Copying this to your templates and overrides directory would allow you to customize the text so that it doesn't include the name of the month in the module:

  if ($new_products->RecordCount() > 0) {
    if (isset($new_products_category_id) && $new_products_category_id != 0) {
      $category_title = zen_get_categories_name((int)$new_products_category_id);
      $title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . ($category_title != '' ? ' - ' . $category_title : '' ) . '</h2>';
    } else {
      $title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . '</h2>';
    }
    $zc_show_new_products = true;
  }

where it is inserting the name into the define of that constant ...

Once changed, it will read the way you need it to read for your particular site ...