Jump to content

How to remove state field and the validation from cart?


drmosko

Recommended Posts

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>

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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