Fix for admin catalog delete products issue

Fix for admin catalog - delete products issue

Fix for admin catalog - delete products issue Download Summary

  • Language: PHP
  • Platform: Windows / Linux / BSD
  • License: GPL - GNU Public License
  • Databases: MySQL
  • Downloads: 376
  • Released: Jun 15, 2007

Fix for admin catalog - delete products issue Description

All categories and products are deleted after deleting a category or product.

Cause: This problem was found when the browser's BACK button is used to return to the product list after deleting a product or category. After backing up pages, "categories_id" is set to 0 which is the catalog's root location.

Fix: I wrote a simple check to make sure you can never delete the entire catalog in one action. ($categories_id can never equal 0)


** FILE: catalog/admin/categories.php

** FIND code beginning with...

case 'delete_category_confirm':
if (isset($HTTP_POST_VARS['categories_id'])) {
$categories_id = tep_db_prepare_input($HTTP_POST_VARS['categories_id']);

** ADD immediately AFTER with this code...

// BEGIN Prevent categories_id = 0
if($categories_id == 0) {
tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $categories_id));
break;
}
// END Prevent categories_id = 0

** SAVE the file and you are finished!

Fix for admin catalog - delete products issue Keywords

Fix for admin catalog delete products issue Bookmark

Hyperlink code:
Hyperlink for Forum code:

Fix for admin catalog - delete products issue Script Download Notice

Top 4 Download periodically updates information of Fix for admin catalog - delete products issue script from the developer, but some information may be slightly out-of-date.

Our script download links are directly from our mirrors or publisher's website. Fix for admin catalog - delete products issue torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!

Catalog products PDF reports

 This script is designed to display your products with pictures, their full description and prices in a PDF format. Products are sorted by their categories. ...

Admin Manipulation

This contrib allows you to:delete all products or delete all orders or delete all customers and perform other db manipulation operations ALLfrom your stores admin area.these files are modified:-optimize_table.php-empty_db.phpnot to store your actual ... relate to the DB_DATABASE name stored in your admin/includes/configure.php

Infobox with many products

Everything can be configured using the admin interface. The infoboxes specials.php and whats_new.php are provided ready for use.It is very straightforward to add this feature ... Use the files provided as examples.There are instructions for the installation process.Require modifications on catalog/includes/boxes/specials.phpcatalog/includes/boxes/whats_new.phpcatalog/includes/functions/general.php (one function needs to be replaced) ...

Catalog Anywhere w categories

This is a little change to original contribution CATALOG ANYWHERE by Patrick Veverka.You can show products from certain category or subcategory in random order anywhere outside your osc directory. ...

Add a Printable Catalog

Displays products with pictures and their full description in a printable format. ...