[Prestashop] Set the deepest category assigned to the product as the default

To set the deepest category assigned to the product as the default you need to do:

  1.  Open your database (for example by phpMyAdmin)
  2.  I suggest you create backup of your database for safety (export data and structure)
  3. Open SQL tab and perform these queries (change ‘ps_’ to your prefix):
  4.  Done! 🙂

I ask you to review this article

Rating 3.8 Stars from 4 reviews

One thought on “[Prestashop] Set the deepest category assigned to the product as the default”

  1. hello Mateusz
    is just what I am looking for, as I can do to assign products with different categories to a single

    of products category a, b, c, d, e

    to category f

    thanks for sharing code

Leave a Reply

Your email address will not be published. Required fields are marked *

17 − 8 =