please i need an help.
i’m triyng to add some extra fieds in Locations made by simple input text and checkboxes.
I now that is not suggested to change core files, but i need to personalized SLP.
Managed to modify the files:
and of course adding my desired field in MySql Table store_locator
i’ve inserted my own text input fields with no problem, and i’m ablle to add and edit data.
My problems comes with checkboxes as ‘0’ and ‘1’ values. No problem to INSERT or UPDATE db values when i check the box to write ‘1’ in db. But if i uncheck a box in edit mode, i cannot write ‘0’ in db, so i cannot uncheck value.
i tryed with something like:
$query = sprintf("UPDATE " . $wpdb->prefix ."store_locator " . "SET sl_r_accinf = '0' WHERE sl_id NOT IN ()";
but nothig happen.
Can you help me solving this MY problem?
Thanks in advance.
- The topic ‘[Plugin: Google Maps via Store Locator Plus] Adding extra fields in Locations’ is closed to new replies.