Delivery receipt in default email client Mail.app in MAC OS X

With Mail.app, OS X default email client, it’s not possible to set up the request for a Return Receipt.

Some people hate such notifications, while others prefer to be informed when the recipient reads the message.

In any case Mail.app doesn’t allow the request.
Return Receipt Request is issued by adding a custom email header, “Disposition-Notification-To”, valued with the email address for the notification.

To add this header to all outgoing messages and receive notification from the recipient enter this command in the terminal:

Continue reading Delivery receipt in default email client Mail.app in MAC OS X

[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!

Fast PrestaShop installation using shell command line

I wrote small script which in 7 steps provide fast PrestaShop installation using shell command line: script downloads latest PrestaShop, extracts files, creates database, sets correct permissions for PrestaShop files, installs PrestaShop and clean up installation.

You can find my script on: https://github.com/evox95/prestainstall

Just run it using root account or using sudo:

Zaznaczenie_004 Zaznaczenie_002

How to create bootable Linux USB flash drive

  1. Insert your flash drive
  2. Format it by GParted and check your flash drive path i.e. /dev/sdb
  3. Umount your flash drive
  4. Run terminal and push iso to your flash drive by command:
  5. Wait for finish
  6. Reboot

[Prestashop] Display newest products in ‘New products’ block

Module ‘blocknewproducts’ shows new products by the selected number of days from the addition.

With my modification, the module will display products sorted by date added, despite the time that has passed since the product was added to our store.

Continue reading [Prestashop] Display newest products in ‘New products’ block

[PrestaShop] Module for numeric order references

By default reference code contains only random uppercase letters – like this:
ABCDEFGHI, BCDEFGHIJ, CDEFGHIJK etc.

By my module your new order references will be numeric – like this:
000000001, 000000002, … 000000129 etc.

Just upload my module to your PrestaShop and install it – it’s all 🙂

See on github.com