• Resolved martinphoenix

    (@martinphoenix)


    hi all,

    Love the plug in. How do we make the first option on the drop down a blank so it has to be selected and not default to the first store?

    I tried setting it as ‘None’ under Appearance > Customisations > WC Pickup Store > Default store but it still defaulted to the first on my list.

    So i added a fake store with the name — Select — and defaulted to that but it isnt going to be treated as a required field either and can still be missed when people checkout

    thanks

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Keylor Mendoza

    (@keylorcr)

    Hey @martinphoenix

    The blank mandatory option is only visible for guest users. Once a client completes an order and creates an account, the next order will be showing the previous chosen store and the blank option disappears.

    https://prntscr.com/1094l4i

    Regards

    Thread Starter martinphoenix

    (@martinphoenix)

    Hi Keylor, thanks for the response.

    Not sure i explained it well.

    In a new browser, ordering the first time, as if i was a client of this business, I don’t get offered a store at all for my order to be delivered too.

    https://prnt.sc/10brxrx

    If I am logged in as an existing client, it defaults to my previous selection which is a nice touch but i may have moved house also and need a different location so defaulting it to — Select — each time forces the purchaser to select an option.

    thanks

    Martin

    Thread Starter martinphoenix

    (@martinphoenix)

    thank you i have worked out a few issues and it is going well. How can we change two minor wording things.

    1. On the Drop down it says ‘Select a store’ i am not using it for stores but Schools
    2. The message that pops up ‘You must either choose a store or use other shipping method’ how can i edit this also pls.

    thanks very much

    Martin

    Plugin Author Keylor Mendoza

    (@keylorcr)

    Hey @martinphoenix

    With the first comment, maybe you are using your store with the configuration of hiding the shipping options until the address is added to the Checkout. Once a postcode is added to your store on the Checkout, shipping options including Store Pickup are displayed. https://prntscr.com/10der53

    Then, if you want to change the label “Select a store” you can use the snippet I’m adding here, but the validation message cannot be changed by code.

    /**
     * Filtering first option for store select
     * @version 1.6.1
     */
    function kmchild_wps_store_select_first_option() {
    	return __('Select a School', 'kmchild');
    }
    add_filter('wps_store_select_first_option', 'kmchild_wps_store_select_first_option');

    Hope it helps

    Keep in touch, regards!

    Thread Starter martinphoenix

    (@martinphoenix)

    Thanks @keylorcr for the fast response,

    yes correct on this one

    With the first comment, maybe you are using your store with the configuration of hiding the shipping options until the address is added to the Checkout. Once a postcode is added to your store on the Checkout, shipping options including Store Pickup are displayed. https://prntscr.com/10der53

    Second one – code didnt help with the changing the drop down message and email received by site owner doesnt include the selected store. Is this because the Delivery option isnt selected?

    https://prnt.sc/10dg4gn

    ‘but the validation message cannot be changed by code.’ – can this be changed anywhere as not all ‘Stores’ are actually stores, more locations (Schools/clubs in this case).

    Appreciate the great support

    thanks

    Thread Starter martinphoenix

    (@martinphoenix)

    ok i worked out the delivery option not coming across in the email.

    just the Select Your Store on drop down and message in error when a Store not selected. Any help appreciated

    thanks

    Plugin Author Keylor Mendoza

    (@keylorcr)

    Hey @martinphoenix

    Please check out the new 1.6.3 release. This one includes a filter to change the validation text wps_notice_store_validation and also you can choose the main label to be displayed as the first option in the store picker on the Checkout from the Customizer option.
    https://ps.w.org/wc-pickup-store/assets/screenshot-18.jpg?rev=2500651

    Hope it helps

    Regards.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘set field as compulsory’ is closed to new replies.