otropaco Posted August 15, 2011 Share Posted August 15, 2011 Hallo, fist of all, sorry for my english. I have 1.4.4 ps version with one page checkout and guest checkout enabled. I wish that if the customer don't want to register, don't appear the geder, birthday, phone or id. fiscal number fields, and not to verificate if mail already exist (I later will unify duplicates if there are), and not phone required errors. I only want to know who are you and where I must send your order. BUT, if you are a proffesional and do a normal registration, I want all this fields appear, with all verifications for duplicated accounts and data format. I know this is possible because in normal register form appears the password field, and it is required, but in guest checkout it doesn't. In my tries if i make a change, it's happens in both forms. In mytheme/authentication.tpl you can see the two forms, but any changes here do nothing. In mytheme/order-opc-new-account.tpl only there is one form, the chages do here happen in both fields, gest and normal registration. Any suggestion? thanks Link to comment Share on other sites More sharing options...
otropaco Posted August 17, 2011 Author Share Posted August 17, 2011 If any wants to know... When ps 1.4 uses guest chekout and one page checkout, in the cart page you can choose between create an account or buy without to register. The tpl file is the same for both cases, <mytheme>/order-opc-new-account.tpl. So, if you do not want a field appears in guest form, you must add "is_customer_param" in the class of paragraph. For example: Before <p class="text"> <label for="phone_mobile">{l s='Mobile phone'}</label> <input type="text" class="text" name="phone_mobile" id="phone_mobile" value="" /> </p> After <p class="text is_customer_param"> <label for="phone_mobile">{l s='Mobile phone'}</label> <input type="text" class="text" name="phone_mobile" id="phone_mobile" value="" /> </p> The phone only appears in new account form. Of course you must put the phone not required by comment the apropiate lines in AuthController.php and addressController.php. Now i must to solve the "email repeat" validation. Sorry for my english Link to comment Share on other sites More sharing options...
anmbr Posted May 30, 2012 Share Posted May 30, 2012 Hi, i've checked and phone_mobile is not required, but when I using one page checkout and guest checkout occur error. Field wasn't show when use guest checkout and said that are required. I using 1.4.8.2 version. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now