[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 Continue reading [Prestashop] Set the deepest category assigned to the product as the default

[Prestashop] First product image as cover

If you want to mark first image of product as cover 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 queries from this file (change ‘ps_’ to your prefix):
    prestashop-first_image_as_cover.sql
  4.  Done! 🙂

[Prestashop] Send invoices only for non-free orders

If you want to send invoice file only when order in non-free – you need to do this:

  1. Create file /override/classes/order/Order.php with this contents:
  2.  Remove file /cache/class_index.php
  3.  Done!