Comments 20Andrea started the conversationNovember 6, 2023 at 11:53amHello! 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,214WebWizards repliedNovember 6, 2023 at 11:57amHi 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 shortcodeKind regards,Stefan Sign in to reply ...
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?
Hi there,
It would be possible to add this PHP code snippet to your site:
(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