Yes, Possible. Need some custom code. You have to use our filter hook.
See following file: https://github.com/codersaiful/woo-product-table/blob/master/includes/enqueue.php
There is a filter hook wpto_localize_data
and by this hook, you able to change checkout URL to your desired link.
https://wooproducttable.com/plugin-api/wpto_localize_data/
See there is an example also.
You can use following code:
if( !function_exists( 'wpt_custom_change_redirect_link' ) ){
function wpt_custom_change_redirect_link( $WPT_DATA ) {
$WPT_DATA['checkout_url'] = 'https://your-desired-link.com/here';
return $WPT_DATA;
}
}
add_filter( 'wpto_localize_data', 'wpt_custom_change_redirect_link' );
Add that code to your themes/functions.php file at the bottom, or you can use any code snippet plugin for that.
Looking forward to hearing your response.
Thanks,
Saiful
Thread Starter
dglite
(@dglite)
Thks a lot for your great support!
Thread Starter
dglite
(@dglite)
Hi: in reply to your ticket, I had tried and the link is hard coded on the plugin so was not possible, pls check…
https://prnt.sc/nrOuIINLNn3v
How to make it work not editing the plugin code?
Thread Starter
dglite
(@dglite)
Hi: here you have a bigger picture for you to check..
https://prnt.sc/nrOuIINLNn3v
for larger screenshot please see this http://bit.ly/3EpEEFr
Hello,
Do not edit the core plugin codes. An update will remove all of that.
Use hooks to make any changes. In your case it’s ‘wpto_localize_data’;
You just have to change $WPT_DATA[‘checkout_url’] variable value. https://prnt.sc/BDrfQcf_yS3y
Note: your image is not clear, please check.
Thanks
Thread Starter
dglite
(@dglite)
Hi, ok thks for the tip. On this link the image is bigger…
https://we.tl/t-NVCvqS9tYq
Thread Starter
dglite
(@dglite)
Hi, how are you?. We had added the code on functions.php on child theme, as seen here…
https://prnt.sc/oXOVgfMZeC1k
But not working. Any suggestion?
Thks!
you did not replace the link!!
Take a look – https://prnt.sc/-lzCNzZNV3eq
Thread Starter
dglite
(@dglite)
Hi: thks for your great support…
“you did not replace the link…” = yes but it does not redirect even to the non replaced link. I mean, there is not rediection at all. Any other code we could check?.
Thks a lot!
Thread Starter
dglite
(@dglite)
Hi!. Finally the fix was done by editing a code on this file…
/wp-content/plugins/woo-product-table/inc/handle/fragment.php
We will take care of it on futue updates.
Thks!
😉