Totally Remove some info from vendor dashboard (and store)

WCMp Core

Totally Remove some info from vendor dashboard (and store) Open

Viewing 9 reply threads
  • Author
    Posts
    • #85205
      tasos
      Participant

      Hi.

      Since there is no option to hide them from backend how can we totally remove below info from vendor dashboars so he must not add them
      – Phone
      – Address (all fields)
      – Timezone
      – Store Location

      Thank you

    • #85367
      sumit singh
      Moderator

      Hi, override shop-front.php template in your active theme and remove the following lines to hide above fields.
      line :- 158 – 163
      :- 170 – 361

    • #85390
      tasos
      Participant

      Thank you. However we need to hide them from backend not in front end.

    • #85423
      tasos
      Participant

      i see these options in vendors users in backend
      Hide address in frontend
      Hide phone in frontend
      Hide email in frontend
      Hide description in frontend

      can we have these by default checked?

    • #85460
      sumit singh
      Moderator

      Hi, add the following code in your functions.php of current active theme :-

      add_filter('wcmp_vendor_fields', 'vendor_fields_checked');
      function vendor_fields_checked( $array ) {
      	$array['vendor_hide_address']['dfvalue'] = 'Enable';
      	$array['vendor_hide_phone']['dfvalue'] = 'Enable';
      	$array['vendor_hide_email']['dfvalue'] = 'Enable';
      	$array['vendor_hide_description']['dfvalue'] = 'Enable';
      	return $array;
      }
      Copy
    • #85504
      tasos
      Participant

      Strangely they are all checked but still can see the details in frontend store.

      Can we total remove
      – Address (all fields)
      – Timezone
      – Store Location
      from vendors dashboard
      keep only the phone

      but not show it in frontend?

    • #85507
      MOUMITA Haldar
      Participant

      @ Tasos,
      override shop-front.php template in your active theme and remove line 170 – 361 to hide phone number field from vendor’s dashboard.

    • #85512
      tasos
      Participant

      maybe i wasn’t clear enough

      Remove or hide the elements below from vendors dashboard
      – Address (all fields)
      – Timezone
      – Store Location
      from here
      /dashboard/storefront/

      and disable phone from front end store of vendor. (his front page store)

    • #85513
      tasos
      Participant
      This reply has been marked as private.
    • #85677
      This reply has been marked as private.
Viewing 9 reply threads

Please LOGIN to reply to this topic

COVID-19 Outbreak: WCMp team is supporting business affected by coronavirus

Read the Message Buy at Slashed Price