[wcmp_vendorslist] details

WCMp Core

Resolved
Viewing 13 reply threads
  • Author
    Posts
    • #146353
      louKyLouk
      Participant

      Hi,
      I would like to hide some content from [wcmp_vendorslist], like the address and the phones number of my vendors.
      Do you have any solutions ?

      Thanks

    • #146398

      @louKyLouk, we will definitely help you out.

      Can you please share a scrrenshot to explain the changes are you looking for so we can assist you accordingly.

    • #146402
      louKyLouk
      Participant

      The changes I’m looking for are described by the red arrows on the screenshot.

    • #146414
      louKyLouk
      Participant

      To add more precision, I’d tried to comment this code :

      <div class=”vendor-header-icon”>
      <div class=”dashicons dashicons-phone”>
      <div class=”on-hover-cls”>
      <p><?php echo esc_html($vendor_phone); ?></p>
      </div>
      </div>
      <div class=”dashicons dashicons-location”>
      <div class=”on-hover-cls”>
      <p><?php echo $vendor->get_formatted_address() ? $vendor->get_formatted_address() : __(‘No Address found’, ‘dc-woocommerce-multi-vendor’); ?></p>
      </div>
      </div>
      </div>

      in this file : dc-woocommerce-multi-vendor/templates/shortcode/vendor-list/content-vendor.php. But there was no effect.
      So I was looking for a filter or an action to be able to do what I want.

      Thanks for your help

    • #146416

      @louKyLouk, can you please explain the flow you are looking for, so we can assist you.

    • #146417
      louKyLouk
      Participant

      As I said in the first post :
      “Hi,
      I would like to hide some content from [wcmp_vendorslist], like the address and the phones number of my vendors.
      Do you have any solutions ?

      Thanks”

      I want to hide or complety remove what I show you on the screenshot that I already sent to you.
      I’m talking about the page who is listing all my vendors, built with [wcmp_vendorslist].

      This page is showing all the address and phones numbers of my vendors, exactly what I want to remove or hide.

    • #146427

      Hi, in order to remove them add this CSS in the style.css of your theme :

      .mvx-store-list.mvx-store-list-vendor .mvx-vendorblocks .mvx-vendor-details .vendor-heading .vendor-header-icon {
          display: none!important;
      }
      .mvx-vendor-details .mvx-detail-block {
          display: none;
      }
      Copy
    • #146489
      louKyLouk
      Participant

      Hi, thanks for your help, but about this solution I already found it. And this is not the convenient solution because here, with your proposed solution with CSS, the vendors informations are still accessible on the page source code (with inspect for exemple).

      What I would like is to remove these from the source code, that’s why in a precedent post I talked you about this file :
      dc-woocommerce-multi-vendor/templates/shortcode/vendor-list/content-vendor.php

      Here, in this file, the source code of this page. How can I modify directly this file ? Maybe with “add_filter” or “add_action” ?

    • #146513

      @louKyLouk, you can simply override content-vendor.php template and remove those lines.

      Make sure to override the template inside the child theme, so this will not be removed after updating the theme.

    • #146532
      louKyLouk
      Participant

      Yes, Thanks, but as I said before. I already tried to override this template by comment some line inside this file, but nothing happened. Do you have any idea about why, is it the right file ?

    • #146542

      @louKyLouk, please do share a temporary admin, ftp access so we can check.
      While sharing the access, don’t forget to mark the response as private.

    • #146570
      louKyLouk
      Participant

      Hi,
      Your solution finally works I was doing something in the wrong way.
      My initial problem is solved.

      Bye

    • #146577

      @louKyLouk, thanks for the update

    • #192230

      It’s been a while and we have not heard back from you . We presume your query is solved now . So we are closing this thread . If you face issue in future please open a new thread .

Viewing 13 reply threads

The topic ‘[wcmp_vendorslist] details’ is closed to new replies.