How to add the order form

Angel36

No avatar

2009-04-13 21:15

How can I delete the company, telephone and comment option in the order form of quick cart v.3.3?

I searched in de order_php but these are the only options to remove;

  throwStrLen$aForm['sFirstName'] ) > 1
      
&& throwStrLen$aForm['sLastName'] ) > 2
      
&& throwStrLen$aForm['sStreet'] ) > 1
      
&& throwStrLen$aForm['sZipCode'] ) > 2
      
&& throwStrLen$aForm['sCity'] ) > 2
      
&& throwStrLen$aForm['sPhone'] ) > 2
      
&& checkEmail$aForm['sEmail'] )
      && isset( 
$sPrice )
      && ( ( isset( 
$aForm['iRules'] ) && isset( $aForm['iRulesAccept'] ) ) || !isset( $aForm['iRules'] ) )



The phone I can remove... but...

I can not find for example: && throwStrLen( $aForm['sCompany'] ) > 2 and && throwStrLen( $aForm['sComment'] ) > 2

So, when I go to templates/orders_form.tlp and I remove for example

<div id="company">
            <
label for="oCompany">$lang[Company]</label>
            <
input type="text" name="sCompanyName" value="$aUser[sCompanyName]" maxlength="100" class="input" onblur="saveUserData( this.name, this.value )" id="oCompany" />
          </
div>



Then this will not work correct because in the order_php I can not find anything about the company option. After I try to fill in the order form on my website I get still the message "Please fill in all required fields".

Hopefully my question is clear :-)

» Quick.Cart v3.x

Angel36

treewood (OpenSolution)

Avatar: treewood

2009-04-14 07:51

Comment and company is not required field. dont delete this fields. Use CSS to hide this fields like "display:none;"

Angel36

No avatar

2009-04-14 09:13

Thank you Treewood for your answer.

I searched in templates/default.css but I do not know how what you mean and how to change it. Can you show me an example of the whole line/code and what I must change to disable the commant and company requiered field?

Then,

I have under question about the order form. I did a test and I filled in all requierd fields and even the not requierd fields company and comments when I click on send I still get the message "Please fill in all required fields".

How is this possible?

Angel36

Angel36

No avatar

2009-04-14 09:14

under = an other

Angel36

beholder

Avatar: beholder

2009-04-14 14:40

Angel36, have you set up your couriers/payments correctly? In my experience, when you forget or delete these, the ordering process will not proceed and will display exactly that message.

Treewood, we should fix this in the next version, because then the couriers/payments table does not appear on the order form (that is a correct behavior) but still the order cannot be sent.

Angel36

No avatar

2009-04-14 17:03

You are right beholder... that was the problem. I did delete the payment option. This I have change now and everything works fine.

Thank you!!!

Angel36

Back to top
about us | contact