Support » Plugin: WC Marketplace » How to edit “Report Abuse” submission form

  • Resolved merchreadydesigns

    (@merchreadydesigns)


    I have updated the “Report Abuse” label via the WCMp Settings (frontend tab). Can the text on the submission form be edited via the admin? If not, what’s the best way to change?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author WC Marketplace

    (@dualcube)

    @merchreadydesigns Thanks for reaching WCMp Support!!

    In order to edit the submission form, you have to override follows wcmp hook –
    add_action('woocommerce_product_meta_start', array($WCMp->product, 'add_report_abuse_link'), 30);

    Where would would make that change?

    Plugin Author WC Marketplace

    (@dualcube)

    @merchreadydesigns Goto your theme’s function.php and use this hook “woocommerce_product_meta_start” to remove our action and then add your own action and override the abuse label using “add_report_abuse_link“.

    Let us know if you have any further query.

    I appreciate your help, but still not sure how to make this change. I understand how to find the file, but don’t know what needs to be done to use the hook, remove the action, and add a new action.

    Plugin Author WC Marketplace

    (@dualcube)

    Here is a code snippet, that might assist you with it :

    global $WCMp;
    remove_action('woocommerce_product_meta_start', array($WCMp->product, 'add_report_abuse_link'), 30);
    add_action('woocommerce_product_meta_start', 'add_your_function', 30);
    function add_your_function(){
    // customize WCMp add_report_abuse_link() functionality
    }

    The method you mentioned is beyond my capabilities.

    Is it possible to edit a language file to change the placeholder text within the message? I tried changing two files, but it doesn’t seem to take any effect.

    Plugin Author WC Marketplace

    (@dualcube)

    @merchreadydesigns if you want to change the text of the label, then you can defiantly change the text using plugin like Loco translate.

    However, if you want to add additional functionality, in that case, you have to write some custom coding.

    Let us know if you have any further query.

    I’ve updated using LocoTranslate but it isn’t changing on the product page. Is there anything we need to do to activate this?

    Nevermind, we got it working.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.