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: 367
  • 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 Anywhere

This will allow you to show a catalog of your products outside of your osc directory. It offers great ... upload to wherever you want to show your catalog. This catalog allows you to choose how many products per page to show to manage download time. ...

Add vendor information to products

... some adjustments to the source code.FeaturesThis is an admin-only utility.It creates a new "Vendors" entry in the Catalog box. You can add some basic information for the vendor, such as:-- Vendor's name-- Vendor's Phones-- ... could stick the contact name, address, etc)When you delete a vendor, you are given the option to ...

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

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. ...

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) ...