Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2006
    Posts
    63
    Plugin Contributions
    0

    Default how do I go about fixing a typo in ALL my descriptions?

    I had an employee typo a word several times into the description field of every category. Is it possible to open the exported mySQL file find the typo change it in a text editor and import it back in? it would save a LOT of time.

  2. #2
    Join Date
    Sep 2009
    Posts
    49
    Plugin Contributions
    0

    Default Re: how do I go about fixing a typo in ALL my descriptions?

    Yes you can fix a typo with a small bit of SQL code!!

    I've run this in phpmyadmin, but I assume it'll work in the Install SQL Patches from admin also.

    BACK UP YOUR DATABASE BEFORE RUNNING THIS!

    Code:
    update products_description set products_description = replace(products_description,'[string_to_find]','[string_to_replace]');

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: how do I go about fixing a typo in ALL my descriptions?

    Bear in mind that the above relates to a field in the PRODUCTS table.

    You are referring to the categories description, so your SQL would need to reference the relevant table and field.
    20 years a Zencart User

  4. #4
    Join Date
    Mar 2006
    Posts
    63
    Plugin Contributions
    0

    Default Re: how do I go about fixing a typo in ALL my descriptions?

    Thanks for the help! I was thinking along a completely different line. i exported my database from phpmyadmin and unzipped the file , opened it up in a text editor and change it that way but was not sure if I could import the fixed file back into phpmyadmin.

    But your saying run a query in phpmyadmin.

 

 

Similar Threads

  1. How to use a append query to update all product descriptions?
    By welshop.com in forum General Questions
    Replies: 7
    Last Post: 24 Aug 2016, 12:33 PM
  2. v151 How can I remove all these tables from my product descriptions?
    By DannyVarley in forum General Questions
    Replies: 2
    Last Post: 12 Jul 2013, 02:38 PM
  3. Replies: 2
    Last Post: 18 Dec 2012, 04:14 PM
  4. Need help fixing my About Page
    By AirsoftOutfitter in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 28 Jan 2010, 08:44 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR