Jump to content

[SOLVED] Issues with a module


Recommended Posts

I have an issue with a module on the RC1, where it had no problems in the latest 1.4 release.

 

It uses some methods, that seems not be working like before:

 

In the backoffice, global $link is not recognized as an object.

 

Also in the backoffice, Product::getPriceStatic((int)$product->id, true) seems not to be retrieving anything.

 

Any suggestions?

Link to comment
Share on other sites

the issue was resolved by initializing $link in the module php file.

$protocol_link = (Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://';
$protocol_content = (isset($useSSL) AND $useSSL AND Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://';
$link = new Link($protocol_link, $protocol_content);

Link to comment
Share on other sites

×
×
  • Create New...