Blog

­

Prestashop module translation for module developers

Are you a PrestaShop 1.6 module developer and do you need to add translations for your module?

Then check out these pitfalls that are not mentioned in the PrestaShop documentation.

When on the “Localization -> Translations” page, choose “Type of translation” -> “Installed Modules Translations”.
Now you are allowed to change the second value which should be “Core (no […]

By |August 6th, 2015|Prestashop, PrestaShop Module Development|0 Comments

Prestashop resources

Prestashop constants:
Here’s a list of pretty much all the constants that Prestashop 1.6 defines on a default installation with the default theme and demo content installed.

You can call these from within a Smarty template by {$smarty.const._SOME_CONSTANT}

ALL_CARRIERS
CARRIERS_MODULE
CARRIERS_MODULE_NEED_RANGE
DS
HTMLPURIFIER_PREFIX
MIN_PASSWD_LENGTH
PS_BOTH_TAX
PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE
PS_CARRIERS_ONLY
PS_ORDER_PROCESS_OPC
PS_ORDER_PROCESS_STANDARD
PS_PRODUCT_TAX
PS_REGISTRATION_PROCESS_AIO
PS_REGISTRATION_PROCESS_STANDARD
PS_ROUND_DOWN
PS_ROUND_HALF
PS_ROUND_UP
PS_STATE_TAX
PS_TAX_EXC
PS_TAX_INC
PS_UNPACK_MODIFIED
PS_UNPACK_NATIVE
SMARTY_DIR
SMARTY_MBSTRING
SMARTY_PLUGINS_DIR
SMARTY_RESOURCE_CHAR_SET
SMARTY_RESOURCE_DATE_FORMAT
SMARTY_SPL_AUTOLOAD
SMARTY_SYSPLUGINS_DIR
_CAN_LOAD_FILES_
_COOKIE_IV_
_COOKIE_KEY_
_CUSTOMIZE_FILE_
_CUSTOMIZE_TEXTFIELD_
_DB_NAME_
_DB_PASSWD_
_DB_PREFIX_
_DB_SERVER_
_DB_USER_
_MAIL_DIR_
_MEDIA_SERVER_1_
_MEDIA_SERVER_2_
_MEDIA_SERVER_3_
_MODULE_DIR_
_MYSQL_ENGINE_
_PS_ADMIN_CONTROLLER_DIR_
_PS_ADMIN_IMG_
_PS_ADMIN_PROFILE_
_PS_ALL_THEMES_DIR_
_PS_BASE_URL_
_PS_BASE_URL_SSL_
_PS_CACHEFS_DIRECTORY_
_PS_CACHE_DIR_
_PS_CACHE_ENABLED_
_PS_CACHING_SYSTEM_
_PS_CAT_IMG_DIR_
_PS_CLASS_DIR_
_PS_COL_IMG_DIR_
_PS_CONFIG_DIR_
_PS_CONTROLLER_DIR_
_PS_CORE_DIR_
_PS_CORE_IMG_DIR_
_PS_CREATION_DATE_
_PS_CSS_DIR_
_PS_DEBUG_PROFILING_
_PS_DEBUG_SQL_
_PS_DEFAULT_CUSTOMER_GROUP_
_PS_DEFAULT_THEME_NAME_
_PS_DISPLAY_COMPATIBILITY_WARNING_
_PS_DOWNLOAD_DIR_
_PS_EMPLOYEE_IMG_DIR_
_PS_FRONT_CONTROLLER_DIR_
_PS_GENDERS_DIR_
_PS_GEOIP_DIR_
_PS_GEOLOCATION_NO_CATALOG_
_PS_GEOLOCATION_NO_ORDER_
_PS_IMG_
_PS_IMG_DIR_
_PS_JQUERY_VERSION_
_PS_JS_DIR_
_PS_LANG_IMG_DIR_
_PS_MAGIC_QUOTES_GPC_
_PS_MAIL_DIR_
_PS_MANU_IMG_DIR_
_PS_MIN_TIME_GENERATE_PASSWD_
_PS_MODE_DEMO_
_PS_MODE_DEV_
_PS_MODULE_DIR_
_PS_ORDER_STATE_IMG_DIR_
_PS_OS_BANKWIRE_
_PS_OS_CANCELED_
_PS_OS_CHEQUE_
_PS_OS_DELIVERED_
_PS_OS_ERROR_
_PS_OS_OUTOFSTOCK_
_PS_OS_PAYMENT_
_PS_OS_PAYPAL_
_PS_OS_PREPARATION_
_PS_OS_REFUND_
_PS_OS_SHIPPING_
_PS_OS_WS_PAYMENT_
_PS_OVERRIDE_DIR_
_PS_PDF_DIR_
_PS_PEAR_XML_PARSER_PATH_
_PS_PRICE_DISPLAY_PRECISION_
_PS_PROD_IMG_
_PS_PROD_IMG_DIR_
_PS_ROOT_DIR_
_PS_SCENE_IMG_DIR_
_PS_SCENE_THUMB_IMG_DIR_
_PS_SHIP_IMG_DIR_
_PS_SMARTY_CHECK_COMPILE_
_PS_SMARTY_CONSOLE_CLOSE_
_PS_SMARTY_CONSOLE_OPEN_
_PS_SMARTY_CONSOLE_OPEN_BY_URL_
_PS_SMARTY_DIR_
_PS_SMARTY_FORCE_COMPILE_
_PS_SMARTY_NO_COMPILE_
_PS_SSL_PORT_
_PS_STORE_IMG_DIR_
_PS_SUPP_IMG_DIR_
_PS_SWIFT_DIR_
_PS_TAASC_PATH_
_PS_TCPDF_PATH_
_PS_THEME_DIR_
_PS_THEME_MOBILE_DIR_
_PS_THEME_MOBILE_OVERRIDE_DIR_
_PS_THEME_OVERRIDE_DIR_
_PS_THEME_TOUCHPAD_DIR_
_PS_TMP_IMG_
_PS_TMP_IMG_DIR_
_PS_TOOL_DIR_
_PS_TRANSLATIONS_DIR_
_PS_TRANS_PATTERN_
_PS_UPLOAD_DIR_
_PS_USE_SQL_SLAVE_
_PS_VERSION_
_STOCK_MOVEMENT_MISSING_REASON_
_STOCK_MOVEMENT_ORDER_REASON_
_SUPP_DIR_
_THEMES_DIR_
_THEME_CAT_DIR_
_THEME_COL_DIR_
_THEME_CSS_DIR_
_THEME_DIR_
_THEME_GENDERS_DIR_
_THEME_IMG_DIR_
_THEME_JS_DIR_
_THEME_LANG_DIR_
_THEME_MANU_DIR_
_THEME_MOBILE_CSS_DIR_
_THEME_MOBILE_DIR_
_THEME_MOBILE_IMG_DIR_
_THEME_MOBILE_JS_DIR_
_THEME_NAME_
_THEME_PROD_DIR_
_THEME_PROD_PIC_DIR_
_THEME_SCENE_DIR_
_THEME_SCENE_THUMB_DIR_
_THEME_SHIP_DIR_
_THEME_STORE_DIR_
_THEME_SUP_DIR_
_THEME_TOUCHPAD_CSS_DIR_
_THEME_TOUCHPAD_DIR_
_THEME_TOUCHPAD_JS_DIR_
__PS_BASE_URI__

 

By |June 11th, 2015|Prestashop, PrestaShop Module Development|0 Comments

Phonegap 3 – Command Line Tips

After having worked with the Phonegap 2.x series before, I mistakenly perceived the 3.x series as an unwelcome change to the way of working I had grown used to.

Phonegap 3.x is centered around the command line much more than the 2.x versions were. That change plus the lacking documentation, plus the fact that I first […]

iScroll 4 documentation

iScroll, a lovely library that works pretty darn well but whose documentation leaves to be desired in my opinion.

The document below is an addition to the existing docs for all you googlers out there.
About iScroll 4
iScroll 4, a complete rewrite of the older iScroll library, is the overflow:scroll for mobile webkit.
The project was started by […]

Javascript Powered Webapps and Click Versus Tap

As most mobile web application developers already will know there is a very disturbing issue known as the onClick delay.
The problem in brief
Skip this section if you’re familiar with the problem.

Mobile browsers have a significant, 300ms delay before triggering a click event. So after you “clicked” a link or element that has a click handler […]

By |January 26th, 2013|Mobile Web Application Development|0 Comments

iOS Ad Hoc distribution errors

Error:
Unable to Download Application

“myapp” could not be installed at this time.

Done – Retry
Possible solutions:
1) You didn’t use an Ad Hoc certificate to sign the application when creating the Archive

2) The device that throws the error is not listed as an installation target. Go to the provisioning portal and make sure the device is both listed […]

By |January 11th, 2013|iOS Development|0 Comments

Phonegap developers tricks, tips and howto’s

Here’s a summary of some of my own insights and experiences as a Mobile Webapp developer.

Comments, corrections or additional solutions are more than welcome!
CLICK VERSUS TAP
On mobile devices, click events are way slower to trigger but using tap events may cause undesired effects.

There is some tricks for that which I have described in my blog […]

By |January 9th, 2013|Mobile Web Application Development|0 Comments