BuddyDev

Search

Buddyblog pay per post question

  • Participant
    Level: Guru
    Posts: 885
    Tosin on #50298

    Hello

    I would like to ask if I can remove this code below after updating to the latest version to pay per post addon.

     add_action( 'bblpro_ppp_before_add_to_cart', function () {
        if ( WC()->cart->is_empty() ) {
            return;
        }
        WC()->cart->empty_cart( true );
    } ); 
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2936
    Ravi on #50301

    Hello Tosin,

    Yes, You can remove the code. With the latest version of the plugin. We have a setting that allows the site admin to enable forcefully emptying the cart before adding post product. You can find this setting under the Edit form screen.

    Regards
    Ravi

You must be logged in to reply to this topic.

This topic is: not resolved