Public Ticket #3515854

Refund Request Button

Closed
Comments
45 Tickets 21
Andrea started the conversation 3 years ago on November 6, 2023 at 11:53am

Hello! 

Is there a way to add a Refund Request Button manually on my custom order review page?

Do you have some hooks or shortcodes for this?

2,762
KingsPlugins replied 3 years ago on November 6, 2023 at 11:57am

Hi there,

It would be possible to add this PHP code snippet to your site:

global $marketkingpro_public;
add_action( 'your_hook_here', array($marketkingpro_public, 'marketking_refund_button'));

(and replace your_hook_here with a hook)


This requires that the hook passes $order as the first parameter. 

If it helps, this is the function our plugin uses for that refund button: https://pastecode.io/s/68pigw44 


I can also try to make modifications to that if needed, and/or create a custom shortcode


Kind regards,

Stefan

Sign In