How to remove zip code and city from order form ?

aeonsv

Avatar: aeonsv

2011-12-15 18:38

Hallo
I want to remove zip code and city from order form ?
How i can this ?

» Quick.Cms v3.x

Makaron

Avatar: Makaron

2011-12-16 19:20

Both fields are not requred so You can just edit file tempaltes/orders_form.tpl and delete code:

          <div id="zipCode">
            <
label for="oZipCode">$lang[Zip_code]</label>
            <
input type="text" name="sZipCode" value="$aUser[sZipCode]" maxlength="20" class="input" onblur="saveUserData( this.name, this.value )" id="oZipCode" alt="simple" />
          </
div>
          <
div id="city">
            <
label for="oCity">$lang[City]</label>
            <
input type="text" name="sCity" value="$aUser[sCity]" maxlength="40" class="input" onblur="saveUserData( this.name, this.value )" id="oCity" alt="simple" />
          </
div>


Also edit file templates/orders_print.tpl and delete code:

    <dt class="zipCode">$lang[Zip_code]:</dt><dd class="zipCode">$aOrder[sZipCode]</dd>
    <
dt class="city">$lang[City]:</dt><dd class="city">$aOrder[sCity]</dd>

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

boboo

Avatar: boboo

2011-12-16 19:52

And after that, when sending order, you will get the message:
"Please fill in all required fields" and the order will not be executed.
The fields are still in "required fields query".
In /core/orders.php find the function: checkFields
and remove the mentioned fields from the "if" statement.

qc-plugins.kimla.de

Makaron

Avatar: Makaron

2011-12-19 15:45

Oh right.. these fields were required. Sorry for mistake.
@boboo: Thanks for vigilance.

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

Back to top
about us | contact