Order details v2.x

meridklt

No avatar

2009-06-25 23:13

I have searched on here for nearly two hours, but unable to find the answer. So sorry if it has been asked many times.

Where do I go to and how do i change the fields in Order Details from mandatory to allow them to be left empty.

» Quick.Cart v2.x

Makaron

Avatar: Makaron

2009-06-26 09:53

There are two ways of protection: JavaScript and PHP. First You have to edit file templates/orders_delivery.tpl and You will find this code:

<script type="text/javascript">
<!--
  if( !
aCheckFormDelivery ){
    var 
aCheckFormDelivery =  Array(
      Array( 
'sFirstName' )
      ,Array( 
'sLastName' )
      ,Array( 
'sStreet' )
      ,Array( 
'sZipCode' )
      ,Array( 
'sCity' )     
      ,Array( 
'sTelephone' )
      ,Array( 
'sEmail''email' )
      ,Array( 
'iCourier''simple''$lang[Choose_courier]' )
    );
  }
//-->
</script>


If You want to make not required field Street so You have to delete line:

,Array( 'sStreet' )


Now PHP protection. You have to edit file core/orders.php and find function checkOrderFields() and delete in the same case line:

&& checkLength$aForm['sStreet'], )

meridklt

No avatar

2009-06-26 21:46

Thank you very much for your help Makaron.

Goosfraba

No avatar

2009-09-11 17:24

Now Can you tell me the same thing .. how can i make the option for carrirs and payment to be allowed to be left empty. this solution works on QC2.x but i use QC3.x so the files which you said do not exist any more
cane you help me ?

Makaron

Avatar: Makaron

2009-09-11 18:08

There was solution for this problem on this forum. Try to search for it.

Goosfraba

No avatar

2009-09-12 09:55

I tried .. i Check all the topicks one by one and i found this one but is for QC2.x thats why i wrote here to move the topick on the top to see the difrences the file templates/orders_delivery.tpl do not exist any more ... and the php code in the core/orders.php is diferent than the one you show here so if you have a solution just post it here please. I will try to search again for a solution in the topicks.

Goosfraba

No avatar

2009-09-12 10:05

http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=6339
this is the only thing which is some how connected with the order form but does not solve my problem. The other topics are all so connected with the order form but do not explayn ho can i completely remove the option for carriers and payment... I don't need them 'cause we manage this by phone or extra e-mails... when i delete all the carriers and payment options from the admin panell apperars the problem with not selected fields... actualy there aren't any unselected on the form which are visible. So i think i must remove something from a function but I don't now where and what

beholder

Avatar: beholder

2009-09-13 22:56

Hi, I could probably help you with quite easily, this but it would require online FTP access to your webshop or an offline shop zipped and sent via email. Please find my contacts on following page and don't hesitate to write me:
http://www.tigerware.sk/easyplugins/

Back to top
about us | contact