Zen Cart Logo
Forums / General Questions / TEXT_APPROVAL_REQUIRED overriding not working

TEXT_APPROVAL_REQUIRED overriding not working

Locked

Views: 834

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
22 Mar 2008, 1:48 PM
#1
ronson avatar

ronson

New Zenner

Join Date:
Oct 2006
Posts:
20
Plugin Contributions:
0

TEXT_APPROVAL_REQUIRED overriding not working

I think I found a possible bug in Zen Cart 1.3.7a. Don't know whether it exists in 1.3.8 or later versions.

TEXT_APPROVAL_REQUIRED defined in product_reviews_write.php is not overridden no matter what I try. The overridden *product_reviews_write.php *is in in /includes/languages/english/MYTEMPLATE/. And... is not working. TEXT_APPROVAL_REQUIRED is used in /includes/templates/MYTEMPLATE/templates/

Any ideas?

22 Mar 2008, 2:18 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: TEXT_APPROVAL_REQUIRED overriding not working

Not a bug in default Zen Cart. Perhaps you've made an error in your customizations.

/includes/languages/english/product_reviews_write.php contains:```
define('TEXT_APPROVAL_REQUIRED', '<strong>NOTE:</strong> Reviews require prior approval before they will be displayed');

/includes/languages/english/NAME_OF_YOUR_TEMPLATE_HERE/product_reviews_write.php

If you've got any other statements in other files that redefine TEXT_APPROVAL_REQUIRED, you might be setting it before the normal process kicks in.

Search for all instances of TEXT_APPROVAL_REQUIRED in your store using the Developers Toolkit  (see <https://www.zen-cart.com/tutorials/index.php?article=38>  and <https://www.zen-cart.com/tutorials/index.php?article=39> ), and check for duplicates that are incorrectly placed.
23 Mar 2008, 1:03 AM
#3
ronson avatar

ronson

New Zenner

Join Date:
Oct 2006
Posts:
20
Plugin Contributions:
0

Re: TEXT_APPROVAL_REQUIRED overriding not working

Actually the problem turned out to be browser related. After restarting the browser it was ok :smile: