1042 posts
  • Has been a beta tester for an Envato feature
  • Has sold $10,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Contributed a free file of the month
+6 more
greenline says

Hi guys,

I am searching for a quick advice if possible….

I accidentally deleted a product from a magento e-store, how can I quickly restore it without restoring the entire database backup? There are 2100 products, I only need the product with id=1 restored…

Any idea of how I can do that? Any Magento extension or something?

25 posts
  • Has been part of the Envato Community for over 4 years
  • Has been a beta tester for an Envato feature
  • Sells items exclusively on Envato Market
  • Located in Pakistan
Ornlu says

There is TrashCan.. but it wont work if you deleted the product already :(

Would have suggested something like mysqldump --databases X --tables Y --where="product_id = 1" but since Magento has a complex database architecture, product info is spread across many tables. So its only going to introduce more problems.

634 posts Magento Elite & Gravity Maker
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+3 more
GravityDept says

If it’s just one product, then save yourself a million headaches and just create it again from scratch. It’ll only take 2 minutes. Fussing with DB diffs is going to wreck your week.

by
by
by
by
by
by