Forums / Templates, Stylesheets, Page Layout / Problem removing customer last name from reviews using override

Problem removing customer last name from reviews using override

Locked

Views: 989

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
7 Sep 2009, 9:13 PM
#1
crewcut451 avatar

crewcut451

New Zenner

Join Date:
Aug 2009
Posts:
4
Plugin Contributions:
0

Problem removing customer last name from reviews using override

Hi,

I am fairly new to Zen. I am using a new install of Zen 1.3.8a.

I have been tweaking some of pages in the cart using the override system. Everything has been going smoothly up until now. I want to remove the customers last name from the product reviews. I have searched the forums and found this solution mentioned HERE.

This method works fine if I modify the file in includes/modules/pages/product_reviews_write/header_php.php . However, if I try to implement the override system by adding and modifying the file in includes/modules/MY_TEMPLATE/pages/product_reviews_write/header_php.php, it doesn't work. It still displays the last name.

In particular, the highlighted part is what I have edited from line 42 of header_php.php .

$customer_query = "SELECT customers_firstname, customers_lastname, customers_email_address

Am I doing something wrong? Any help would be appreciated.

Store LINK

Dan

8 Sep 2009, 2:43 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Problem removing customer last name from reviews using override

pages folder does not have a classic folder inside - only the areas that have a classic folder by default are overridable
https://www.zen-cart.com/tutorials/index.php?article=230

Zen-Venom Get Bitten

8 Sep 2009, 3:12 AM
#3
crewcut451 avatar

crewcut451

New Zenner

Join Date:
Aug 2009
Posts:
4
Plugin Contributions:
0

Re: Problem removing customer last name from reviews using override

kobra,

Thanks for clearing that up. I had read that in the tutorials, and there is a classic folder in includes/modules. That is where my confusion kicked in. I was trying to apply the override too deep into the directory. Now I understand.

Thanks for your help.

Dan

8 Sep 2009, 6:52 AM
#4
kobra avatar

kobra

Black Belt

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

Re: Problem removing customer last name from reviews using override

As a rule, one can add in the comments of any file edited, their name or another distinguishing string....I add "edited by kobra"
When an upgrade is due - you can search all files for "name" that you used and have a list of all files changed

Zen-Venom Get Bitten

8 Sep 2009, 7:07 AM
#5
crewcut451 avatar

crewcut451

New Zenner

Join Date:
Aug 2009
Posts:
4
Plugin Contributions:
0

Re: Problem removing customer last name from reviews using override

That is a great tip! Thanks

Dan