Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Location
    Ohio
    Posts
    51
    Plugin Contributions
    0

    Two Questions...

    I wasn't sure where to put these, so I am hoping its ok to put them here.

    First off, is there a way to make it so a customer can use an "username" instead of their real name for customer reviews? I have quite a few people that are saying they went to leave reviews but decided against it because it shows their full real name when they go to leave the review. Is there any way of making it so a username or just initials show up like on some other sites for those that want to keep their information private? As of now I went in and changed one customers First and Last name to a username for them to leave a review but I knew that person and had their ok...obviously I cant do that with everyone that signs up LOL

    Secondly, I downloaded version 1.3.0 not realizing there was a 1.3.1...I JUST got the store up and running perfect and then realized so I am a bit nervous/hesitant to upgrade. Anyone know how difficult it is to upgrade it and how much stuff I will need to redo? In the zip for 1.3.1 it said there was a file with info on what you needed to do exactly to upgrade from 1.3.0 but the file was missing from the zip sadly so I am clueless and don't want to have the store down for any long length of time Especially when its brand new and thus far seems to be working fine.

    Thanks for any ideas or thoughts in advance :O)

    HUGS!!

    ann :)

  2. #2
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Two Questions...

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

    Absolute

  3. #3
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Two Questions...

    It's important that you do the upgrade to 1.3.0.1, as there were a number of bug fixes in that release. You can download a zip with just the changed files, and if you've used template overrides correctly you shouldn't have any problems.
    Neville
    An assumption is what you arrive at when you get tired of thinking...

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

    Default Re: Two Questions...

    Well I just didn't understand how all that works or what "possibly" could happen...

    I just ran into one of the bugs though...I changed the code suggested above and upon doing so it disabled my downloads which it the same thing that happened when I tried to do the over-ride for the Title of the page and I know that was something that 1.3.1 fixes or I hope so....but I am so worried Ill lose data or do it wrong that I am hesitant LOL. I have used the over-rides for 99% of the changes although a couple I couldn't do it that way for obvious reasons....

    And as I said the instructions for the upgrade are missing from that zip I got which worries me even more :O(

    HUGS!!

    ann :O)

 

 

Similar Threads

  1. Two questions, hopefully you have two answers! :)
    By quickening in forum General Questions
    Replies: 4
    Last Post: 12 Aug 2008, 02:41 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