shawty - 1. edit templates/orders_form.tpl and if you want to disable require field for example sLastName then delete from input this: alt="simple" 2. edit core/orders.php and find function checkFields(). If You want to delete sLastName then delete this: && throwStrLen( $aForm['sLastName'] ) > 2
If You want delete delivery and payment then delete in this function that:
If You want delete delivery and payment then delete in this function that: if( isset( $aForm['sPaymentCarrier'] ) ){ $aExp = explode( ';', $aForm['sPaymentCarrier'] ); if( isset( $aExp[0] ) && isset( $aExp[1] ) ) $sPrice = $this->throwPaymentCarrierPrice( $aExp[0], $aExp[1] ); } else{ return false; }
In templates/orders_form.tpl find HTML code where is deliveryAndPayment and delete this <fieldset id="deliveryAndPayment"> <legend>$lang[Delivery_and_payment]</legend> $sPaymentCarriers </fieldset>
In order print templates/orders_print.tpl delete this: <tr class="summaryDelivery"> <th colspan="3">$lang[Delivery_and_payment]: $aOrder[sCarrierName], $aOrder[sPaymentName]</th> <td id="carrierCost">$aOrder[sPaymentCarrierPrice]</td> </tr>
This all works! But!
1. edit templates/orders_form.tpl and if you want to disable require field for example sLastName then delete from input this: alt="simple"
I didn't find this for delivery i payment method in this file.. I deleted "delivery and payment" from form. But script still wants that I choose delivery and payment method. May be it is still a require field?
shawty
2008-05-12 09:21
So after I filled in First name,Last name (all this fields, in this form). It still ask to check ruquire fields.
Where it ask? In JavaScript when small window display you errors or in PHP after You click "send" and page will reload?
shawty
2008-05-13 10:31
I deleted this code. Error after I click "send". When get back what I deleted i choose delivery method, everything is ok.
But now... I changed and deleted everything like you said. "Delivery and payment" fields has gone. But after I file in all rest require fields and click "send order", page is reloading and still asking me to fill in fields. But I has done it already.
I've followed all the above but after I click on "Send Order", it shows the message to ask me to go back and fill in all the required fields. Where did it go wrong?
The same result happened that after I click on "Send Order", it shows the message to ask me to go back and fill in all the required fields. Where else goes wrong?
lovevs
2008-06-20 13:44
HI anyone got any other solutions ? I would be really grateful cos I'm really lost on this ...