WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • I want to allow blank fields in the checkout form to pass through
  • Print
Pages: [1]   Go Down

Author Topic: I want to allow blank fields in the checkout form to pass through  (Read 4401 times)

Offline seanie_morris

  • Posts: 301
  • Gender: Male
I want to allow blank fields in the checkout form to pass through
« on: September 09, 2015, 04:25:48 PM »
Hi,

I successfully modded the checkout form for some fields, but the one last hurdle I have is where a field is blank, I want to let it pass. Now, my coding is not so great, but I do know that from line 31 in save_form.php with:
Code: [Select]
// Check for blank fields
foreach ($_POST as $field => $value) {
// Except of these fields...
if ($field != 'cust_tax_no' && (strpos($field, 'company') === false)) {
if ($value == '') {
$blanks[] = $field;
}
}
}
is the key. I want to add the fields 'child_names' and 'zip' to be allowed if they are blank. Can anyone help me please?

Seanie.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • I want to allow blank fields in the checkout form to pass through
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2