first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

109
modules/ekomiSff/README.md Normal file
View File

@@ -0,0 +1,109 @@
# eKomi IFF Installation Plugin for Prestashop
Ekomi is the leading third-party review service, specializing in the collection, management, and publishing of seller and product ratings for businesses. Thanks to our constant innovation and market-leading technology, we offer the most flexible review generation methods, allowing you to reach all your clients, both online and offline to request their feedback. The more ratings you get for your business, the more traffic you drive to your site, the more trust you create among current and potential clients, and the more you will boost your sales and ROI.
With our eKomi IFF Installation Plugin for Prestashop, you can now easily integrate our eKomi IFF pop-up form in your shop system and website. Automatically trigger the IFF for reviews on the order confirmation, success or thank you page.
If you have any questions regarding the plugin, please get in touch! Email us at support@ekomi.de, call us on +1 844-356-6487, or fill out our contact form.
<p>
<strong>Key features of the plugin:</strong>
</p>
<ul>
<li>Ability to set pop-up width and height.</li>
<li>Displays IFF pop-up form on the order success page.</li>
</ul>
## System Requirements
- PHP version 5.0 or greater
- MySQL version 5.6 or greater
- Prestashop Version 1.5.x.x (min)
## Documentation
- [Documentation / User Guide](https://ekomi01.atlassian.net/wiki/spaces/KB/pages/1888616514/eKomi+IFF+Installation+Prestashop+Plugin")
## Installation
__Module Installation (administration panel)__
**1-** Login to administration panel
**2-** Go to administration panel → Modules.
**3-** Connect to PrestaShop Addons
**4-** In the modules tab, click on add a new module
- Specify its URL in the Module URL field and then click on Download this module
- If the file is on your computer, click on Browse to open the dialogue box letting you search your computer, select the file then validate the dialogue box.
- Finally click on Upload this module.
**5-** Locate the new module in the list, filter by author eKomi or scroll down if necessary.
**6-** Click on the install button to install the module.
**7-** Click on the configure button to configure the module.
**8-** Provide required information to enable the module
__Module Installation (via ftp)__
**1-** Unzip (decompress) the module archive file
**2-** Place the modules folder in your PrestaShop root folder Using FTP/SFTP
**3-** Login to the administration panel of your shop
**4-** Follow step # **2, 5, 6, 7** and **8** from above section respectively.
## Deployment
Steps to deploy this on a live system.
* Create zip of directory `ekomisff` in `modules` folder.
* Upload the plugin from Prestashop admin (Modules -> "Upload a Module").
* Go to "Installed modules", find "eKomi Iff Pop-up" and configure the plugin.
* Fill the required fields, enable the plugin and click "save".
### Built With
* Smarty templating engine.
* Prestashop Native APIs.
### Files To Update When Changing Plugin Version
- README.md
- ekomisff.php
- config.xml
### Troubleshooting
Our eKomi headquarters in Berlin is the best place to start if you need help with this plugin. There our technical support team will get you up and running in time. You can book assistance at: http://ssi.ekomi.com/booking.
Plugin information
- Maintenance status: Minimally maintained
- Development status: Stable
- Downloads: 0
- Last modified: Dec 14, 2021
## Versioning
### v1.0.0 (07-05-2020)
- A complete working plugin.
### v2.0.0 (14-12-2021)
- A complete working plugin.
### Known Issues/bugs in current version
- None
## License
Proprietary.

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<module>
<name>ekomiSff</name>
<displayName><![CDATA[eKomi Iff Pop-up]]></displayName>
<version><![CDATA[1.0.1]]></version>
<description><![CDATA[This Module shows eKomi IFF pop-up form on order confirmation page.]]></description>
<author><![CDATA[ekomi]]></author>
<tab><![CDATA[checkout]]></tab>
<is_configurable>1</is_configurable>
<need_instance>0</need_instance>
<limited_countries></limited_countries>
</module>

View File

@@ -0,0 +1,402 @@
<?php
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
if (!defined('_PS_VERSION_')) {
exit;
}
class EkomiSff extends Module
{
protected $config_form = false;
public function __construct()
{
$this->name = 'ekomiSff';
$this->tab = 'checkout';
$this->version = '1.0.1';
$this->author = 'ekomi';
$this->need_instance = 0;
/**
* Set $this->bootstrap to true if your module is compliant with bootstrap (PrestaShop 1.6)
*/
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('eKomi Iff Pop-up');
$this->description = $this->l('This Module shows eKomi IFF pop-up form on order confirmation page.');
}
/**
* Don't forget to create update methods if needed:
* http://doc.prestashop.com/display/PS16/Enabling+the+Auto-Update
*/
public function install()
{
Configuration::updateValue('EKOMISFF_ENABLE', '0');
Configuration::updateValue('EKOMISFF_SHOP_ID', '');
Configuration::updateValue('EKOMISFF_FORM_ID', '');
Configuration::updateValue('EKOMISFF_TRANSACTION_ID_PREFIX', '');
Configuration::updateValue('EKOMISFF_ENABLE_PRODUCT_REVIEWS', '0');
Configuration::updateValue('EKOMISFF_WIDGET_WIDTH', '');
Configuration::updateValue('EKOMISFF_WIDGET_HEIGHT', '');
Configuration::updateValue('EKOMISFF_URL_PLACEHOLDER', 'orderSuccess,order-success,order-confirmation,module=paynow,paynow');
return parent::install() &&
$this->registerHook('displayOrderConfirmation') &&
$this->registerHook( 'header');
}
public function uninstall()
{
Configuration::deleteByName('EKOMISFF_ENABLE');
Configuration::deleteByName('EKOMISFF_SHOP_ID');
Configuration::deleteByName('EKOMISFF_FORM_ID');
Configuration::deleteByName('EKOMISFF_TRANSACTION_ID_PREFIX');
Configuration::deleteByName('EKOMISFF_ENABLE_PRODUCT_REVIEWS');
Configuration::deleteByName('EKOMISFF_WIDGET_WIDTH');
Configuration::deleteByName('EKOMISFF_WIDGET_HEIGHT');
Configuration::deleteByName('EKOMISFF_URL_PLACEHOLDER');
return parent::uninstall();
}
/**
* Load the configuration form
*/
public function getContent()
{
$output = '';
if (((bool)Tools::isSubmit('submitEkomiSffModule')) == true) {
$shopId = str_replace(' ', '', Tools::getValue('EKOMISFF_SHOP_ID'));
$formId = str_replace(' ', '', Tools::getValue('EKOMISFF_FORM_ID'));
$urlPlaceholder = str_replace(' ', '', Tools::getValue('EKOMISFF_URL_PLACEHOLDER'));
if (!empty($shopId) && !empty($formId)) {
if(!empty($urlPlaceholder)) {
$this->updateValues();
$output = $this->displayConfirmation(
$this->l('Settings Saved successfully')
);
}else{
$output = $this->displayError($this->l('URL Placeholder should not be empty.'));
}
} else {
Configuration::updateValue('EKOMISFF_ENABLE', '0');
$output = $this->displayError($this->l('eKomi Shop Id or Form Id is empty.'));
}
}
$this->context->smarty->assign('module_dir', $this->_path);
// $output = $this->context->smarty->fetch($this->local_path.'views/templates/admin/configure.tpl');
return $output . $this->renderForm();
}
/**
* Create the form that will be displayed in the configuration of your module.
*/
protected function renderForm()
{
$helper = new HelperForm();
$helper->show_toolbar = false;
$helper->table = $this->table;
$helper->module = $this;
$helper->default_form_language = $this->context->language->id;
$helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG', 0);
$helper->identifier = $this->identifier;
$helper->submit_action = 'submitEkomiSffModule';
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false)
.'&configure='.$this->name.'&tab_module='.$this->tab.'&module_name='.$this->name;
$helper->token = Tools::getAdminTokenLite('AdminModules');
$helper->tpl_vars = array(
'fields_value' => $this->getConfigFormValues(), /* Add values for your inputs */
'languages' => $this->context->controller->getLanguages(),
'id_language' => $this->context->language->id,
);
return $helper->generateForm(array($this->getConfigForm()));
}
/**
* Gets boolean options.
*
* @return array
*/
public function getBoolOptions()
{
$options = array(
array(
'id_enable' => 0,
'name' => 'No'
),
array(
'id_enable' => 1,
'name' => 'Yes'
),
);
return $options;
}
/**
* Create the structure of your form.
*/
protected function getConfigForm()
{
$options = $this->getBoolOptions();
return array(
'form' => array(
'legend' => array(
'title' => $this->l('Settings'),
'icon' => 'icon-cogs',
),
'input' => array(
array(
'type' => 'select',
'label' => $this->l('Plug-in Enabled'),
'name' => 'EKOMISFF_ENABLE',
'options' => array(
'query' => $options,
'id' => 'id_enable',
'name' => 'name'
),
'required' => true,
),
array(
'type' => 'text',
'label' => $this->l('eKomi Shop ID'),
'name' => 'EKOMISFF_SHOP_ID',
'size' => 20,
'required' => true,
),
array(
'type' => 'text',
'label' => $this->l('eKomi Form ID'),
'name' => 'EKOMISFF_FORM_ID',
'size' => 20,
'required' => true,
'desc' => '',
),
array(
'type' => 'text',
'label' => $this->l('Transaction ID Prefix'),
'name' => 'EKOMISFF_TRANSACTION_ID_PREFIX',
'size' => 20,
'desc' => 'Any prefix before Order Id i.e <strong>IR_</strong> Otherwise leave this empty',
),
array(
'type' => 'select',
'label' => $this->l('Enable Product Reviews'),
'name' => 'EKOMISFF_ENABLE_PRODUCT_REVIEWS',
'options' => array(
'query' => $options,
'id' => 'id_enable',
'name' => 'name'
),
'required' => true,
),
array(
'type' => 'text',
'label' => $this->l('eKomi Widget Width'),
'name' => 'EKOMISFF_WIDGET_WIDTH',
'size' => 20,
'required' => true,
),
array(
'type' => 'text',
'label' => $this->l('eKomi Widget Height'),
'name' => 'EKOMISFF_WIDGET_HEIGHT',
'size' => 20,
'required' => true,
),
array(
'type' => 'textarea',
'label' => $this->l('eKomi Url Placeholder'),
'name' => 'EKOMISFF_URL_PLACEHOLDER',
'cols' => 30,
'rows' => 5,
'required' => true,
)
),
'submit' => array(
'title' => $this->l('Save'),
),
),
);
}
/**
* Set values for the inputs.
*/
protected function getConfigFormValues()
{
$shopId = str_replace(' ', '', Configuration::get('EKOMISFF_SHOP_ID'));
$formId = str_replace(' ', '', Configuration::get('EKOMISFF_FORM_ID'));
$formwidth = str_replace(' ', '', Configuration::get('EKOMISFF_WIDGET_WIDTH'));
$formheight = str_replace(' ', '', Configuration::get('EKOMISFF_WIDGET_HEIGHT'));
$urlPlaceholder = str_replace(' ', '', Configuration::get('EKOMISFF_URL_PLACEHOLDER'));
return array(
'EKOMISFF_ENABLE' => Configuration::get('EKOMISFF_ENABLE'),
'EKOMISFF_SHOP_ID' => $shopId,
'EKOMISFF_FORM_ID' => $formId,
'EKOMISFF_TRANSACTION_ID_PREFIX' => Configuration::get('EKOMISFF_TRANSACTION_ID_PREFIX'),
'EKOMISFF_ENABLE_PRODUCT_REVIEWS' => Configuration::get('EKOMISFF_ENABLE_PRODUCT_REVIEWS'),
'EKOMISFF_WIDGET_WIDTH' => $formwidth,
'EKOMISFF_WIDGET_HEIGHT' => $formheight,
'EKOMISFF_URL_PLACEHOLDER' => $urlPlaceholder,
);
}
/**
* Checks if Plugin is enabled.
*
* @return string
*/
public static function isActivated()
{
return Configuration::get('EKOMISFF_ENABLE');
}
/**
* Checks if Plugin is enabled.
*
* @return string
*/
public static function isRroductReviewsEnabled()
{
return Configuration::get('EKOMISFF_ENABLE_PRODUCT_REVIEWS');
}
/**
* Save form data.
*/
protected function updateValues()
{
$form_values = $this->getConfigFormValues();
foreach (array_keys($form_values) as $key) {
Configuration::updateValue($key, Tools::getValue($key));
}
}
/**
* hookHeader hookHeader implementation
* @param mixed $params
* @return mixed
*/
public function hookHeader($params)
{
$uri= $_SERVER['REQUEST_URI'];
// Whenever add to cart, id get saved into cookies
if(isset($params['cart']) && isset($params['cart']->id) && !empty($params['cart']->id))
$this->context->cookie->__set('cart-id', $params['cart']->id);
$cartId = (intval(Tools::getValue('id_cart')) ? intval(Tools::getValue('id_cart', 0)) : $this->context->cookie->__get('cart-id'));
$id_order = Order::getOrderByCartId($cartId);
if(isset($id_order) && !empty($id_order)){
return $this->renderIffPopup($id_order);
}else{
$placeholders = explode(',', Configuration::get('EKOMISFF_URL_PLACEHOLDER'));
$found = 0;
foreach ($placeholders as $keyword) {
$pattern = "/\b{$keyword}\b/";
if (preg_match($pattern, $uri) == true) {
$found = 1;
break;
}
}
if($found && $this->isActivated()) {
$formWidth = Configuration::get('EKOMISFF_WIDGET_WIDTH');
$formHeight = Configuration::get('EKOMISFF_WIDGET_HEIGHT');
$orderIdPrefix = Configuration::get('EKOMISFF_TRANSACTION_ID_PREFIX');
$params = array(
'ekomiShopId' => Configuration::get('EKOMISFF_SHOP_ID'),
'ekomiFormId' => Configuration::get('EKOMISFF_FORM_ID'),
'orderIdPrefix' => (!empty($orderIdPrefix)) ? $orderIdPrefix : '',
'ekomiWidgetWidth' => (!empty($formWidth)) ? $formWidth:'1020px',
'ekomiWidgetHeight' => (!empty($formHeight)) ? $formHeight:'1290px',
);
if(!empty($cartId)) {
$params['orderId'] = $cartId;
$params['productIds'] = '';
$this->smarty->assign($params);
$this->context->cookie->__set('cart-id', null);
return $this->display(__FILE__, 'order_confirmation.tpl');
}
}
}
return '';
}
/**
* Display Iff popup if we have proper order id
*/
public function renderIffPopup($id_order){
if($this->isActivated()) {
$formWidth = Configuration::get('EKOMISFF_WIDGET_WIDTH');
$formHeight = Configuration::get('EKOMISFF_WIDGET_HEIGHT');
$orderIdPrefix = Configuration::get('EKOMISFF_TRANSACTION_ID_PREFIX');
$params = array(
'ekomiShopId' => Configuration::get('EKOMISFF_SHOP_ID'),
'ekomiFormId' => Configuration::get('EKOMISFF_FORM_ID'),
'orderIdPrefix' => (!empty($orderIdPrefix)) ? $orderIdPrefix : '',
'ekomiWidgetWidth' => (!empty($formWidth)) ? $formWidth:'1020px',
'ekomiWidgetHeight' => (!empty($formHeight)) ? $formHeight:'1290px',
);
$order = new Order($id_order);
if (Validate::isLoadedObject($order)) {
$this->context->cookie->__set('cart-id', null);
$params['orderId'] = $id_order;
$params['productIds'] = '';
if ($this->isRroductReviewsEnabled()) {
$ProductDetailObject = new OrderDetail;
$products = $ProductDetailObject->getList($id_order);
$productIds = array();
foreach ($products as $product) {
$productIds[] = $product['product_id'];
}
$params['productIds'] = implode(',', $productIds);
}
$this->smarty->assign($params);
}
return $this->display(__FILE__, 'order_confirmation.tpl');
}
}
}

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

