• Resolved beatR

    (@codepage)


    hi there!

    firstable, fantastic plugin. im sure it will be of much uses. it just helped my find a way to solve a certain task much faster.

    one question: it seems it’s not running in the same session. if im on the checkout page for example, it shows the cart as empty even though it has one product.

    but if i add a product via console, the cart in the console does have this product.

    is there some setting im missing? would be cool to be able to work as the current visitor…

    thanks thanks

    https://www.ads-software.com/plugins/wp-php-console/

Viewing 1 replies (of 1 total)
  • Plugin Author Fulvio Notarstefano

    (@nekojira)

    Hi codepage

    thanks for your comments feel free to leave a review of this plugin if you find useful in your WordPress worfklow

    I think it’s a bit tricky with Session because WordPress captures the session before this library does (it starts as a plugin after all)

    there have been discussions about this on GitHub, between me and Sergey, the original author of PHP Console

    Probably you can try registering PC global and passing the session there, but it’s likely it will be a separate one:


    PhpConsole\Helper::register(); // it will register global PC class
    // ...
    PC::debug($var, 'tag');
    PC::tag($var);

    I’m not sure how to dig into this and right now I am a bit short of time

    if you find something please let me know here or on GitHub

    cheers

Viewing 1 replies (of 1 total)
  • The topic ‘not same session?’ is closed to new replies.