Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Posts
    23
    Plugin Contributions
    0

    Default How do I edit the reviews table in the database?

    Ok, I've sorted my reviews so that only the customer's first name shows, following the advice on some other threads on here.

    Now I have just 3 existing reviews and I'd really like to remove the last name from these. As I understand it from previous threads, I just need to go into the review tables in the database and edit them.

    Er... where are these? I've tried searching with developers tool kit and in the files, but not really sure what I am looking for...

    Can anyone help?

    (Am using 1.3.8 and was set up using Fantastico so I didn't set up the database myself)

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: How do I edit the reviews table in the database

    You can't fiddle with the database from Zencart. You should have a control panel in your hosting account which should have a database section which should include phpMyAdmin. That's the program you want to use.

  3. #3
    Join Date
    Aug 2009
    Posts
    23
    Plugin Contributions
    0

    Default Re: How do I edit the reviews table in the database

    Right, found the phpadmin. But I have to say I don't have a clue what to do next. Is this something that I shouldn't be messing with, or is it easy to just go in and change a line somewhere. If the latter, can anyone advise? thanks. sorry for being so clueless

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How do I edit the reviews table in the database?

    If I recall correctly, the reviews data only stores the customer number, and that number is used to extract the customer's name, which is then displayed.
    Don't touch the database tables -- if you don't know what you're doing in phpMyAdmin, I recommend not touching it.

    To remove the last name from being displayed, you'll have to customize the code that displays the name in the reviews module and template. It's been discussed elsewhere on the forum a few times.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Aug 2009
    Posts
    23
    Plugin Contributions
    0

    Default Re: How do I edit the reviews table in the database?

    thanks. I've fixed the future reviewers though, following the threads I found on here.
    Anyone else know of any way of just changing these 3 existing reviews. It's not the end of the world but if there is a relatively easy way of doing it, that would be great.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How do I edit the reviews table in the database?

    Oops. I was wrong.

    You can go into phpMyAdmin and change the name manually:
    1. open phpMyAdmin
    2. select your Zen Cart database from the pulldown menu
    3. click on the "reviews" table in the left list
    4. Click on the "Browse" tab across the top
    Edit one record at a time, as follows:
    5. click on the pencil icon next that starts the row of each record you want to edit
    6. the next screen will show you all the meta data for that review in edit mode
    7. find the customers_name field, and make appropriate changes
    8. click the "go" or "save" button at the bottom of the screen to store your adjustments
    repeat as necessary
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Aug 2009
    Posts
    23
    Plugin Contributions
    0

    Default Re: How do I edit the reviews table in the database?

    Brilliant
    Thanks soooo much, works a treat.

 

 

Similar Threads

  1. v151 how can clean table from the database
    By dmagic in forum General Questions
    Replies: 1
    Last Post: 4 Feb 2014, 06:23 AM
  2. v139f Edit the look of the quantity discount table on product page?
    By amylynpace in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Nov 2012, 07:31 PM
  3. How to Edit the Download Table?
    By timndime in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Sep 2010, 09:57 PM
  4. How to edit the shipping rates table?
    By lisali in forum General Questions
    Replies: 0
    Last Post: 6 May 2008, 09:40 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