Jump to content

axelfx07

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Activity
    Agency

axelfx07's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hey, Basically, I want every client to fill their mobile phone number when creating an account during order (instant checkout disabled). This is how my checkout form looks like I moved the phone number up, by adding this code to a "new customer section" of order-opc-new-account.tpl <p class="required text"> <label for="phone_invoice">{l s='Home phone'} <sup>*</sup></label> <input type="text" class="text" name="phone_invoice" id="phone_invoice" value="{if isset($guestInformations) && $guestInformations.phone_invoice}{$guestInformations.phone_invoice}{/if}" /> </p> and changed the line in adresses.php to 'phone' => array('type' => self::TYPE_STRING, 'validate' => 'isPhoneNumber', 'required' => true, 'size' => 32), When I try to register and I get this: There is 1 Error(s): Phone is rquired. Enabling "force users to enter at least one phone" option in Prefrences->clients is not an option for me, but even when I do it it doesn't work either. It gives me an error as well. Any help is highly appreciated. UPDATE Solved <p class="required text"> <label for="phone_invoice">{l s='Home phone'} <sup>*</sup></label> <input type="text" class="text" name="phone_invoice" id="phone_invoice" value="{if isset($guestInformations) && $guestInformations.phone_invoice}{$guestInformations.phone_invoice}{/if}" /> </p> replaced with <p class="required text"> <label for="phone">{l s='Home phone'} <sup>*</sup></label> <input type="text" class="text" name="phone" id="phone" value="{if isset($guestInformations) && $guestInformations.phone}{$guestInformations.phone}{/if}" /> </p>
  2. here is inelegant solution you can add .hide { visibility:hidden; } to your template's css and then replace this call in the second line. It will hide the selection box but will leave quite a big margin
  3. Hey, I'd like a solution fort this one. The piece of code responsible is <label for="id_address_delivery">{if $cart->isVirtualCart()}{l s='Choose a billing address:'}{else}{l s='Choose a delivery address:'}{/if}</label> <select name="id_address_delivery" id="id_address_delivery" class="address_select" onchange="updateAddressesDisplay();{if $opc}updateAddressSelection();{/if}"> lines 214 and 215 of order-adresses.tpl commenting out the first line removes "Choose a delivery address:", but leaves the drop box. Commenting out the second one removes the whole address block.
  4. Hey, I've stripped my registration form to just 3 fields - Name, address, email and phone number. Everything works fine, however when registered user places an order it still shows the fields I removed from registration form (fixed values). I've highlighted the problem in the screenshot. I would like to remove Country, city and zip-code fixed values. Which file need editing? Thanks
  5. Hey, Is there any way to get rid of it? screenshot attached. Also how can I change the email title? thanks a lot.
×
×
  • Create New...