Best Practice Upon Upgrading Payment Module

Hi I will need to upgrade a payment module / addon but what would be the best practice to upgrade ?

  • should always uninstall the addon before installing a new version or completely delete the old files or have it overwritten by installing the new module ?
  • or just upload an install the new addon and have the files be overwritten ??
  • use ftp to overwrite the files ?

We are talking about a V4.3.8 store by the way.

Hi I will need to upgrade a payment module / addon but what would be the best practice to upgrade ?

  • should always uninstall the addon before installing a new version or completely delete the old files or have it overwritten by installing the new module ?
  • or just upload an install the new addon and have the files be overwritten ??
  • use ftp to overwrite the files ?

We are talking about a V4.3.8 store by the way.

I will recommend you to rename the old files, so if something goes wrong you can change everything back. Then install the new add-on.

Hi I will need to upgrade a payment module / addon but what would be the best practice to upgrade ?

  • should always uninstall the addon before installing a new version or completely delete the old files or have it overwritten by installing the new module ?
  • or just upload an install the new addon and have the files be overwritten ??
  • use ftp to overwrite the files ?

We are talking about a V4.3.8 store by the way.

We recommend you to make backup of the current module and rename/ delete it before installation. For example, if one file was excluded from the package of the new version, it will not be deleted after installation. So it can cause problems

Oleg@Simtech Dev , Yuri@eCom labs

I get it the backup thing but how do you suppose I do this backup ? just rename the relevant directories and or rename the files affected ?

The files and filestructure of the payment module is as follows:

app/addons/paynl_addon/paynl/classes/Pay/Api/Exception.php
app/addons/paynl_addon/paynl/classes/Pay/Api/Getservice.php
app/addons/paynl_addon/paynl/classes/Pay/Api/Info.php
app/addons/paynl_addon/paynl/classes/Pay/Api/Start.php

app/addons/paynl_addon/paynl/classes/Pay/Api.php
app/addons/paynl_addon/paynl/classes/Pay/Config.php
app/addons/paynl_addon/paynl/classes/Pay/Exception.php
app/addons/paynl_addon/paynl/classes/Pay/Helper.php

app/addons/paynl_addon/paynl/classes/Autoload.php

app/addons/paynl_addon/paynl/addon.xml
app/addons/paynl_addon/paynl/func.php
app/addons/paynl_addon/paynl/init.php

app/functions/smarty_plugins/block.paynl_banks.php
app/lib/other/smarty/plugins/block.paynl_banks.php
app/payments/paynl.php

design/backend/templates/views/orders/components/payments/paynl.tpl
design/backend/tempaltes/views/payments/components/cc_processors/paynlview.tpl

design/themes/responsive/templates/views/orders/components/payments/paynl.tpl

You can just rename the following directory

app/addons/paynl_addon

and the following files

app/functions/smarty_plugins/block.paynl_banks.php

app/lib/other/smarty/plugins/block.paynl_banks.php
app/payments/paynl.php

design/backend/templates/views/orders/components/payments/paynl.tpl
design/backend/tempaltes/views/payments/components/cc_processors/paynlview.tpl

design/themes/responsive/templates/views/orders/components/payments/paynl.tpl

For example, you can add .back prefix to them.

app/addons/paynl_addon.back

design/themes/responsive/templates/views/orders/components/payments/paynl.back.tpl

You can just rename the following directory

app/addons/paynl_addon

and the following files

app/functions/smarty_plugins/block.paynl_banks.php

app/lib/other/smarty/plugins/block.paynl_banks.php
app/payments/paynl.php

design/backend/templates/views/orders/components/payments/paynl.tpl
design/backend/tempaltes/views/payments/components/cc_processors/paynlview.tpl

design/themes/responsive/templates/views/orders/components/payments/paynl.tpl

For example, you can add .back prefix to them.

app/addons/paynl_addon.back

design/themes/responsive/templates/views/orders/components/payments/paynl.back.tpl

@eCom Labs

Why not just rename the folders Yuri ?

@eCom Labs

Why not just rename the folders Yuri ?

Because other folders contain default CS-Cart files, which will not be restored after addon installation

Because other folders contain default CS-Cart files, which will not be restored after addon installation

Thanks for clearing this up for me.

At any rate I upgraded the payment module but now...LOL each customer gets his or her order confirmation sent in twofold. Not at al sure why..

I followed your instructions to tetter by the way.