BIN
modules/ekomiSff/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
modules/ekomiSff/logo.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 924 B

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,38 @@
<?php
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
$sql = array();
$sql[] = 'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'ekomiSff` (
`id_ekomiSff` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id_ekomiSff`)
) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8;';
foreach ($sql as $query) {
if (Db::getInstance()->execute($query) == false) {
return false;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
/**
* In some cases you should not drop the tables.
* Maybe the merchant will just try to reset the module
* but does not want to loose all of the data associated to the module.
*/
$sql = array();
foreach ($sql as $query) {
if (Db::getInstance()->execute($query) == false) {
return false;
}
}

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,44 @@
<?php
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* This function updates your module from previous versions to the version 1.1,
* usefull when you modify your database, or register a new hook ...
* Don't forget to create one file per version.
*/
function upgrade_module_1_1_0($module)
{
/**
* Do everything you want right there,
* You could add a column in one of your module's tables
*/
return true;
}

View File

@@ -0,0 +1,27 @@
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

View File

@@ -0,0 +1,27 @@
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,27 @@
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

View File

@@ -0,0 +1,27 @@
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,48 @@
{*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="panel">
<h3><i class="icon icon-credit-card"></i> {l s='ekomiSff' mod='ekomiSff'}</h3>
<p>
<strong>{l s='Here is my new generic module!' mod='ekomiSff'}</strong><br />
{l s='Thanks to PrestaShop, now I have a great module.' mod='ekomiSff'}<br />
{l s='I can configure it using the following configuration form.' mod='ekomiSff'}
</p>
<br />
<p>
{l s='This module will boost your sales!' mod='ekomiSff'}
</p>
</div>
<div class="panel">
<h3><i class="icon icon-tags"></i> {l s='Documentation' mod='ekomiSff'}</h3>
<p>
&raquo; {l s='You can get a PDF documentation to configure this module' mod='ekomiSff'} :
<ul>
<li><a href="#" target="_blank">{l s='English' mod='ekomiSff'}</a></li>
<li><a href="#" target="_blank">{l s='French' mod='ekomiSff'}</a></li>
</ul>
</p>
</div>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,51 @@
{*
* 2007-2016 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<!-- eKomiWidget START -->
<div id="sff_127__widget-container"></div>
<!-- eKomiWidget END -->
<!-- eKomiLoader START, only needed once per page -->
<script type="text/javascript">
(function(w) {
w['_ekomiServerUrl'] = 'https://smartforms.ekomi.com';
w['_ekomiShopId'] = '{$ekomiShopId}';
w['_ekomiFormId'] = '{$ekomiFormId}';
w['_ekomiTransactionId'] = '{$orderIdPrefix}{$orderId}';
w['_ekomiProductIds'] = '{$productIds}';
w['_ekomiWidgetWidth'] = '{$ekomiWidgetWidth}';
w['_ekomiWidgetHeight'] = '{$ekomiWidgetHeight}';
w['_ekomiEmbedWidget'] = '0';
w['_ekomiDisableAutoClose'] = '0';
w['_ekomiEmail'] = '';
var s = document.createElement('script');
s.src = w['_ekomiServerUrl']+'/script/widget.js?v='+ new Date().getTime();
s.async = true;
var e = document.getElementsByTagName('script')[0];
e.parentNode.insertBefore(s, e);
})(window);
</script>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* 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 refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;