* Change the checkout button URL.
*
* @param string $url The checkout URL. Default is wc_get_checkout_url().
*/
function my_prefix_cartpops_checkout_url( $url ) {
$url = esc_url( get_permalink( get_page_by_title( ‘Checkout’ ) ) );
return $url;
}
add_filter( ‘cartpops_checkout_button_url’, ‘my_prefix_cartpops_checkout_url’, 10, 1 );
?>
found this code om plugin doc.
Placed in Plugin custom js but not working