Jump to content

Edit History

Marin Bajič

Marin Bajič

<?php
/**
 * 2007-2018 ETS-Soft
 *
 * NOTICE OF LICENSE
 *
 * This file is not open source! Each license that you purchased is only available for 1 wesite only.
 * If you want to use this file on more websites (or projects), you need to purchase additional licenses. 
 * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
 * 
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please contact us for extra customization service at an affordable price
 *
 *  @author ETS-Soft <[email protected]>
 *  @copyright  2007-2018 ETS-Soft
 *  @license    Valid for 1 website (or project) for each purchase of license
 *  International Registered Trademark & Property of ETS-Soft
 */
include(dirname(__FILE__).'/../../config/config.inc.php');
include(dirname(__FILE__).'/../../init.php');
@ini_set('display_errors', 'off');
ini_set('memory_limit','256M'); 
ini_set('max_execution_time','120');
    $ets_pres2presconnector = Module::getInstanceByName('ets_pres2presconnector');
if(!Configuration::get('ETS_PRES2PRES_CONNECTOR'))
    die('Direct migration is disabled');
if(Tools::isSubmit('presconnector') && Tools::isSubmit('ajaxPercentageExport')&& Tools::getValue('ajaxPercentageExport'))
{
    $ets_pres2presconnector->ajaxPercentageExport();
}
if(Tools::isSubmit('presconnector') && Tools::getValue('pres2prestocken')==Configuration::get('ETS_PRES2PRES_TOCKEN'))
    $ets_pres2presconnector->processExport();
die('Secure access token is missing or not valid');

 

Remove the old code and insert this in = /public_html/modules/ets_pres2presconnector/connector.php

I've tried to migrate files from Prestashop 1.4.6.2 to 1.7 ( latest ) and got x2 error on data download and "UNLIMITED" error for online migration.

But we ( me and my company ) solved the problem for us.

 

EDIT : This solution only works for online migration. Download data will still give the x2 error

Marin Bajič

Marin Bajič

<?php
/**
 * 2007-2018 ETS-Soft
 *
 * NOTICE OF LICENSE
 *
 * This file is not open source! Each license that you purchased is only available for 1 wesite only.
 * If you want to use this file on more websites (or projects), you need to purchase additional licenses. 
 * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
 * 
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please contact us for extra customization service at an affordable price
 *
 *  @author ETS-Soft <[email protected]>
 *  @copyright  2007-2018 ETS-Soft
 *  @license    Valid for 1 website (or project) for each purchase of license
 *  International Registered Trademark & Property of ETS-Soft
 */
include(dirname(__FILE__).'/../../config/config.inc.php');
include(dirname(__FILE__).'/../../init.php');
@ini_set('display_errors', 'off');
ini_set('memory_limit','256M'); 
ini_set('max_execution_time','120');
    $ets_pres2presconnector = Module::getInstanceByName('ets_pres2presconnector');
if(!Configuration::get('ETS_PRES2PRES_CONNECTOR'))
    die('Direct migration is disabled');
if(Tools::isSubmit('presconnector') && Tools::isSubmit('ajaxPercentageExport')&& Tools::getValue('ajaxPercentageExport'))
{
    $ets_pres2presconnector->ajaxPercentageExport();
}
if(Tools::isSubmit('presconnector') && Tools::getValue('pres2prestocken')==Configuration::get('ETS_PRES2PRES_TOCKEN'))
    $ets_pres2presconnector->processExport();
die('Secure access token is missing or not valid');

 

Remove the old code and insert this in = /public_html/modules/ets_pres2presconnector/connector.php

I've tried to migrate files from Prestashop 1.4 to 1.7 and got x2 error on data download and "UNLIMITED" error for online migration.

But we ( me and my company ) solved the problem for us.

×
×
  • Create New...