strife's devLog

Tag: snippet

prestashop-logo[Prestashop] Adding Product Thumbnail to the Order Email

Find and open PaymentModule (directory classes).
There will be line similar to this (line 381).

We are adding the new cell to this table by getting product image from the database. Below you will the code.

Share

prestashop-logoHow to Change the Original Price in Prestashop

That’s a really useful snipet for anybody who wants to change the original price to the new one.

Solution for this is very easy …

Ok .. here it is:

Product.php, line 1686

:)

Share

mysql-logoMySQL: How to Round Prices to Nine Ninety Nine at the end (9.99)

Hi there,

Here’s the example how to round values to 9.99 at the end. For example if we have a price 45023.12 and we wanna change it to 45029.99, we should simple use this code:

See ya!

Share