Jump to content

Error during installation of Ecster !!! [URGENT]


Recommended Posts

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

 

Edited by spc (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...