Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

wcmp-report-abouse-wrapper

WCMp Core

Resolved
Viewing 10 reply threads
  • Author
    Posts
    • #129108
      l.gan
      Participant

      Hello, please tell me, how can I move wcmp-report-abouse-wrapper an item to the end of the meta description?
      thanks for your plugin and support

    • #129145

      @l.gan, can you please share an image of the field so we can help you out accordingly.

    • #129255
      l.gan
      Participant
      This reply has been marked as private.
    • #129284

      Hello,
      Thank you for reaching out to us.
      As per the default flow of the WCMp report abuse functionality button is not there. May I know if you are using any 3rd party plugin to report abuse? Also it would be helpful if you can share the page link too.
      Waiting for your reply.

    • #129311
      l.gan
      Participant

      I am using woodmart theme and your plugin.
      have enabled report abuse in your plugin

    • #129313
      l.gan
      Participant
      This reply has been marked as private.
    • #129336

      as you are using a third-party plugin, hence you need to communicate with their team, as they know their code better.
      You can send them an email keeping us in the mail loop (contact@wc-marketplace.com), so we can also communicate with them regarding this.

    • #129435
      l.gan
      Participant

      Hi I’m using your plugin. And it is your plugin that adds the report abuse. This is the desired feature, but I just want to move it down the meta.

      It even has a wcmp-report-abouse-wrapper class.

    • #129436
      l.gan
      Participant

      even your WordPress support has a question about this feature

      https://wordpress.org/support/topic/how-to-remove-the-link-report-abuse/

    • #129567

      Hi , I have informed my team, will post with the code

    • #129608
      Anonymous
      Inactive

      Please follow this solution to remove that and you will be able to place the report abouse link after the meta.

      Please add the below functions in your functions.php of active child theme :

      add_action('woocommerce_share','add_report_abuse_link');
      	function add_report_abuse_link() {
              global $product;
              if (apply_filters('wcmp_show_report_abuse_link', true, $product)) {
                  $report_abuse_text = apply_filters('wcmp_report_abuse_text', __('Report Abused', 'dc-woocommerce-multi-vendor'), $product);
                  $show_in_popup = apply_filters('wcmp_show_report_abuse_form_popup', true, $product)
                  ?>
                  <div class="wcmp-report-abouse-wrapper">
                      <a href="javascript:void(0);" id="report_abuse"><?php echo esc_html($report_abuse_text); ?></a>
                      <div id="report_abuse_form"  class="<?php echo ( $show_in_popup ) ? 'report-abouse-modal' : ''; ?>" tabindex="-1" style="display: none;">
                          <div class="<?php echo ( $show_in_popup ) ? 'modal-content' : 'toggle-content'; ?>">
                              <div class="modal-header">
                                  <button type="button" class="close">&times;</button>
                                  <h2 class="wcmp-abuse-report-title1"><?php esc_html_e('Report an abuse for product ', 'dc-woocommerce-multi-vendor') . ' ' . the_title(); ?> </h2>
                              </div>
                              <div class="modal-body">
                                  <p class="field-row">
                                      <input type="text" class="report_abuse_name" id="report_abuse_name" name="report_abuse[name]" value="" style="width: 100%;" placeholder="<?php esc_attr_e('Name', 'dc-woocommerce-multi-vendor'); ?>" required="">
                                      <span class="wcmp-report-abuse-error"></span>
                                  </p>
                                  <p class="field-row">
                                      <input type="email" class="report_abuse_email" id="report_abuse_email" name="report_abuse[email]" value="" style="width: 100%;" placeholder="<?php esc_attr_e('Email', 'dc-woocommerce-multi-vendor'); ?>" required="">
                                      <span class="wcmp-report-abuse-error"></span>
                                  </p>
                                  <p class="field-row">
                                      <textarea name="report_abuse[message]" class="report_abuse_msg" id="report_abuse_msg" rows="5" style="width: 100%;" placeholder="<?php esc_attr_e('Leave a message explaining the reasons for your abuse report', 'dc-woocommerce-multi-vendor'); ?>" required=""></textarea>
                                      <span class="wcmp-report-abuse-error"></span>
                                  </p>
                              </div> 
                              <div class="modal-footer">
                                  <input type="hidden" class="report_abuse_product_id" value="<?php echo $product->get_id(); ?>">
                                  <button type="button" class="btn btn-primary submit-report-abuse" name="report_abuse[submit]"><?php esc_html_e('Report', 'dc-woocommerce-multi-vendor'); ?></button>
                              </div>
                          </div>
                      </div>
                  </div>							
                  <?php
              }
          }
      
      Copy

      ———————————————————————————————————————————————————
      ———————————————————————————————————————————————————
      Now as it has been noticied that we are also not able to remove the action(‘woocommerce_product_meta_start’), the last option is to create an override of meta.php template of woocommerce and steps are
      Please create an override template of meta.php
      below are the steps: –

      —- yourcurrentChildTheme/woocommerce/single-product/meta.php

      and inside it just remove the hook :-

      do_action(‘woocommerce_product_meta_start’)

      and save it

      ———————————————————————————————————————————————————
      ———————————————————————————————————————————————————

      Requirements were to place the Report Abuse after the product meta so Please add one hook in your functions.php as mentioned above (action named as ‘woocommerce_share’), which will be able to show the report abouse link after the product_meta and the share profiles.

      I hope the above steps will resolve your query.

      View this video for clarification : – Reply To: wcmp-report-abouse-wrapper

Viewing 10 reply threads

The topic ‘wcmp-report-abouse-wrapper’ is closed to new replies.