Jump to content
spc

Error during installation of Ecster !!! [URGENT]

Recommended Posts

Posted (edited)

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)

Share this post


Link to post
Share on other sites

It looks like you are using a 1.7 module on 1.6, I doubt it will work properly even if you fix that specific error

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More