Zen Cart Logo
Forums / All Other Contributions/Addons / Easy Populate 1.2.5.7b.csv : how to update category name

Easy Populate 1.2.5.7b.csv : how to update category name

Locked

Views: 1,089

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
1 Apr 2010, 11:30 PM
#1
bgallot avatar

bgallot

New Zenner

Join Date:
Mar 2005
Location:
Uzerche, France
Posts:
9
Plugin Contributions:
0

Easy Populate 1.2.5.7b.csv : how to update category name

In the current version 1.2.5.7b, it is not possible to update the category name, specially with lowercase uppercase.
I propose a solution, around line 1710 in admin/easypopulate.php.
Just after $thiscategoryid = $row['catID'];
add these lines :
// BOF Update category name
$sql = "UPDATE ".TABLE_CATEGORIES_DESCRIPTION." SET
language_id = '$epdlanguage_id',
categories_name = '".zen_db_input($thiscategoryname)."'
WHERE ( categories_id = '". $thiscategoryid . "' )" ;
$result = ep_query($sql);
// EOF Update category name
It's OK for me !
Try and say...
Bertrand