Author Archives: admin

Prestashop: Diagnoising 500 internal server error

Source: https://www.prestashop.com/forums/topic/190303-error-500-internal-server-error-on-all-pages-except-for-admin-front-page/?p=1533337 if you’ve got internal server error = turn on error reporting – then instead of this message you will see detailed information what and where doesnt work. open config/defines.inc.php find this line define(‘_PS_MODE_DEV_’, false); change to look like … Continue reading

Posted in ecommerce | Tagged | Comments Off on Prestashop: Diagnoising 500 internal server error

Remove unwanted spaces from text

Source: http://textmechanic.com/Remove-Extra-Spaces.html http://www.textfixer.com/html/compress-html-compression.php Very useful!

Posted in HTML | Tagged | Comments Off on Remove unwanted spaces from text

Database: MySQL Split value from one field to two

Source: http://stackoverflow.com/questions/2696884/split-value-from-one-field-to-two Unfortunately MySQL does not feature a split string function. However you can create a user defined function for this, such as the one described in the following article: MySQL Split String Function by Federico Cargnelutti With that function, … Continue reading

Posted in database | Tagged | Comments Off on Database: MySQL Split value from one field to two

Prestashop: Additional field in product attributes

Added an additional field for product attributes Files updated and added to override folder override/classes Attribute.php line 36    public $barcode; line 50            ‘barcode’ =>             array(‘type’ => self::TYPE_STRING, ‘validate’ => ‘isAnything’, ‘size’ => 3), … Continue reading

Posted in database, ecommerce | Tagged | Comments Off on Prestashop: Additional field in product attributes

HTML/CSS: Styling form buttons

source: http://jsfiddle.net/2RYyD/ Great example there but if you’re styling the button which is a form submit button, remember to change the button type to “submit” instead or the variables won’t get posted. <div class=”button”> <input type=”button” value=”TELL ME MORE” onClick=”document.location.reload(true)”> … Continue reading

Posted in CSS | Tagged , | Comments Off on HTML/CSS: Styling form buttons

Translation: music genre (english, chinese)

source: http://www.douban.com/note/494973282/ Abstract Hip Hop 抽象嘻哈 Acid Rock 酸性摇滚 Acoustic Blues 原声蓝调 Acoustic Rock 原声摇滚 Afrobeat 非洲节奏 Alternative Dance 另类舞曲 Alternative Metal 另类金属 Alternative Rock 另类摇滚 Ambient 氛围音乐 Ambient Pop 氛围流行 Ambient Techno 氛围科技舞曲 Americana 美式乡村 Anarcho-Punk 无政府朋克 Art Pop … Continue reading

Posted in Translation | Tagged , | Comments Off on Translation: music genre (english, chinese)

Prestashop 1.6: PDF invoice error in large orders

For some reason, when there are many products in an order, the PDF invoice generated by Prestashop backoffice and user front-end does not display all the products ordered. In this case, there were 49 products. Opening the generated PDF in … Continue reading

Posted in ecommerce | Tagged , , , | Comments Off on Prestashop 1.6: PDF invoice error in large orders

Canon pixma printer Error U052 fix (mg5270)

Tried the following fix and seems to have worked. I was able to make U052 go away by letting the printer find no print head on reboot. 1. Remove ink cartridges and print head 2. Power down printer for 3 … Continue reading

Posted in Printer | Tagged , , , | Comments Off on Canon pixma printer Error U052 fix (mg5270)

Create home screen Apple touch icons for iOS and Android

With the release of iOS 8, the recommended size is now 180×180 pixels. For Prestashop, add this line to header.tpl and save the file to image directory <link rel=”apple-touch-icon” href=”/img/apple-touch-icon.png?{$img_update_time}” /> Source: https://realfavicongenerator.net/blog/apple-touch-icon-the-good-the-bad-the-ugly/ http://www.ravelrumba.com/blog/android-apple-touch-icon/

Posted in web design | Comments Off on Create home screen Apple touch icons for iOS and Android

Prestashop 1.6: PDF invoice encoding issues for Chinese language

File to change is located at classes\pdf\PDFGenerator.php Generally: Change helvetica font. Delete useless languages, leave only ‘zh’ => ‘cid0cs’, Change encoding. Than on English language documents Chinese characters are displayed correctly (address, names, etc….) Probably it works for other languages … Continue reading

Posted in ecommerce | Tagged | Comments Off on Prestashop 1.6: PDF invoice encoding issues for Chinese language