Search the Community
Showing results for tags 'gender'.
-
Hi everyone, I am interested to know if there is a module that does the following: What I am actually looking for in this module is to show the customer some items that would complete their look/outfit. For example: If a customer is looking at a running shoe, in the related products field I want to show a running t-shirt, running shorts, or some other accessories from the running sub-category, BUT NOT AGAIN RUNNING SHOES. Also, if the customer is a female and is looking at female shoes, I want to show her female running shorts, t-shirt etc. And last but not least, I want the related products to be also related by color, because if a customer is looking at white shoes, I would not like to show some red pants, blue shirt, yellow cap, because they do not go well with the white shoes, as well as all together. Technically speaking, is there any module that provides a relation of the products by filtering categories, sub-categories, color, gender?
-
- related product
- related products
-
(and 6 more)
Tagged with:
-
Hello, I am facing a problem with the gender. I am selling flowers and the delivery address is mostly different then the customer address. When it comes to give another delivery address there is no possibility to add a gender. For exemple Mr White orders flower to Madam White and the delivery address will be for Madam White but the system does not ask for the gender for the delivery address and new adddresses. How is it possible to add the gender to the delivery address and other new addresses? Thank you for your help.
-
Hello, I am facing a problem with the gender. I am selling flowers and the delivery address is mostly different then the customer address. When it comes to give another delivery address there is no possibility to add a gender. For exemple Mr White orders flower to Madam White and the delivery address will be for Madam White but the system does not ask for the gender for the delivery address. How is it possible to add the gender to the delivery address ? Thank you for your help. ____________________ Bonjour, J'ai un problème avec les salutations. Je vends des fleurs et l'adresse de livraison est souvent différente que l'adresse du client. Les salutations (Monsieur, Madame, Mademoiselle etc...) sont demandées à la création de l'adresse du client mais pas à la création de l'adresse de livraison. Comment faire pour ajouter les salutations à l'adresse de livraison ? Par exemple Monsieur Dupont achète des fleurs à Madame Dupont. L'adresse de livraison doit contenir Madame comme genre. Merci pour votre aide.
- 1 reply
-
- gender
- delivery address
-
(and 2 more)
Tagged with:
-
i have an issue in Prestashop 1.6.1.16 version i have deleted customer titles my Prestashop and also authentication.tpl identity.tpl and order-opc-new-account but still i am facing issue when a customer create account during checkout its give error There are 1 errors Please enter your salutation please help me to solve my issue
-
Hello, I am facing a problem with the gender. I am selling flowers and the delivery address is mostly different then the customer address. When it comes to give another delivery address there is no possibility to add a gender. For exemple Mr White orders flower to Madam White and the delivery address will be for Madam White but the system does not ask for the gender for the delivery address. How is it possible to add the gender to the delivery address ? Thank you for your help.
-
Hi I am using PrestaShop version: 1.6.0.9, I can`t figure out how to remove birthday, gender ...... from the registration form. I removed it in an earlier version of PS by modifying the authentication.tpl , but somehow it does´nt work now. Can anyone please tell me what to do? authentication.tpl looks like this: {* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {capture name=path} {if !isset($email_create)}{l s='Authentication'}{else} <a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Authentication'}">{l s='Authentication'}</a> <span class="navigation-pipe">{$navigationPipe}</span>{l s='Create your account'} {/if} {/capture} <h1 class="page-heading">{if !isset($email_create)}{l s='Authentication'}{else}{l s='Create an account'}{/if}</h1> {if isset($display_guest_checkout)}{assign var='current_step' value='login'}{include file="$tpl_dir./order-steps.tpl"}{/if} {include file="$tpl_dir./errors.tpl"} {assign var='stateExist' value=false} {assign var="postCodeExist" value=false} {assign var="dniExist" value=false} {if !isset($email_create)} <!--{if isset($authentification_error)} <div class="alert alert-danger"> {if {$authentification_error|@count} == 1} <p>{l s='There\'s at least one error'} :</p> {else} <p>{l s='There are %s errors' sprintf=[$account_error|@count]} :</p> {/if} <ol> {foreach from=$authentification_error item=v} <li>{$v}</li> {/foreach} </ol> </div> {/if}--> <div class="row"> <div class="col-xs-12 col-sm-6"> <form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="create-account_form" class="box"> <h3 class="page-subheading">{l s='Create an account'}</h3> <div class="form_content clearfix"> <p>{l s='Please enter your email address to create an account.'}</p> <div class="alert alert-danger" id="create_account_error" style="display:none"></div> <div class="form-group"> <label for="email_create">{l s='Email address'}</label> <input type="text" class="is_required validate account_input form-control" data-validate="isEmail" id="email_create" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|stripslashes}{/if}" /> </div> <div class="submit"> {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if} <button class="btn btn-default button button-medium exclusive" type="submit" id="SubmitCreate" name="SubmitCreate"> <span> <i class="icon-user left"></i> {l s='Create an account'} </span> </button> <input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create an account'}" /> </div> </div> </form> </div> <div class="col-xs-12 col-sm-6"> <form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="login_form" class="box"> <h3 class="page-subheading">{l s='Already registered?'}</h3> <div class="form_content clearfix"> <div class="form-group"> <label for="email">{l s='Email address'}</label> <input class="is_required validate account_input form-control" data-validate="isEmail" type="text" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes}{/if}" /> </div> <div class="form-group"> <label for="passwd">{l s='Password'}</label> <span><input class="is_required validate account_input form-control" type="password" data-validate="isPasswd" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|stripslashes}{/if}" /></span> </div> <p class="lost_password form-group"><a href="{$link->getPageLink('password')|escape:'html':'UTF-8'}" title="{l s='Recover your forgotten password'}" rel="nofollow">{l s='Forgot your password?'}</a></p> <p class="submit"> {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if} <button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium"> <span> <i class="icon-lock left"></i> {l s='Sign in'} </span> </button> </p> </div> </form> </div> </div> {if isset($inOrderProcess) && $inOrderProcess && $PS_GUEST_CHECKOUT_ENABLED} <form action="{$link->getPageLink('authentication', true, NULL, "back=$back")|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std clearfix"> <div class="box"> <div id="opc_account_form" style="display: block; "> <h3 class="page-heading bottom-indent">{l s='Instant checkout'}</h3> <!-- Account --> <div class="required form-group"> <label for="guest_email">{l s='Email address'} <sup>*</sup></label> <input type="text" class="is_required validate form-control" data-validate="isEmail" id="guest_email" name="guest_email" value="{if isset($smarty.post.guest_email)}{$smarty.post.guest_email}{/if}" /> </div> <div class="required form-group"> <label for="firstname">{l s='First name'} <sup>*</sup></label> <input type="text" class="is_required validate form-control" data-validate="isName" id="firstname" name="firstname" onblur="$('#customer_firstname').val($(this).val());" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{/if}" /> <input type="hidden" id="customer_firstname" name="customer_firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{/if}" /> </div> <div class="required form-group"> <label for="lastname">{l s='Last name'} <sup>*</sup></label> <input type="text" class="is_required validate form-control" data-validate="isName" id="lastname" name="lastname" onblur="$('#customer_lastname').val($(this).val());" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{/if}" /> <input type="hidden" id="customer_lastname" name="customer_lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{/if}" /> </div> {if isset($newsletter) && $newsletter} <div class="checkbox"> <label for="newsletter"> <input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) && $smarty.post.newsletter == '1'}checked="checked"{/if} /> {l s='Sign up for our newsletter!'}</label> </div> <!-- <div class="checkbox"> <label for="optin"> <input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) && $smarty.post.optin == '1'}checked="checked"{/if} /> {l s='Receive special offers from our partners!'}</label> </div> --> {/if} <h3 class="page-heading bottom-indent top-indent">{l s='Delivery address'}</h3> {foreach from=$dlv_all_fields item=field_name} {if $field_name eq "company" && $b2b_enable} <div class="form-group"> <label for="company">{l s='Company'}</label> <input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" /> </div> {elseif $field_name eq "vat_number"} <div id="vat_number" style="display:none;"> <div class="form-group"> <label for="vat-number">{l s='VAT number'}</label> <input id="vat-number" type="text" class="form-control" name="vat_number" value="{if isset($smarty.post.vat_number)}{$smarty.post.vat_number}{/if}" /> </div> </div> {elseif $field_name eq "dni"} {assign var='dniExist' value=true} <div class="required dni form-group"> <label for="dni">{l s='Identification number'} <sup>*</sup></label> <input type="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" /> <span class="form_info">{l s='DNI / NIF / NIE'}</span> </div> {elseif $field_name eq "address1"} <div class="required form-group"> <label for="address1">{l s='Address'} <sup>*</sup></label> <input type="text" class="form-control" name="address1" id="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{/if}" /> </div> {elseif $field_name eq "address2"} <div class="form-group is_customer_param"> <label for="address2">{l s='Address (Line 2)'} <sup>*</sup></label> <input type="text" class="form-control" name="address2" id="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{/if}" /> </div> {elseif $field_name eq "postcode"} {assign var='postCodeExist' value=true} <div class="required postcode form-group"> <label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label> <input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onblur="$('#postcode').val($('#postcode').val().toUpperCase());" /> </div> {elseif $field_name eq "city"} <div class="required form-group"> <label for="city">{l s='City'} <sup>*</sup></label> <input type="text" class="form-control" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{/if}" /> </div> <!-- if customer hasn't update his layout address, country has to be verified but it's deprecated --> {elseif $field_name eq "Country:name" || $field_name eq "country"} <div class="required select form-group"> <label for="id_country">{l s='Country'} <sup>*</sup></label> <select name="id_country" id="id_country" class="form-control"> {foreach from=$countries item=v} <option value="{$v.id_country}"{if (isset($smarty.post.id_country) AND $smarty.post.id_country == $v.id_country) OR (!isset($smarty.post.id_country) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name}</option> {/foreach} </select> </div> {elseif $field_name eq "State:name"} {assign var='stateExist' value=true} <div class="required id_state select form-group"> <label for="id_state">{l s='State'} <sup>*</sup></label> <select name="id_state" id="id_state" class="form-control"> <option value="">-</option> </select> </div> {/if} {/foreach} {if $stateExist eq false} <div class="required id_state select unvisible form-group"> <label for="id_state">{l s='State'} <sup>*</sup></label> <select name="id_state" id="id_state" class="form-control"> <option value="">-</option> </select> </div> {/if} {if $postCodeExist eq false} <div class="required postcode unvisible form-group"> <label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label> <input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onblur="$('#postcode').val($('#postcode').val().toUpperCase());" /> </div> {/if} {if $dniExist eq false} <div class="required form-group dni_invoice"> <label for="dni">{l s='Identification number'} <sup>*</sup></label> <input type="text" class="text form-control" name="dni_invoice" id="dni_invoice" value="{if isset($guestInformations) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" /> <span class="form_info">{l s='DNI / NIF / NIE'}</span> </div> {/if} <div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group"> <label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label> <input type="text" class="form-control" name="phone_mobile" id="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{/if}" /> </div> <input type="hidden" name="alias" id="alias" value="{l s='My address'}" /> <input type="hidden" name="is_new_customer" id="is_new_customer" value="0" /> <div class="checkbox"> <label for="invoice_address"> <input type="checkbox" name="invoice_address" id="invoice_address"{if (isset($smarty.post.invoice_address) && $smarty.post.invoice_address) || (isset($guestInformations) && $guestInformations.invoice_address)} checked="checked"{/if} autocomplete="off"/> {l s='Please use another address for invoice'}</label> </div> <div id="opc_invoice_address" class="unvisible"> {assign var=stateExist value=false} {assign var=postCodeExist value=false} <h3 class="page-subheading top-indent">{l s='Invoice address'}</h3> {foreach from=$inv_all_fields item=field_name} {if $field_name eq "company" && $b2b_enable} <div class="form-group"> <label for="company_invoice">{l s='Company'}</label> <input type="text" class="text form-control" id="company_invoice" name="company_invoice" value="" /> </div> {elseif $field_name eq "vat_number"} <div id="vat_number_block_invoice" class="is_customer_param" style="display:none;"> <div class="form-group"> <label for="vat_number_invoice">{l s='VAT number'}</label> <input type="text" class="form-control" id="vat_number_invoice" name="vat_number_invoice" value="" /> </div> </div> {elseif $field_name eq "dni"} {assign var=dniExist value=true} <div class="required form-group dni_invoice"> <label for="dni">{l s='Identification number'} <sup>*</sup></label> <input type="text" class="text form-control" name="dni_invoice" id="dni_invoice" value="{if isset($guestInformations) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" /> <span class="form_info">{l s='DNI / NIF / NIE'}</span> </div> {elseif $field_name eq "firstname"} <div class="required form-group"> <label for="firstname_invoice">{l s='First name'} <sup>*</sup></label> <input type="text" class="form-control" id="firstname_invoice" name="firstname_invoice" value="{if isset($guestInformations) && $guestInformations.firstname_invoice}{$guestInformations.firstname_invoice}{/if}" /> </div> {elseif $field_name eq "lastname"} <div class="required form-group"> <label for="lastname_invoice">{l s='Last name'} <sup>*</sup></label> <input type="text" class="form-control" id="lastname_invoice" name="lastname_invoice" value="{if isset($guestInformations) && $guestInformations.lastname_invoice}{$guestInformations.lastname_invoice}{/if}" /> </div> {elseif $field_name eq "address1"} <div class="required form-group"> <label for="address1_invoice">{l s='Address'} <sup>*</sup></label> <input type="text" class="form-control" name="address1_invoice" id="address1_invoice" value="{if isset($guestInformations) && $guestInformations.address1_invoice}{$guestInformations.address1_invoice}{/if}" /> </div> {elseif $field_name eq "address2"} <div class="form-group is_customer_param"> <label for="address2_invoice">{l s='Address (Line 2)'}</label> <input type="text" class="form-control" name="address2_invoice" id="address2_invoice" value="{if isset($guestInformations) && $guestInformations.address2_invoice}{$guestInformations.address2_invoice}{/if}" /> </div> {elseif $field_name eq "postcode"} {$postCodeExist = true} <div class="required postcode_invoice form-group"> <label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label> <input type="text" class="form-control" name="postcode_invoice" id="postcode_invoice" value="{if isset($guestInformations) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}" onkeyup="$('#postcode_invoice').val($('#postcode_invoice').val().toUpperCase());" /> </div> {elseif $field_name eq "city"} <div class="required form-group"> <label for="city_invoice">{l s='City'} <sup>*</sup></label> <input type="text" class="form-control" name="city_invoice" id="city_invoice" value="{if isset($guestInformations) && $guestInformations.city_invoice}{$guestInformations.city_invoice}{/if}" /> </div> {elseif $field_name eq "country" || $field_name eq "Country:name"} <div class="required form-group"> <label for="id_country_invoice">{l s='Country'} <sup>*</sup></label> <select name="id_country_invoice" id="id_country_invoice" class="form-control"> <option value="">-</option> {foreach from=$countries item=v} <option value="{$v.id_country}"{if (isset($guestInformations) AND $guestInformations.id_country_invoice == $v.id_country) OR (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option> {/foreach} </select> </div> {elseif $field_name eq "state" || $field_name eq 'State:name'} {$stateExist = true} <div class="required id_state_invoice form-group" style="display:none;"> <label for="id_state_invoice">{l s='State'} <sup>*</sup></label> <select name="id_state_invoice" id="id_state_invoice" class="form-control"> <option value="">-</option> </select> </div> {/if} {/foreach} {if !$postCodeExist} <div class="required postcode_invoice form-group unvisible"> <label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label> <input type="text" class="form-control" name="postcode_invoice" id="postcode_invoice" value="" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" /> </div> {/if} {if !$stateExist} <div class="required id_state_invoice form-group unvisible"> <label for="id_state_invoice">{l s='State'} <sup>*</sup></label> <select name="id_state_invoice" id="id_state_invoice" class="form-control"> <option value="">-</option> </select> </div> {/if} <div class="form-group is_customer_param"> <label for="other_invoice">{l s='Additional information'}</label> <textarea class="form-control" name="other_invoice" id="other_invoice" cols="26" rows="3"></textarea> </div> {if isset($one_phone_at_least) && $one_phone_at_least} <p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p> {/if} <div class="form-group is_customer_param"> <label for="phone_invoice">{l s='Home phone'}</label> <input type="text" class="form-control" name="phone_invoice" id="phone_invoice" value="{if isset($guestInformations) && $guestInformations.phone_invoice}{$guestInformations.phone_invoice}{/if}" /> </div> <div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group"> <label for="phone_mobile_invoice">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label> <input type="text" class="form-control" name="phone_mobile_invoice" id="phone_mobile_invoice" value="{if isset($guestInformations) && $guestInformations.phone_mobile_invoice}{$guestInformations.phone_mobile_invoice}{/if}" /> </div> <input type="hidden" name="alias_invoice" id="alias_invoice" value="{l s='My Invoice address'}" /> </div> <!-- END Account --> </div> {$HOOK_CREATE_ACCOUNT_FORM} </div> <p class="cart_navigation required submit clearfix"> <span><sup>*</sup>{l s='Required field'}</span> <input type="hidden" name="display_guest_checkout" value="1" /> <button type="submit" class="button btn btn-default button-medium" name="submitGuestAccount" id="submitGuestAccount"> <span> {l s='Proceed to checkout'} <i class="icon-chevron-right right"></i> </span> </button> </p> </form> {/if} {else} <!--{if isset($account_error)} <div class="error"> {if {$account_error|@count} == 1} <p>{l s='There\'s at least one error'} :</p> {else} <p>{l s='There are %s errors' sprintf=[$account_error|@count]} :</p> {/if} <ol> {foreach from=$account_error item=v} <li>{$v}</li> {/foreach} </ol> </div> {/if}--> <form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="account-creation_form" class="std box"> {$HOOK_CREATE_ACCOUNT_TOP} <div class="account_creation"> <h3 class="page-subheading">{l s='Your personal information'}</h3> <div class="clearfix"> <label>{l s='Title'}</label> <br /> {foreach from=$genders key=k item=gender} <!-- <div class="radio-inline"> <label for="id_gender{$gender->id}" class="top"> <input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id}" {if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id}checked="checked"{/if} /> {$gender->name} </label> </div> {/foreach} </div> --> <div class="required form-group"> <label for="customer_firstname">{l s='First name'} <sup>*</sup></label> <input onkeyup="$('#firstname').val(this.value);" type="text" class="is_required validate form-control" data-validate="isName" id="customer_firstname" name="customer_firstname" value="{if isset($smarty.post.customer_firstname)}{$smarty.post.customer_firstname}{/if}" /> </div> <div class="required form-group"> <label for="customer_lastname">{l s='Last name'} <sup>*</sup></label> <input onkeyup="$('#lastname').val(this.value);" type="text" class="is_required validate form-control" data-validate="isName" id="customer_lastname" name="customer_lastname" value="{if isset($smarty.post.customer_lastname)}{$smarty.post.customer_lastname}{/if}" /> </div> <div class="required form-group"> <label for="email">{l s='Email'} <sup>*</sup></label> <input type="text" class="is_required validate form-control" data-validate="isEmail" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email}{/if}" /> </div> <div class="required password form-group"> <label for="passwd">{l s='Password'} <sup>*</sup></label> <input type="password" class="is_required validate form-control" data-validate="isPasswd" name="passwd" id="passwd" /> <span class="form_info">{l s='(Five characters minimum)'}</span> </div> {if $newsletter} <div class="checkbox"> <input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) AND $smarty.post.newsletter == 1} checked="checked"{/if} /> <label for="newsletter">{l s='Sign up for our newsletter!'}</label> </div> <div class="checkbox"> <input type="checkbox"name="optin" id="optin" value="1" {if isset($smarty.post.optin) AND $smarty.post.optin == 1} checked="checked"{/if} /> <label for="optin">{l s='Receive special offers from our partners!'}</label> </div> {/if} </div> {if $b2b_enable} <div class="account_creation"> <h3 class="page-subheading">{l s='Your company information'}</h3> <p class="form-group"> <label for="">{l s='Company'}</label> <input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" /> </p> <p class="form-group"> <label for="siret">{l s='SIRET'}</label> <input type="text" class="form-control" id="siret" name="siret" value="{if isset($smarty.post.siret)}{$smarty.post.siret}{/if}" /> </p> <p class="form-group"> <label for="ape">{l s='APE'}</label> <input type="text" class="form-control" id="ape" name="ape" value="{if isset($smarty.post.ape)}{$smarty.post.ape}{/if}" /> </p> <p class="form-group"> <label for="website">{l s='Website'}</label> <input type="text" class="form-control" id="website" name="website" value="{if isset($smarty.post.website)}{$smarty.post.website}{/if}" /> </p> </div> {/if} {if isset($PS_REGISTRATION_PROCESS_TYPE) && $PS_REGISTRATION_PROCESS_TYPE} <div class="account_creation"> <h3 class="page-subheading">{l s='Your address'}</h3> {foreach from=$dlv_all_fields item=field_name} {if $field_name eq "company"} {if !$b2b_enable} <p class="form-group"> <label for="company">{l s='Company'}</label> <input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" /> </p> {/if} {elseif $field_name eq "vat_number"} <div id="vat_number" style="display:none;"> <p class="form-group"> <label for="vat_number">{l s='VAT number'}</label> <input type="text" class="form-control" name="vat_number" value="{if isset($smarty.post.vat_number)}{$smarty.post.vat_number}{/if}" /> </p> </div> {elseif $field_name eq "firstname"} <p class="required form-group"> <label for="firstname">{l s='First name'} <sup>*</sup></label> <input type="text" class="form-control" id="firstname" name="firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{/if}" /> </p> {elseif $field_name eq "lastname"} <p class="required form-group"> <label for="lastname">{l s='Last name'} <sup>*</sup></label> <input type="text" class="form-control" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{/if}" /> </p> {elseif $field_name eq "address1"} <p class="required form-group"> <label for="address1">{l s='Address'} <sup>*</sup></label> <input type="text" class="form-control" name="address1" id="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{/if}" /> <span class="inline-infos">{l s='Street address, P.O. Box, Company name, etc.'}</span> </p> {elseif $field_name eq "address2"} <p class="form-group is_customer_param"> <label for="address2">{l s='Address (Line 2)'}</label> <input type="text" class="form-control" name="address2" id="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{/if}" /> <span class="inline-infos">{l s='Apartment, suite, unit, building, floor, etc...'}</span> </p> {elseif $field_name eq "postcode"} {assign var='postCodeExist' value=true} <p class="required postcode form-group"> <label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label> <input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" /> </p> {elseif $field_name eq "city"} <p class="required form-group"> <label for="city">{l s='City'} <sup>*</sup></label> <input type="text" class="form-control" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{/if}" /> </p> <!-- if customer hasn't update his layout address, country has to be verified but it's deprecated --> {elseif $field_name eq "Country:name" || $field_name eq "country"} <p class="required select form-group"> <label for="id_country">{l s='Country'} <sup>*</sup></label> <select name="id_country" id="id_country" class="form-control"> <option value="">-</option> {foreach from=$countries item=v} <option value="{$v.id_country}"{if (isset($smarty.post.id_country) AND $smarty.post.id_country == $v.id_country) OR (!isset($smarty.post.id_country) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name}</option> {/foreach} </select> </p> {elseif $field_name eq "State:name" || $field_name eq 'state'} {assign var='stateExist' value=true} <p class="required id_state select form-group"> <label for="id_state">{l s='State'} <sup>*</sup></label> <select name="id_state" id="id_state" class="form-control"> <option value="">-</option> </select> </p> {/if} {/foreach} {if $postCodeExist eq false} <p class="required postcode form-group unvisible"> <label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label> <input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" /> </p> {/if} {if $stateExist eq false} <p class="required id_state select unvisible form-group"> <label for="id_state">{l s='State'} <sup>*</sup></label> <select name="id_state" id="id_state" class="form-control"> <option value="">-</option> </select> </p> {/if} <p class="textarea form-group"> <label for="other">{l s='Additional information'}</label> <textarea class="form-control" name="other" id="other" cols="26" rows="3">{if isset($smarty.post.other)}{$smarty.post.other}{/if}</textarea> </p> {if isset($one_phone_at_least) && $one_phone_at_least} <p class="inline-infos">{l s='You must register at least one phone number.'}</p> {/if} <p class="form-group"> <label for="phone">{l s='Home phone'}</label> <input type="text" class="form-control" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}" /> </p> <p class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group"> <label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label> <input type="text" class="form-control" name="phone_mobile" id="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{/if}" /> </p> <p class="required form-group" id="address_alias"> <label for="alias">{l s='Assign an address alias for future reference.'} <sup>*</sup></label> <input type="text" class="form-control" name="alias" id="alias" value="{if isset($smarty.post.alias)}{$smarty.post.alias}{else}{l s='My address'}{/if}" /> </p> </div> <div class="account_creation dni"> <h3 class="page-subheading">{l s='Tax identification'}</h3> <p class="required form-group"> <label for="dni">{l s='Identification number'} <sup>*</sup></label> <input type="text" class="form-control" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" /> <span class="form_info">{l s='DNI / NIF / NIE'}</span> </p> </div> {/if} {$HOOK_CREATE_ACCOUNT_FORM} <div class="submit clearfix"> <input type="hidden" name="email_create" value="1" /> <input type="hidden" name="is_new_customer" value="1" /> {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if} <button type="submit" name="submitAccount" id="submitAccount" class="btn btn-default button button-medium"> <span>{l s='Register'}<i class="icon-chevron-right right"></i></span> </button> <p class="pull-right required"><span><sup>*</sup>{l s='Required field'}</span></p> </div> </form> {/if} {strip} {if isset($smarty.post.id_state) && $smarty.post.id_state} {addJsDef idSelectedState=$smarty.post.id_state|intval} {else if isset($address->id_state) && $address->id_state} {addJsDef idSelectedState=$address->id_state|intval} {else} {addJsDef idSelectedState=false} {/if} {if isset($smarty.post.id_country) && $smarty.post.id_country} {addJsDef idSelectedCountry=$smarty.post.id_country|intval} {else if isset($address->id_country) && $address->id_country} {addJsDef idSelectedCountry=$address->id_country|intval} {else} {addJsDef idSelectedCountry=false} {/if} {if isset($countries)} {addJsDef countries=$countries} {/if} {if isset($vatnumber_ajax_call) && $vatnumber_ajax_call} {addJsDef vatnumber_ajax_call=$vatnumber_ajax_call} {/if} {if isset($email_create) && $email_create} {addJsDef email_create=$email_create|boolval} {else} {addJsDef email_create=false} {/if} {/strip} Regards Carsten
-
Dear community, thank you very much for your help in advance. There is not a single PrestaShop installation that goes without fixing at least 5 problems within the installation files – rewriting code, permissions, etc. PrestaShop version: 1.7.2.4 Installation process stops at: 13% Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IF NOT EXISTS `kh_gender` ( `id_gender` int(11) NOT NULL AUTO_INCREMENT, `ty' at line 1 What am I exactly supposed to do: what change in what file? Your help is very much appreciated, Victoria
- 1 reply
-
- if not exists
- auto increment
- (and 12 more)
-
Bonjour, la question est assez simple, je souhaite rajouter la civilité dans le formatage des adresses delivery ou Invoice utilisé dans les alertes mails ou dans les autres documents (commande, facture) La variable est déjà en place, je la rajoute d'ailleurs dans les mails de New-orders avec gender : $gender = new Gender($customer->id_gender); puis je le récupére dans la bonne version de langue : '{gender}' => $gender->name[(int)$this->context->language->id] Seulement les 2 blocs $invoice et $delivery sont obtenu à partiur du bout de code suivant : return AddressFormat::generateAddress($address, array('avoid' => array()), $line_sep, ' ', $fields_style); avec $address qui est soit la delivery soit l'invoice.... Quand je fais une recherche je m’aperçois que ce bloc est formaté différemment suivant les pays, mais je n'ai pas la possibilité de rajouter la civilité...comment faire alors ?? sur une 1.5.6 : Localisation -> Pays -> France -> Format de l'adresse : firstname lastname company address1 address2 postcode city Country:name phone phone_mobile merci de votre aide.
-
Hi there Prestafriends, i need to insert the Gender in the Welcome E-Mail. Standart: Hallo {firstname} {lastname}, Should be: Hallo {gender} {firstname} {lastname}, But {gender} <--- Didn`t work. Any Ideas on how to get this done? Greetz and Thanks a lot. SM5K
-
Hi Dears, I saw that during registration I have "Unknown" beside of Male or Female. Does anybody has this same and do you know how to correct that? See enclosed file.
-
Hey guys, 1) So I've got a store that sells supplements, but one of the categories is also 'gear' for clothing and such. How do you guys handle Gender items? eg: I could put subcategories Gear->Men and Gear->Women (and then probably Gear->Kids->Boys / Gear->Kids->Girls) - but this certainly doesnt seem right? 2) What about 'category filtering' where they can filter the price range and manufacturer, how would I allow them to further filter by 'shorts' or 't-shirts' or 'shirts' (etc)? 3) Lastly, for a completely different store, but similarly to (1) - how would I do the same regarding pets? I have a bunch of 'grooming' items, 'beds', 'food', etc. How would I specify what breed(s) a specific item is suitable for (eg: cats/dogs/birds/reptiles) //edit Oh, and just to throw another spanner in the works - how would you furthermore categories by another factor. For example, by sport. eg: Gear->Swimming->Women Gear->Swimming->Men Gear->Swimming->Girls Gear->Swimming->Boys Gear->Soccer->Women Gear->Soccer->Men Gear->Soccer->Girls Gear->Soccer->Boys etc.
-
Всем привет. Установил "начисто" PrestaShop 1.5.5 через Softaculous Installer и мучаюсь со следующими проблемами: 1) клиент не может залогиниться/зарегистрироваться. Кнопка "войти" (*myshopaddress* /index.php?controller=my-account) возвращает: 2) в админской панели не могу зайти в меню "клиенты > клиенты". Возвращается: 3) не могу добавить пункт в меню "клиенты > форма обращения". Ошибка: 4) не могу ничего удалить в том же меню: Notice: Exceptions must be derived from the Exception base class in /home/greenwor/public_html/presta155/classes/controller/AdminController.php on line 1149 Fatal error: Uncaught exception 'Exception' with message 'Could not load data file' in /home/greenwor/public_html/presta155/classes/controller/AdminController.php:1149 Stack trace: #0 /home/greenwor/public_html/presta155/classes/controller/AdminController.php(1149): Gender->__construct('2') #1 /home/greenwor/public_html/presta155/classes/controller/AdminController.php(666): AdminControllerCore->loadObject() #2 /home/greenwor/public_html/presta155/classes/controller/AdminController.php(579): AdminControllerCore->processDelete() #3 /home/greenwor/public_html/presta155/classes/controller/Controller.php(158): AdminControllerCore->postProcess() #4 /home/greenwor/public_html/presta155/classes/Dispatcher.php(348): ControllerCore->run() #5 /home/greenwor/public_html/presta155/Fishkaras/index.php(50): DispatcherCore->dispatch() #6 {main} thrown in /home/greenwor/public_html/presta155/classes/controller/AdminController.php on line 1149 Сравнил содержимое файлов оригинальной версии скачанной с главной страницы и той, что была установлена, нашёл лишь небольшие различия в файлах hook.php, но замена ничего не дала: установлена: http://pastebin.com/344n6JXK оригинал: http://pastebin.com/W4aj970g Уже два раза устанавливал "начисто", та же проблема, не знаю куда копать.
-
Dear members i need some help. My client want to see in the email confirmation the gender (mr. or ms.). When i say email im talking about the email wich he recieves. So i need something like this: "You've a new order from {gender} {firstname} {lastname}" I have several hours fighting with this. Thanks for your time Daniel