how to delete the phone number field from order form? v3.6

dero

Avatar: dero

2011-10-13 14:38

I want to delete the phone number field from the order form.I used a few instructions for older versions of quick.cart to delete this field, but without a real result.


The field itselfs dissappears by using this instructions, but when I click to the button for continue the order, nothing happens.There is also no error displayed or anything else.

I should not have found all tags in the code to turn off this function.Is there something special for v3.6 ??
I hope somebody can help me with it.

thanks

» Quick.Cart v3.x

Makaron

Avatar: Makaron

2011-10-13 18:18

Solution from this topic should work: http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=5822

I helped? Like it: www.facebook.com/makwebpl

dero

Avatar: dero

2011-10-13 21:29

sorry, i read this thread before and i had try to do it this way but it doesn't work.
Now i try it again, to be sure that i did not do any mistake, and the result is - it still doesn't work.

I have deleted this part from the orders_form.tpl

<div id="phone">
<label for="oPhone">$lang[Telephone]</label>
<input type="text" name="sPhone" value="$aUser[sPhone]" maxlength="40" class="input" onblur="saveUserData( this.name, this.value )" id="oPhone" alt="simple" />
</div>

and this from the orders.php

&& throwStrLen( $aForm['sPhone'] ) > 2

after deleting this parts, i had updated the opened site to exclude that any old files be used by the clipboard.

then the phone field is missing but when i fill out the other fields, accept the conditions and click on the button below to complete the ordering, nothing happens.
I also try the action in different browsers, firefox and internetexplorer.both don't work.

Guido

Avatar: Guido

2011-10-17 16:13

I only deleted this:

Orders_form:
<div id="phone">
<label for="oPhone">$lang[Phone]</label>
<input type="text" name="sPhone" value="$aUser[sPhone]" maxlength="40" class="input" onblur="saveUserData( this.name, this.value )" id="oPhone" />
</div>


Orders_print:
<dt class="phone">$lang[Telephone]:</dt><dd class="phone">$aOrder[sPhone]</dd>

And it works fine!

Guido

Guido

Avatar: Guido

2011-10-17 17:34

If you are using orderstatus in admin also delete from templates > admin > orders.tpl this code:

</td><td class="phone">
$aData[sPhone]

Guido

Avatar: Guido

2011-10-17 18:12

If you are using orderstatus in admin also delete from templates > admin > orders.tpl this code:

</td><td class="phone">
$aData[sPhone]

AND ALSO the code between:

<!-- telephone start -->
<!-- telephone end -->

And I forgot: delete code in core > orders.php:
&& throwStrLen( $aForm['sPhone'] ) > 2

But you already knew this.

Pfff..

Back to top
about us | contact