Results 1 to 2 of 2
  1. #1
    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 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 :)
    Last edited by ann0314; 1 Jun 2006 at 04:01 AM.

  2. #2
    Join Date
    May 2006
    Location
    Ohio
    Posts
    51
    Plugin Contributions
    0

    Default 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

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

    Code:
    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


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

    Code:
    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 :)

 

 

Similar Threads

  1. Still having problems with CHMOD permissions
    By cloakvai in forum General Questions
    Replies: 13
    Last Post: 7 Apr 2009, 02:54 PM
  2. Still having Banner Problems!?
    By Lucky7 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 31 Jan 2009, 09:20 PM
  3. still having problems centering logo
    By nativeenergy in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 19 Nov 2008, 02:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg