Pop-up Conditions and Privacy

Version 1.0.4 by Vinos de Frutas Tropicales (lat9)

Copyright © 2012-2015, Vinos de Frutas Tropicales

Please send any bug reports and/or improvement requests via this plugin's support page here.

Version History:

What it does

Screenshot

If your store enables either Regulations->Confirm Privacy Notice During Account Creation Procedure or Regulations->Confirm Terms and Conditions During Checkout Procedure, the standard Zen Cart behaviour is to provide a link to your store's privacy or conditions page for the customer to view — taking focus away from the account-creation and checkout process. This plugin converts the display of your login/account-creation privacy statement and/or checkout conditions to a pop-up window. The updated checkout_payment display looks like the screenshot to the left; the updated login and/or create_account pages' display looks similar.

Note: If your customer has JavaScript disabled, the conditions are displayed in a separate window in their browser.

Two additional language-define files are provided, one for the pop-up "Conditions of Use" and one for the pop-up "Privacy Statement"; these files can be edited using your admin's Tools->Define Pages Editor. You have the choice to either copy the content from your existing "Conditions of Use" and "Privacy" define-pages or to create an abbreviated version for the pop-up text.

Installation

There are no core-file overwrites in this plugin, but there are two template-override files; you should always backup your cart's database and files prior to making any changes.

  1. Copy the catalog files to your cart, after renaming the "YOUR_TEMPLATE" directories (four of them) to match your custom template's name and merging your store's existing changes with the template-override files:
    1. /includes/extra_datafiles/popup_conditions_filenames.php
    2. /includes/languages/english/extra_definitions/YOUR_TEMPLATE/popup_conditions_links.php
    3. /includes/languages/english/html_includes/define_popup_conditions.php
    4. /includes/languages/english/html_includes/define_popup_privacy.php
    5. /includes/languages/english/html_includes/YOUR_TEMPLATE/define_popup_conditions.php
    6. /includes/languages/english/html_includes/YOUR_TEMPLATE/define_popup_privacy.php
    7. /includes/languages/english/YOUR_TEMPLATE/popup_conditions.php
    8. /includes/modules/pages/create_account/jscript_popup.php
    9. /includes/modules/pages/login/jscript_popup.php
    10. /includes/modules/pages/popup_conditions/header_php.php
    11. /includes/modules/pages/popup_conditions/jscript_main.php
    12. /includes/templates/YOUR_TEMPLATE/css/popup_conditions.css
    13. /includes/templates/YOUR_TEMPLATE/popup_conditions/tpl_main_page.php
    14. /includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php
    15. /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php

Un-install

Replace the files you copied with their previous versions.