drmosko Posted July 1, 2012 Share Posted July 1, 2012 How to remove state field and the validation from cart? 0 Quote Link to comment Share on other sites More sharing options...
drmosko Posted July 8, 2012 Author Share Posted July 8, 2012 hello, iundetsand that i need to set defult value to state and set the statefield to hidden. how do i do that? in boxes template, viewcart.tpl in the line <tr><td class="fieldarea">{$LANG.clientareastate}</td><td>{if $loggedin}{$clientsdetails.state}{else}<input type="text" name="state" style="width:80%;" value="{$clientsdetails.state}" />{/if}</td></tr> 0 Quote Link to comment Share on other sites More sharing options...
drmosko Posted July 12, 2012 Author Share Posted July 12, 2012 please anyone? 0 Quote Link to comment Share on other sites More sharing options...
ipgeek-lg Posted July 12, 2012 Share Posted July 12, 2012 Well you can hide the field by putting it inside a div like this: <div class="hidden"> [content you want to hide] </div> Or if that doesn't work in your theme, like this: <div style="display: none;"> [content you want to hide] </div> As for setting the default value to state, what do you mean? That you would like to set all clients 'state' fields to something like 'no state' or something other than this? 0 Quote Link to comment Share on other sites More sharing options...
drmosko Posted July 12, 2012 Author Share Posted July 12, 2012 well, thak u very much for ur answer As for setting the default value to state, what do you mean? That you would like to set all clients 'state' fields to something like 'no state' or something other than this? answer: as u understand if i just hide the state than user cant move forward the validation , so i just guess that if i set the state value fo constant plus the hidden option i can get pass that. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.