Jump to content

krypton-media

Member
  • Posts

    7
  • Joined

  • Last visited

Everything posted by krypton-media

  1. Hello, is there a possibility to include variables for the different language files in the php files under /include/hooks? How would one have to do this?
  2. Is there perhaps a hook with which you can include additional fields that must be clicked? This function is mandatory in Germany, otherwise you can be legally prosecuted.
  3. In the customer profile, of course, these fields also stand out and work there. You can see this in the error message if you do not activate the checkboxes.
  4. Hello, I have now tried this again with the standard template six. I created two new custom fields and made them mandatory during the order process. However, as can be seen in the error message, only the general terms and conditions are requested. It is enough if I accept them. The other two fields do not have to be clicked. With kind regards Christian
  5. this is how it should be, but it doesn't work I will try it and yes I have a modified version.
  6. I have now tried to create a hook to extend the query, e.g. when registering a customer. However, I do not know how to act on the missing entries. Currently I just write something in $errors but that doesn't work so that it queries the fields additionally. clientregister.tpl <div class="row"> <div class="col-sm-1" style="text-align:right"> <input type="checkbox" name="accepttos" id="accepttos" /> </div> <div class="col-sm-11" style="text-align:left"> {$LANG.ordertosagreement} &nbsp; <strong><a href="{$tosurl}" target="_blank">{$LANG.ordertos}</a></strong> </div> </div> <div class="row"> <div class="col-sm-1" style="text-align:right"> <input type="checkbox" name="widerruf" id="widerruf" /> </div> <div class="col-sm-11" style="text-align:left"> {$LANG.ordercancellationpolicyagreement} &nbsp; <strong><a href="{$WEB_ROOT}cancellationpolicy.php" target="_blank">{$LANG.ordercancellationpolicy}</a></strong> </div> </div> <div class="row"> <div class="col-sm-1" style="text-align:right"> <input type="checkbox" name="datenschutz" id="datenschutz" /> </div> <div class="col-sm-11" style="text-align:left"> {$LANG.orderprivacypolicyagreement} &nbsp; <strong><a href="{$WEB_ROOT}privacypolicy.php" target="_blank">{$LANG.orderprivacypolicy}</a></strong> </div> </div> ClientRegister.php ( includes/hooks/) <?php add_hook('ClientAreaRegister', 1, function($vars) { global $_LANG; $errors = array(); if ( $_REQUEST['widerruf'] != true ) { $errors[] = $_LANG['ordercancellationpolicy']; } if ( $_REQUEST['datenschutz'] != true ) { $errors[] = $_LANG['orderprivacypolicy']; } return $errors; });
  7. Hello, until the update to the current version 8.1.3, the query of the user-defined customer fields also worked for me in the order overview. Although these are marked as mandatory, they are now no longer queried. Only the terms and conditions are always queried by default Is this error known and how can it be solved? Best regards Christian
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated