Jump to content

Custom Client Fields auto fill


dewdropz

Recommended Posts

the only way you could do that would be via a template edit or using an action hook...

 

e.g in checkout.tpl, change...

 

{$customfield.input}

to...

{if $customfield.id eq '9'}{$customfield.input|replace:' />':' checked />'}{else}{$customfield.input}{/if}

you'll just need to adjust the code to get the id value of the customfield you want to enable - you can get that value by looking at the source code in the browser...

 

<div class="form-group"> 
<label for="customfield9">Are you sure?</label>
<input type="checkbox" name="customfield[9]" id="customfield9" checked />
</div>

 

HSeR9St.png

Link to comment
Share on other sites

thanks for reply . but <div class="form-group">

<label for="customfield9">Are you sure?</label>

<input type="checkbox" name="customfield[9]" id="customfield9" checked />

</div>

 

this code where i will imput? i have 2 client custom field . 1 is text box another is tick box. are you sure? are showing also in text box. i don't want that

 

- - - Updated - - -

 

sorry now i understand thanks a lot

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