• Resolved apartee

    (@apartee)


    Hi all
    Thanks to the great support from you all I am nearly up and running for the upcoming season.

    The final thing I am struggling with:
    When people ‘checkout’ or ‘reserve’, they get a contact form.
    On this form, the fields ‘County (PPState)’ and ‘Country’ are mandatory.

    I tried to make this not-required in the css (display hidden). It hides the fields but they stay mandatory.

    I can’t figure out how to change this or which other setting in WordPress or in another plugin is handling this.

    Someone who can help me out with this?

    Thanks,
    Peter

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter apartee

    (@apartee)

    Hi all
    Just to let you know I found the solution.
    I deleted the mandatory fields in the file
    ‘wp-content/plugins/stageshow/include/stageshowlib_simulator_gateway.php’

    Hi Peter

    Thanks very much – I was just about to ask the same question.

    Just a note that I found I had to modify a different file:
    wp-content/plugins/stageshow/stageshowplus_trolly.php

    In my case, I want only name, email and phone, and no address at all, so I just block commented five lines like so:

    	$clientFields = array(
    		'saleFirstName' => __('First Name', $this->myDomain),
    		'saleLastName'  => __('Last Name', $this->myDomain),
    		'saleEMail'     => __('EMail', $this->myDomain),
    /* 		'salePPStreet'  => __('Address', $this->myDomain),
    		'salePPCity'    => __('Town/City', $this->myDomain),
    		'salePPState'   => __('County', $this->myDomain),
    		'salePPZip'     => __('Postcode', $this->myDomain),
    		'salePPCountry' => __('Country', $this->myDomain),
     */		'salePPPhone'   => __('Phone', $this->myDomain),
    	);

    Your post put me on track for what could have been a frustrating wild goose chase.

    Cheers,
    Graham

    Thread Starter apartee

    (@apartee)

    Hi Graham
    You’re welcome ??

    Hi all,

    Just be aware that if you update the plugin these changes may disappear. Just making you aware.

    Hi @weazel91

    Yes, I am aware of that, but thanks for the reminder!

    Cheers,
    Graham

    Hi Chris

    I realise now that it is you with whom I’m discussing discount codes in the other thread. In a similar vein, I think it would be good to store in a table which contact fields are optional and which should be hidden completely, and also customised labels for the fields – for example, users in the USA might like “State” and “Zip code” instead of “County” and “Postcode”.

    Cheers,
    Graham

    Thread Starter apartee

    (@apartee)

    Hi all
    Nice question, Graham!
    I would also prefer to know where I can change the labels or translation for some entries: simulator, completed, reserved, etc.

    Greetz
    Peter

    Hi Peter

    Yes, I agree! It would be very easy to implement different languages if there were a resources table with the per-language translations for the text of each button and form label, etc.

    Best wishes,
    Graham

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Make ‘County’ and ‘Country’ not required’ is closed to new replies.