http://opencart.shoputils.com/warning-dialog
The module "Store warning dialog" displays a dialog box when you first enter to website.
And allows displaying a notice about the variety of items available in the store,
for example, while selling products of a sexual nature.
Module features:
- Entering title texts, agreement texts, copyright texts for different languages of the store;
- URL pages if a user presses the botton "Leave".
(see "Module settings").
Here you can see how the module is set up:
http://opencart.shoputils.ru/demo/admin/ (Login: demo, Password: demo)
2. Module installation
- Extract archive to a folder with installed Opencart 1.4.x. and press
"Install" in the "Administration panel" - "Extensions" - "Modules" - "Store warning dialog".
- Click "Install", "Edit" and open the module settings.
- It is necessary to fix the following files to install the module on the website:
1. catalog/controller/common/header.php
After lines:
Code: Select all
$this->children = array(
'common/admin',
);
Add the line:
Code: Select all
$this->children[] = 'module/shoputils_warning';
2. catalog/view/theme/default/template/common/header.tpl
2.1 Before the lines:
Code: Select all
<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
Add the line:
Code: Select all
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/shoputils_warning.css" />
Code: Select all
<script type="text/javascript" src="catalog/view/javascript/jquery-1.4.4.js"></script>
Code: Select all
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery.cookie.js"></script>
Code: Select all
<body>
Add the line:
Code: Select all
<?php echo $shoputils_warning; ?>