Collections of tips to convert modules from PS 1.6 to PS 1.7

prokill

Well-known member
Diamond
Elite
Joined
Jul 27, 2020
Messages
273
Reaction score
261
Points
63
NullCash
480
Hi everybody,
I would like to know what are your tips to convert PS 1.6 to PS 1.7 and especially to latest 1.7.6.7.
In this forum, there are many modules which you could not use but if you make some little changes, they might work.
I found out that many PS 1.6 might generate error 500.
By debugging, here a list of what I found.

1°) setMedia (generates error 500)
Code:
setMedia() par setMedia(isNewTheme=false)
    public function setMedia($isNewTheme = false)
    {
        parent::setMedia($isNewTheme = false);
2°)

2°) Tab orders not showing in admin
Code:
  $adminOrders = version_compare(_PS_VERSION_, '1.7', '>=') ? 'AdminParentOrders'  : 'AdminOrders';
3°) Parameters matching for function with parent class
for example function l (parameters are not the same so make it the same parameters as parent class)


Share your findings here!
 

maxycrysis

Active member
Elite
XNullUser
Joined
Jun 21, 2020
Messages
839
Reaction score
109
Points
43
NullCash
240
Thanks for sharing!
 
Top