Forums / Bug Reports / [Not a bug] TEXT_NO_PRODUCTS not defined

[Not a bug] TEXT_NO_PRODUCTS not defined

Views: 1,272

Results 1 to 2 of 2
21 Aug 2013, 8:21 PM
#1
tapper avatar

tapper

Zen Follower

Join Date:
Nov 2007
Location:
Upstate NY
Posts:
233
Plugin Contributions:
0

[Not a bug] TEXT_NO_PRODUCTS not defined

Definition of TEXT_NO_PRODUCTS is missing from
/includes/languages/english/specials.php and /includes/languages/english/featured_products.php

On a fresh install with no featured products I got TEXT_NO_PRODUCTS as the page heading.

Adding the following line to specials.php and featured_products.php fixed the issue

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

:D

21 Aug 2013, 10:17 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: [Not a bug] TEXT_NO_PRODUCTS not defined

I'm not sure how you arrived at that scenario.

When I do a fresh clean install, without demo products, and visit the index.php?main_page=featured_products page, I get a friendly message saying: >

More featured products will be added soon. Please check back later.
|

And for main_page=specials, there is no error, and no TEXT_NO_PRODUCTS message. Just an empty section of the page.

.
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.