Welcome Guest, Not a member yet? Register   Sign In
subcategory solution
#11

[eluser]cahva[/eluser]
Quote:L.E: But if you have 1000 products and you change a category name , doesn’t this mean that you need to update all the url’s in database ?

Hmm.. I dont really see the problem here. Its just matter of replacing products seo according to the new category name. For example:

Code:
if ($old_path != $new_path)
{
   $this->db->query("UPDATE products_description SET full_path=REPLACE(full_path,'{$old_path}','{$new_path}') WHERE full_path LIKE '{$old_path}%'");
}

The old_path != new_path is just that I dont update if not necessary.

Speedwise that doesnt take long. Atleast with 1000 products in database and 10 products to be changed Smile


Messages In This Thread
subcategory solution - by El Forum - 04-17-2010, 05:12 AM
subcategory solution - by El Forum - 04-17-2010, 07:50 AM
subcategory solution - by El Forum - 04-17-2010, 11:48 AM
subcategory solution - by El Forum - 04-17-2010, 12:04 PM
subcategory solution - by El Forum - 04-17-2010, 12:53 PM
subcategory solution - by El Forum - 04-17-2010, 01:34 PM
subcategory solution - by El Forum - 04-17-2010, 01:39 PM
subcategory solution - by El Forum - 04-17-2010, 01:42 PM
subcategory solution - by El Forum - 04-17-2010, 01:53 PM
subcategory solution - by El Forum - 04-17-2010, 02:55 PM
subcategory solution - by El Forum - 04-17-2010, 05:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB