• In the settings for the plugin the section ” Do not show cart on pages” only seems to function when I specify page ID #’s

    I have tried post, posts, and the root slug of where the posts go and nothing works.

    I am using the Storefront theme.

    Any help would be appreciated

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xootix

    (@xootix)

    Hello,

    Please add this snippet to your functions.php & then try.
    If you have a custom post type, add it in the settings.

    add_filter( 'xoo_wsc_is_sidecart_page', function( $isPage, $pages ){
                if( in_array( get_post_type() , $pages ) ){
                            $isPage = false;
                }
                xoo_wsc()->isSideCartPage = $isPage;
                return $isPage;
    }, 99, 2 );
    • This reply was modified 4 years, 9 months ago by xootix.
    Thread Starter Cold Realms Tech

    (@coldrealms65)

    That would be helpful if I was using custom post types, but I am not.

    I verified with “echo get_post_type( $post_id );” and the result was “post”

    As I said, when I add “post” to the list of items on the do not show it still shows. I have added a few pages by page ID and those work but even adding a post by post ID does not work.

    • This reply was modified 4 years, 9 months ago by Cold Realms Tech. Reason: spelling
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Help removing from posts’ is closed to new replies.