WCMp Core
-
AuthorPosts
-
-
October 16, 2021 at 2:40 PM #129108l.ganParticipant
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 -
October 18, 2021 at 1:27 PM #129145NerdySupportExpert MoumitaKeymaster
@l.gan, can you please share an image of the field so we can help you out accordingly.
-
October 19, 2021 at 9:41 PM #129255l.ganParticipantThis reply has been marked as private.
-
October 20, 2021 at 3:51 PM #129284MVX Support NinjaKeymaster
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. -
October 21, 2021 at 1:29 AM #129311l.ganParticipant
I am using woodmart theme and your plugin.
have enabled report abuse in your plugin -
October 21, 2021 at 1:29 AM #129313l.ganParticipantThis reply has been marked as private.
-
October 21, 2021 at 2:39 PM #129336MVX Support NinjaKeymaster
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. -
October 22, 2021 at 10:40 PM #129435l.ganParticipant
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.
-
October 22, 2021 at 10:47 PM #129436l.ganParticipant
even your WordPress support has a question about this feature
https://wordpress.org/support/topic/how-to-remove-the-link-report-abuse/
-
October 25, 2021 at 7:05 PM #129567MVX Support NinjaKeymaster
Hi , I have informed my team, will post with the code
-
October 26, 2021 at 2:27 PM #129608AnonymousInactive
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">×</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
-
-
AuthorPosts
The topic ‘wcmp-report-abouse-wrapper’ is closed to new replies.