• Closed by: Fred
  • Closed on: 10.12.20, 00:16
  • Reason: Closed
  • Comment: Glad to help!

Ticket #19859 - Postnord shipping module

Hello,

I have Postnord (https://vconnect.dk/postnord-modul) shipping module, but on Alysum template it completely broken. Any ideas how I can get it working?

Comments

Fred 17 Nov 2020, 15:45

Hi, Vidmantas Dapkus.
Could you please take a screenshot of the issue?

Vidmantas Dapkus 17 Nov 2020, 16:39

Attached

Attachments:

Screenshot 2020-11-17 at 17.3... (488.4 KiB)
Vidmantas Dapkus 17 Nov 2020, 16:41

But what I see, that even after I switch back to Prestashop theme the problem still persist. And this happened after I installed the theme.

Fred 18 Nov 2020, 13:31

Please try to reset your module

Vidmantas Dapkus 18 Nov 2020, 14:02

Reseted the module and .. disapeared all Postnord shipping methods and now even I uninstall and install again the module it not appearing (even if I do it on PS theme), what before worked as after module installation it was asking the Postnord API Key and then all the Postnord shipping methods where created automatically. Now, after you install module and you go to configuration it do not ask the key any more and it goes directly to option page and it has the Google Map Key already (I deleted the module directory and also cleared cache). I attach the module as this is crucial for our business to have Postnord carrier as wel as Bambora payment module working.

Attachments:

vcpostnord_v3.1.1_presta_1.6_... (742.4 KiB)
Fred 19 Nov 2020, 15:19

I don’t even see the module in the carriers list. That is definitely not related to the theme. Try to ask module support

Vidmantas Dapkus 19 Nov 2020, 17:02

And it never had been there. The shipping methods was installed without problem and where working on default prestashop theme but after I uploaded you theme it broke but still was there (only the design was broken and the maps not working) but aster suggested reset it all disappeared and now you it does not help even you uninstall and install again. I can set up the new prestashop environment and install this module. You will se that there is the shipping modes and then you can try to upload your theme and you will see what I speak about. As I said before I uploaded Asylum Postnord module worked perfectly.

Fred 20 Nov 2020, 12:14

“but after I uploaded you theme it broke” - the theme doesn’t manage other prestashop modules but only those modules what comes in the package
Yes, please install a new prestashop to let me see how it works

Vidmantas Dapkus 20 Nov 2020, 16:28

Setted up the demo shop on http://fashion.designart.lt/admin356fz5qqc/ (BO logging data is the same as LIVE site, and FTP IP is same too, user: fashion / pass: laikinas123 ).

I installed the Postnord module and it works as it was on Live site. I do not try to install your theme maybe you prefer to do it yourself so you will get better idea what happens.

Fred 21 Nov 2020, 11:00

Yes, I see. Thank you for installing clear prstashop for testing. We are currently working on a solution.

Fred 21 Nov 2020, 11:05

I have compared Carriers list in both stores and see the difference - https://take.ms/yVB36

Can I reinstall the module in your main store?

Vidmantas Dapkus 21 Nov 2020, 11:08

Yes, thanks.

Fred 21 Nov 2020, 11:25

I have reinstalled it but no carriers appeared in the list. Can you ask module support?

Vidmantas Dapkus 21 Nov 2020, 11:48

but did you try to upload your theme as before it I could install and uninstall modules and they worked without problems. I suggest you install your theme and then see what happens. If with your theme the native carrier and Postnord module will work, I will rebuild the main store.

Fred 21 Nov 2020, 11:50

Ok, I see. I’ll try.
But from my experience I can say that such back office issues are not related to the theme

Vidmantas Dapkus 21 Nov 2020, 11:58

On main shop I restored the native PS carrier and it showing up in BO and FO.

Vidmantas Dapkus 21 Nov 2020, 12:03

And not sure if the problem is caused by reseting the module. After I press reset button of Postnord module all the Postnord carriers disappeared and now when you reinstall the module it goes directly to modules configuration without asking the API KEY. But for now it would be good to check how affects the theme the Postnord module as after the application the module’s design brookes completely.

Vidmantas Dapkus 21 Nov 2020, 12:26

Another thing, when I put the shop (any) on Debug mode I get error

(1/1) ContextErrorException
Warning: Declaration of VcPostnord::l($string, $specific = false) should be compatible with ModuleCore::l($string, $specific = false, $locale = NULL)

in vcpostnord.php
at ErrorHandler→handleError(2, ‘Declaration of VcPostnord::l($string, $specific = false) should be compatible with ModuleCore::l($string, $specific = false, $locale = NULL)’, ‘/home/spfashion/public_html/modules/vcpostnord/vcpostnord.php’, 0, array(’module_name’ ⇒ ‘vcpostnord’))
in Module.php line 1128
at include_once()
in Module.php line 1128
at ModuleCore::coreLoadModule(’vcpostnord’)
in Module.php line 1120
at ModuleCore::getInstanceByName(’vcpostnord’)
in Hook.php line 884
at HookCore::exec(’actionCarrierProcess’, array(’cart’ ⇒ object(Cart), ‘cookie’ ⇒ object(Cookie), ‘altern’ ⇒ 1))
in CheckoutDeliveryStep.php line 163
at CheckoutDeliveryStepCore→handleRequest(array(’controller’ ⇒ ‘order’))
in CheckoutProcess.php line 59
at CheckoutProcessCore→handleRequest(array(’controller’ ⇒ ‘order’))
in OrderController.php line 264
at OrderControllerCore→initContent()
in Controller.php line 292
at ControllerCore→run()
in Dispatcher.php line 515
at DispatcherCore→dispatch()
in index.php line 28

Not sure if this could be the cause that with your template it brokes completely. I already send this error to developer.

Fred 22 Nov 2020, 11:23

1. I just installed the theme and there are no any problems https://take.ms/fjjAq

2. As for reported error it’s caused by the module (see the path /modules/vcpostnord/vcpostnord.php) I’m not able to help you with that

Vidmantas Dapkus 27 Nov 2020, 16:31

Not sure how you did it on http://fashion.designart.lt/admin356fz5qqc/ but on production site http://people-fashion.dk/ I cleared all file and database installed clean Prestashop, installed Postnord module and the uploaded your theme and after I enabled your theme I got 500 server error in BO. After reloaded the page the them was enabled but in FO the Postnord module has the same issue as it was when the first time I applied your theme on production site. Please see the file. So, I am confused as I did everything the same as I did on test server except installing your theme. Any idea what happened and how to solve it?

Attachments:

Screenshot 2020-11-27 at 17.3... (467.3 KiB)
Fred 28 Nov 2020, 13:17

The module was not hooked into the header hook https://take.ms/mGbQU now it’s ok