Jump to content

Edit History

spc

spc

Hello, im just download ecster from Prestaworks, and when i install it i get error.
I use PS 1.6

The error i see when i go to modules is:

[PrestaShop] Fatal error in module file :/classes/module/Module.php(1361) : eval()'d code:
syntax error, unexpected 'use' (T_USE)



Please i really need help.

I fix that problem, but something is strange, when i install the module i get Cannot install this module.

I have tryed manay thing but doesent manage to install it.

my install in ecsterpay.php

if (!parent::install()
            || !$this->registerHook('header')
            || !$this->registerHook('backOfficeHeader')
            || !$this->registerHook('displayAdminOrder')
            || !$this->registerHook('actionOrderStatusPostUpdate')
            || !$this->registerHook('paymentOptions')
            || !$this->registerHook('paymentReturn')
 
            || !Configuration::updateValue('ECSTERPAY_ACTIVE', 0)
            || !Configuration::updateValue('ECSTERPAY_LIVE_MODE', 1)
            || !Configuration::updateValue('ECSTERPAY_B2B_MODE', 0)
            || !Configuration::updateValue('ECSTERPAY_ACCEPTED_STATUS', Configuration::get('PS_OS_PAYMENT'))
            || !Configuration::updateValue('ECSTERPAY_INVOICE_FEE', '')
            || !Configuration::updateValue('ECSTERPAY_FEE_REFERENCE', '')
            || !Configuration::updateValue('ECSTER_TERMS_CMS', '')
            || !Configuration::updateValue('ECSTER_SHOW_CART_IN_IFRAME', 0)
            || !Configuration::updateValue('ECSTER_SHOW_ORDER_MESSAGE', 0)
            || !Configuration::updateValue('ECSTERPAY_MERCHANT_ID', '')
            || !Configuration::updateValue('ECSTERPAY_API_KEY', '')
        )
            return false;
        include(dirname(__FILE__).'/sql/install.php');
        return true;
    }

This is a error i get.

Duplicate entry '249-1-1' for key 'PRIMARY'

INSERT INTO `ps_module_currency` (`id_module`, `id_shop`, `id_currency`) SELECT 249, "1", `id_currency` FROM `ps_currency` WHERE deleted = 0

 

spc

spc

Hello, im just download ecster from Prestaworks, and when i install it i get error.
I use PS 1.6

The error i see when i go to modules is:

[PrestaShop] Fatal error in module file :/classes/module/Module.php(1361) : eval()'d code:
syntax error, unexpected 'use' (T_USE)



Please i really need help.

I fix that problem, but something is strange, when i install the module i get Cannot install this module.

I have tryed manay thing but doesent manage to install it.

my install in ecsterpay.php

if (!parent::install()
            || !$this->registerHook('header')
            || !$this->registerHook('backOfficeHeader')
            || !$this->registerHook('displayAdminOrder')
            || !$this->registerHook('actionOrderStatusPostUpdate')
            || !$this->registerHook('paymentOptions')
            || !$this->registerHook('paymentReturn')
 
            || !Configuration::updateValue('ECSTERPAY_ACTIVE', 0)
            || !Configuration::updateValue('ECSTERPAY_LIVE_MODE', 1)
            || !Configuration::updateValue('ECSTERPAY_B2B_MODE', 0)
            || !Configuration::updateValue('ECSTERPAY_ACCEPTED_STATUS', Configuration::get('PS_OS_PAYMENT'))
            || !Configuration::updateValue('ECSTERPAY_INVOICE_FEE', '')
            || !Configuration::updateValue('ECSTERPAY_FEE_REFERENCE', '')
            || !Configuration::updateValue('ECSTER_TERMS_CMS', '')
            || !Configuration::updateValue('ECSTER_SHOW_CART_IN_IFRAME', 0)
            || !Configuration::updateValue('ECSTER_SHOW_ORDER_MESSAGE', 0)
            || !Configuration::updateValue('ECSTERPAY_MERCHANT_ID', '')
            || !Configuration::updateValue('ECSTERPAY_API_KEY', '')
        )
            return false;
        include(dirname(__FILE__).'/sql/install.php');
        return true;
    }

This is a error i get.
Duplicate entry '249-1-1' for key 'PRIMARY'

INSERT INTO `ps_module_currency` (`id_module`, `id_shop`, `id_currency`) SELECT 249, "1", `id_currency` FROM `ps_currency` WHERE deleted = 0

spc

spc

Hello, im just download ecster from Prestaworks, and when i install it i get error.
I use PS 1.6

The error i see when i go to modules is:

[PrestaShop] Fatal error in module file :/classes/module/Module.php(1361) : eval()'d code:
syntax error, unexpected 'use' (T_USE)



Please i really need help.

I fix that problem, but something is strange, when i install the module i get Cannot install this module.

I have tryed manay thing but doesent manage to install it.

my install in ecsterpay.php

if (!parent::install()
            || !$this->registerHook('header')
            || !$this->registerHook('backOfficeHeader')
            || !$this->registerHook('displayAdminOrder')
            || !$this->registerHook('actionOrderStatusPostUpdate')
            || !$this->registerHook('paymentOptions')
            || !$this->registerHook('paymentReturn')
 
            || !Configuration::updateValue('ECSTERPAY_ACTIVE', 0)
            || !Configuration::updateValue('ECSTERPAY_LIVE_MODE', 1)
            || !Configuration::updateValue('ECSTERPAY_B2B_MODE', 0)
            || !Configuration::updateValue('ECSTERPAY_ACCEPTED_STATUS', Configuration::get('PS_OS_PAYMENT'))
            || !Configuration::updateValue('ECSTERPAY_INVOICE_FEE', '')
            || !Configuration::updateValue('ECSTERPAY_FEE_REFERENCE', '')
            || !Configuration::updateValue('ECSTER_TERMS_CMS', '')
            || !Configuration::updateValue('ECSTER_SHOW_CART_IN_IFRAME', 0)
            || !Configuration::updateValue('ECSTER_SHOW_ORDER_MESSAGE', 0)
            || !Configuration::updateValue('ECSTERPAY_MERCHANT_ID', '')
            || !Configuration::updateValue('ECSTERPAY_API_KEY', '')
        )
            return false;
        include(dirname(__FILE__).'/sql/install.php');
        return true;
    }

 

spc

spc

Hello, im just download ecster from Prestaworks, and when i install it i get error.
I use PS 1.6

The error i see when i go to modules is:

[PrestaShop] Fatal error in module file :/classes/module/Module.php(1361) : eval()'d code:
syntax error, unexpected 'use' (T_USE)



Please i really need help.

×
×
  • Create New...