Admin - Delete Category

 

Outsource your projects to thousands of programmers at ScriptLance.com

When you decide that a category is no longer needed you can remove it from the database. To delete a category go to the category listing page and click on the 'delete' link on the category you wish to delete

Deleting a category will delete all product in that category and in all it's children. For example if you delete the "Manga" category than alll product in "Naruto" and "HunterxHunter" will also be deleted. The function used to delete category is called deleteCategory() and it's located in admin/category/processCategory.php

The deletion process is like this :

  1. Update the cat_id for all products in that category to zero
  2. Remove the category image ( if exist )
  3. Delete the category from database

Pretty easy huh? I don't think we need to dive into the source code here because it is quite simple. Just take a look at the code and you will understand

Okay, now the category stuff is done we start playing with the next sub modul, the product pages.

 

Find freelance programmers at ScriptLance.com - Search worldwide

Stop hair loss now | Sports games for free online |
 

 

Admin - Edit Category PHP MySQL Shopping Cart Tutorial : Admin - Delete Category Admin - Add Product
Google
 
Web www.phpwebcommerce.com
 

At long last i'm finally able to update this site. Now the shopping cart can handle payment through paypal. As always you have any critiques, questions, comments or problems about this tutorial please tell me. Click here to send your feedback. And if you like this tutorial please link to this site. It will really help a lot :-)

 

"I made an extra $378 last week promoting just 1 site. Click here to see which site is it. Join today!"



PHP MySQL Shopping Cart Tutorial
Copyright © 2005 - 2010 www.phpwebcommerce.com