Zen Cart Logo
Forums / General Questions / Still having problems with Product Reviews

Still having problems with Product Reviews

Locked

Views: 1,821

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
1 Jun 2006, 2:56 AM
#1
ann0314 avatar

ann0314

New Zenner

Join Date:
May 2006
Location:
Ohio
Posts:
51
Plugin Contributions:
0

Still having problems with Product Reviews

OK I had posted previously about wanting to make it so when someone leaves a product review it only shows their Initials. Someone gave me code (which now I cant find the post to say what it was LOL) but someone gave me code to do it. I did what it said and once I did the reviews did only give first and last initial. Problem is it disabled my downloads on the site LOL. It seems everytime I modify either the header.php or meta_tags.php file anyway..everytime I edit either one of them in any folder whether it be I over-ride the original or save over the original..it disables my downloads. If I put the meta file back to what it was it works. I have had alot of people leave reviews but sadly I haven't put them up because I really don't want their name displaying. Does anyone know of a way to do this without modifying those two files or WHY anything I touch in those 2 files disables my downloads and how to stop it from doing that? In the meta file I simply changed my page title text and it disabled my downloads so I had to work around it LOL.

And incase anyone wants to know...it's Zencart 1.3.0.1...the dowloads are about 20MB...they are all working PERFECTLY now with no problems unless I touch one of those two files...then poof no more downloads :( I can't even do an over-ride on them sadly.

And incase anyone wants to see..the store is here: ARTCollaborations

Sorry to ask but really the site is doing WONDERFULLY and there's only a couple little glitches I need to work through and it'll be done and perfect :smile: I must say I LOVE ZEN!!! Have been recommending it to everyone in my line of work etc...really an awesome option to OSC! :)

HUGS and THANKS!!

ann :)

1 Jun 2006, 3:11 AM
#2
ann0314 avatar

ann0314

New Zenner

Join Date:
May 2006
Location:
Ohio
Posts:
51
Plugin Contributions:
0

Re: Still having problems with Product Reviews

OK found what I was told to do....

The review this is fairly easy to fix. There are two files you need to edit.

The first is the main one. Back up the following file before making ANY alterations.

includes/modules/pages/product_reviews_write/header.php

If you are only interested in initial, then go to line 80, and replace this line

$sql = $db->bindVars($sql, ':customersName', $customer->fields['customers_firstname'] . ' ' . $customer->fields['customers_lastname'], 'string');

with this one

Code:

$sql = $db->bindVars($sql, ':customersName', substr($customer->fields['customers_firstname'], 0, 1) . '.' . substr($customer->fields['customers_lastname'], 0, 1) . '.', 'string');

This will change the way it is recorded in the database.

The next file you need to edit is how the name is displayed on the Write a Review page. This can be found at

includes/templates/YOUR ACTIVE TEMPLATE/templates/tpl_product_reviews_write_default.php

Goto line 41 na dreplace

zen_output_string_protected($customer->fields['customers_firstname'] . ' ' . $customer->fields['customers_lastname'])
```with this

zen_output_string_protected(substr($customer->fields['customers_firstname'], 0, 1) . '.' . substr($customer->fields['customers_lastname'], 0, 1) . '.')

Hope this helps

Which I did and then poof no downloads anymore. It seems that the header.php files cause me more havok with downloads then anything else..does anyone no way or how to stop this??

ann :)