Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 48
  1. #21
    Join Date
    Feb 2006
    Location
    NM
    Posts
    750
    Plugin Contributions
    1

    Idea or Suggestion Re: What shows in a customer review

    I'll try this one too...about including the city and state.

    You see, this is info residing in tables in a database that cross over each other using a customer address id.

    We'd love to do this also but it would mean matching the customer address id with their info in the address book table in the database.

    Has anyone done this? Seems that for a file that is not part of the over-ride system this would be a little dicey to do.

  2. #22
    Join Date
    Oct 2006
    Posts
    175
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    I am not having any luck with this? I have removed customers_lastname from line:

    Line 80:
    $sql = $db->bindVars($sql, 'roductsID', $_GET['products_id'], 'integer');
    $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');
    $sql = $db->bindVars($sql, ':customersName', $customer->fields['customers_firstname'] . ' ' . $customer->fields[''], 'string');
    $sql = $db->bindVars($sql, ':rating', $rating, 'string');

    Line 42

    $customer_query = "SELECT customers_firstname, customers_email_address
    FROM " . TABLE_CUSTOMERS . "
    WHERE customers_id = :customersID";



    I have made three test posts and all show last name can anyone help?


    version 1 .3 .7

    Site http://www.crystalsoftime.com

    thanks in advance!
    [FONT="Comic Sans MS"]Red[/FONT]

  3. #23
    Join Date
    Oct 2006
    Posts
    175
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    I found my problem a simple coma thank you though! (post #3 works beautifully)

    Renee
    [FONT="Comic Sans MS"]Red[/FONT]

  4. #24
    Join Date
    Sep 2008
    Posts
    42
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    this is what I did.

    Edit this file (I used Wordpad)

    /includes/modules/pages/product_reviews_write/header_php.php

    change:
    PHP Code:
        $sql $db->bindVars($sql':productsID'$_GET['products_id'], 'integer');
        
    $sql $db->bindVars($sql':customersID'$_SESSION['customer_id'], 'integer');
        
    $sql $db->bindVars($sql':customersName'$customer->fields['customers_firstname'] . ' ' $customer->fields['customers_lastname'], 'string');
        
    $sql $db->bindVars($sql':rating'$rating'string');

        
    $db->Execute($sql); 
    to:
    PHP Code:
        $sql $db->bindVars($sql':productsID'$_GET['products_id'], 'integer');
        
    $sql $db->bindVars($sql':customersID'$_SESSION['customer_id'], 'integer');
        
    $sql $db->bindVars($sql':customersName'$customer->fields['customers_firstname'], 'string');
        
    $sql $db->bindVars($sql':rating'$rating'string');

        
    $db->Execute($sql); 

  5. #25
    Join Date
    Oct 2008
    Posts
    25
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    To remove the date on the reviews page and the product_reviews_info pages:

    Is the best way to remove : r.date_added from the headers?

    PHP Code:
     $review_info_query "SELECT rd.reviews_text, r.reviews_rating, r.reviews_id, r.customers_name,
                                  r.date_added, r.reviews_read, p.products_id, p.products_price,
                                   p.products_tax_class_id, p.products_image, p.products_model, pd.products_name
                            FROM " 
    TABLE_REVIEWS " r, " TABLE_REVIEWS_DESCRIPTION " rd, " TABLE_PRODUCTS " p, " TABLE_PRODUCTS_DESCRIPTION " pd
                            WHERE r.reviews_id = :reviewsID
                            AND r.reviews_id = rd.reviews_id
                            AND rd.languages_id = :languagesID
                            AND r.products_id = p.products_id
                            AND p.products_status = '1'
                            AND p.products_id = pd.products_id
                            AND pd.language_id = :languagesID " 
    $review_status
    and remove the Date Added: text in the english files?


    Is this safe to do regarding the db?
    Or is a bad idea? and is there a better way?

  6. #26
    Join Date
    Oct 2008
    Posts
    25
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    woops... product_reviews page too.

  7. #27
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    Simply remove "Date Added: %s" from your english file.

    Code:
    define('TEXT_REVIEW_DATE_ADDED', '');

  8. #28
    Join Date
    Mar 2006
    Location
    Tennessee
    Posts
    310
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    Thank you for the last name fix! Worked like a charm.

    This may not be possible, but ideally I would like to have the customer's first name and last initial.

    Is there a way to do this?
    I'll finish that project tomorrow, I've made enough mistakes today!

  9. #29
    Join Date
    Apr 2008
    Location
    Calif
    Posts
    85
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    Thank you for this post. It worked like a charm. Since I am horrilbe at knowing what to remove and still keep things working I did the following changes.

    From this:
    PHP Code:
    $customer_query "SELECT customers_firstname, customers_lastname, customers_email_address
                       FROM " 
    TABLE_CUSTOMERS "
                       WHERE customers_id = :customersID"

    To this:
    PHP Code:
    $customer_query "SELECT customers_firstname, customers_email_address
                       FROM " 
    TABLE_CUSTOMERS "
                       WHERE customers_id = :customersID"

    And,
    From this:
    PHP Code:
       $sql $db->bindVars($sql':customersName'$customer->fields['customers_firstname'] . ' ' $customer->fields['customers_lastname'], 'string');
        
    $sql $db->bindVars($sql':rating'$rating'string'); 
    To this:
    PHP Code:
      $sql $db->bindVars($sql':customersName'$customer->fields['customers_firstname'] . ' ' $customer->fields['customers_city'], 'string');
        
    $sql $db->bindVars($sql':rating'$rating'string'); 
    I don't care if the city shows up or not, and it doesn't.

    Thanks again

  10. #30
    Join Date
    Oct 2008
    Posts
    21
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    Thanks! This worked for me for just last name. (not concerned about city in my case)

    Although, any help changing existing customers would be appreciated :)

 

 
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. How do I change what shows in browser window?
    By ravenwolf in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 4 Apr 2013, 05:11 AM
  2. Why Only One Review shows on the side box?
    By zihaizi in forum Basic Configuration
    Replies: 4
    Last Post: 17 Sep 2010, 03:09 PM
  3. Review page for specific product shows no reviews
    By vampofvegas in forum General Questions
    Replies: 0
    Last Post: 5 May 2010, 01:33 AM
  4. Replies: 2
    Last Post: 28 Sep 2009, 10:10 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