• Resolved adamsmithdlc123

    (@adamsmithdlc123)


    I’ve been trying to gain access to a url which adds a product to cart: https://www.mywebsite.com/cart/?add-to-cart=1465. There are some products which I need users to be able to pay for without logging in.

    Ive tried the following but it does not work:

    function my_forcelogin_bypass( $bypass ) {
    if ( is_page(‘/cart/?add-to-cart=1465’) ) {
    $bypass = true;
    }
    return $bypass;
    }
    add_filter(‘v_forcelogin_bypass’, ‘my_forcelogin_bypass’, 10, 1);

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Bypass an add-to-cart page’ is closed to new replies.