Disable Store Name Position for vendors

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 5 reply threads
  • Author
    Posts
    • #80624
      kaloomee
      Participant

      Hi
      1 – I would like to disable the option for vendors to select the position of store name
      At present they are able to select
      At Header
      Or In banner
      I would like to set so that all vendors store name only appears in ‘At header’
      I have checked admin settings but can only see what to set as the default
      Any help much appreciated

    • #80798
      WCFM Forum
      Keymaster

      Hi,

      Please add this line to your site –

      add_filter( 'wcfm_is_allow_store_visibility', '__return_false' );

      Thank You

    • #80838
      kaloomee
      Participant

      Thank you for snippet but this code also removes all field options below ‘Store Name Position’ :-
      Products per page
      Hide Email from Store
      Hide Phone from Store
      Hide Address from Store
      Hide Map from Store
      Hide About from Store
      Hide Policy from Store

      I would just like to hide ‘Store Name Position’ option and make ‘Store Name Position’ as ‘At Header’ only

    • #81609
      WCFM Forum
      Keymaster

      Hi,

      OK, remove that code and use this –

      add_filter( 'wcfm_marketplace_settings_fields_visibility', function( $visibility_fields, $store_id ) {
      	$visibility_fields = wcfm_hide_field( 'store_name_position', $visibility_fields );
        return $visibility_fields;
      }, 50, 2 );

      Thank You

    • #81643
      kaloomee
      Participant

      Thank you, Works wonderfully

    • #81764
      WCFM Forum
      Keymaster

      Great … you are welcome 🙂

Viewing 5 reply threads
  • The topic ‘Disable Store Name Position for vendors’ is closed to new replies.