Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / how do I go about fixing a typo in ALL my descriptions?

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

Locked
This thread is locked. New replies are disabled.
8 Apr 2010, 7:53 PM
#1
valnoren avatar

valnoren

New Zenner

Join Date:
Mar 2006
Posts:
63
Plugin Contributions:
0

Post #1 by valnoren

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.

9 Apr 2010, 1:20 AM
#2
hey_you avatar

hey_you

New Zenner

Join Date:
Sep 2009
Posts:
49
Plugin Contributions:
0

Post #2 by hey_you

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!

update products_description set products_description = replace(products_description,'[string_to_find]','[string_to_replace]');
9 Apr 2010, 8:04 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #3 by schoolboy

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

9 Apr 2010, 8:51 PM
#4
valnoren avatar

valnoren

New Zenner

Join Date:
Mar 2006
Posts:
63
Plugin Contributions:
0

Post #4 by valnoren

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.