• Resolved danielm60

    (@danielm60)


    Hi Guys,

    Does anyone know how to alter the array for this plug in from Square compass ?
    Basically it works a treat but they have set it up for American users ie: Org name, Zip code, State, etc so All I want to do is change the form to read Post Code, County etc:
    The dbase field stuff can remain the same … just need the output changed

    I would go back to the developer but no one has heard from them since 2010!

    Can any one help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • stvwlf

    (@stvwlf)

    Looking at the plugin code, open file functions.php
    Near the top is
    $feilds = array(

    in that section further down (line 30) you will find
    "bizdir_zip"=>array("title"=>"Org. Zip Code","autofill"=>"GeoInfo","maxlength"=>100, "type"=>"text"),

    To change what is displayed for zip, change
    "title"=>"Org. Zip Code"
    to
    "title"=>"Org. Post Code"

    and for State
    "title"=>"Org. State/Province"
    to
    "title"=>"Org. County"

    and so forth for the others you want to change..
    Keep a copy of your changed file outside of the plugin’s folder because when the developer updates the plugin it will delete your changed version and replace it with the version from the plugin update.

    Thread Starter danielm60

    (@danielm60)

    Hey stvwlf,

    Great work, thanks for that …. tried and test … works a treat:-)
    One other thing which you may know, and this is probably more complicated, is at the moment the same plugin only shows the Name of the company, which is a link and a company description.
    Ultimately I would like the results to show:
    Company name
    web address
    email
    phone
    Address

    Any ideas ?

    Many thanks in advance

    stvwlf

    (@stvwlf)

    Hi

    From what I am seeing in the plugin code the directory should already be displaying email / phone when either have been entered. The URL is already included as the link in the company’s name. It supposedly lists as a line by itself too.

    In terms of adding additional fields or changing the plugin’s code I have to draw the line on forum support. It takes too much time to do that and then test and debug.

    Thread Starter danielm60

    (@danielm60)

    Hi,
    I thought so too but it doesn’t show in the response page.
    only the Company name and description comes up.

    Okay that’s fair enough … totally understand and happy I got this far with it.

    I’ll have to get some help with it somewhere else.

    Thanks for your help though 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Business Directory for WordPress’ is closed to new replies.