Post by opencart_shoputils » Wed Jun 29, 2011 6:30 pm

1. About module Shoputils.Warning 1.4.x - 1.0 (Module "Store warning dialog")

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" />
2.2 After the line:

Code: Select all

<script type="text/javascript" src="catalog/view/javascript/jquery-1.4.4.js"></script>
Add the line:

Code: Select all

<script type="text/javascript" src="catalog/view/javascript/jquery/jquery.cookie.js"></script>
2.3 After the line:

Code: Select all

<body>

Add the line:

Code: Select all

<?php echo $shoputils_warning; ?>

Attachments

shoputils_warning_1.png

shoputils_warning_1.png (82.54 KiB) Viewed 1048 times

shoputils_warning_0.png

shoputils_warning_0.png (42.66 KiB) Viewed 1048 times


Opencart Modules: http://opencart.shoputils.com



Posts

Joined
Wed Nov 03, 2010 5:57 am
Who is online

Users browsing this forum: No registered users and 4 guests