twitter.png
facebook.png
youtube.png
linkedin.png

Concrete5 Bulk Deleting Products from Ecommmerce

Mar 11, 2011

The following is a handy little script to use if you need to delete a bunch of Concrete5 product pages and products from your ecommerce website. It is particularly handy if you had a bad data import or need to redo your ecommerce products.

The first thing that you need to do is create a tools page:
[site_root]/tools/product_bulk_delete.php

with this content:

The populate the $product_ids = array() with ids or an id range from the CoreCommerceProducts table for the products you'd like to delete and then this will remove all the products and their pages. Please be careful with this script because once you delete everything you can't get it back. After completing the buld delete your should remove or comment out the file from your server.



Tags:

Category: Awesome