From d2db4c010ca99fba605cec4ef74e8b096e2ed3d5 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Fri, 21 Feb 2025 11:40:46 +0100 Subject: [PATCH] add template modification section --- README.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index dd83b41..914a2df 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ request (e.g. send contact mail to shop administrator) or refuse and show an err Please proceed with one of the following ways to install the module: -### Module installation via composer +### Module installation In order to install the module via composer, run the following commands in commandline of your shop base directory (where the shop's composer.json file resides). @@ -28,17 +28,24 @@ In order to install the module via composer, run the following commands in comma composer require oxid-projects/captcha-module ``` -### Module installation via repository cloning +### Adjustments of shop theme + +Depending of the installed theme, required tpl blocks may be missing. Please add the missing blocks (as described in metadata.php) to the shop theme templates. + +Exceptions: +`tpl/form/fieldset/user_billing.tpl` - wrap block with this condition: -Clone the module to your OXID eShop **modules/oe/** directory: ``` -git clone https://github.com/OXIDprojects/captcha-module.git captcha +[{if $blIsRegister == true}] + [{block name="captcha_form"}][{/block}] +[{/if}] ``` -### Module installation from zip package +`tpl/form/register.tpl` - insert the variable to the include command: -* Make a new folder "captcha" in the **modules/oe/ directory** of your shop installation. -* Download the https://github.com/OXIDprojects/captcha-module/archive/master.zip file and unpack it into the created folder. +``` +[{include file="form/fieldset/user_billing.tpl" blIsRegister=true}] +``` ## Activate Module