Jump to content

Order Form Customization


Herza.ID

Recommended Posts

I have a question...

1. So Im selling VPS and dedicated Server and within the order form, I dont think the NS1 Prefix and NS2 Prefix are necessary to be there. So Im wondering how to remove this section.

2. How to automatically capitalize the first letter in Personal Information form

Hope someone can help... Thanks...

Link to comment
Share on other sites

Hello,  Follow the steps below.

templates > orderforms > configureproduct.tpl 

The following code will remove ns1 and ns2. The content of the form will be ns1 and ns2.

   <!-- NS1 && NS2 -->
   <div class="col-md-6 d-none">
    <div class="form-group">
      <label for="inputNs1prefix">{$LANG.serverns1prefix}</label>
        <input type="text" name="ns1prefix" class="form-control" id="inputNs1prefix" value="ns1" placeholder="ns1">
     </div>
     </div>
    <div class="col-md-6 d-none">
     <div class="form-group">
      <label for="inputNs2prefix">{$LANG.serverns2prefix}</label>
       <input type="text" name="ns2prefix" class="form-control" id="inputNs2prefix" value="ns2" placeholder="ns2">
     </div>
     </div>
  <!-- NS1 && NS2 //-->

You will need css to capitalize the first letter. 

Example:

<input type="text" class="form-control" style="text-transform: capitalize";>

Hope these help.

Link to comment
Share on other sites

4 hours ago, Msonliy said:

templates > orderforms > configureproduct.tpl 

The following code will remove ns1 and ns2. The content of the form will be ns1 and ns2.


   <!-- NS1 && NS2 -->
   <div class="col-md-6 d-none">
    <div class="form-group">
      <label for="inputNs1prefix">{$LANG.serverns1prefix}</label>
        <input type="text" name="ns1prefix" class="form-control" id="inputNs1prefix" value="ns1" placeholder="ns1">
     </div>
     </div>
    <div class="col-md-6 d-none">
     <div class="form-group">
      <label for="inputNs2prefix">{$LANG.serverns2prefix}</label>
       <input type="text" name="ns2prefix" class="form-control" id="inputNs2prefix" value="ns2" placeholder="ns2">
     </div>
     </div>
  <!-- NS1 && NS2 //-->

I have tried this, but it doesnt recognize the ns1 and ns2 when I hide it. But when I remove the <!-- and --> it works. Thats why Im asking in the community

Link to comment
Share on other sites

<div class="col-md-6" style="display:none;"> 
    <div class="form-group">
      <label for="inputNs1prefix">{$LANG.serverns1prefix}</label>
        <input type="text" name="ns1prefix" class="form-control" id="inputNs1prefix" value="ns1" placeholder="ns1">
     </div>
   </div>
<div class="col-md-6" style="display:none;">
     <div class="form-group">
      <label for="inputNs2prefix">{$LANG.serverns2prefix}</label>
       <input type="text" name="ns2prefix" class="form-control" id="inputNs2prefix" value="ns2" placeholder="ns2">
    </div>
</div>

You're welcome. Can you try again?

Link to comment
Share on other sites

  • 1 month later...

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