• Everything works fine after installing the plugin. However, WordPress is unable to reach customer module and sessions.

    Any child block which is of type "customer/account" just doesn’t show. The strange thing is that the parent block is rendered ok. This happens, for example, with a mini account block in the header. Changing the type to "core/template" fixed it.

    Yet, customer session is still not accessed. Mini cart shows right number of items, so sessions are definitely accessed. Yet, for the "customer/account" block, WordPress always shows user as logged out.

    Indeed, trying to get the customer singleton always returns false:

    Mage::getSingleton('customer/session')->isLoggedIn()

    How can the customer session be accessed then?

    https://wordpress.org/plugins/magento-wordpress-integration/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bowlins

    (@bowlins)

    FURTHER EDIT:

    I’ve tried to re-create the mini-account block as a full block without children to see if I got some sort of error.

    After creating the following

    <block type="customer/account" name="mini_account" as="mini_account" template="customer/account/mini-account.phtml"/>

    I call the block with

    <?php the_block('mini_account') ?>

    But I get the error message “block not found”.

    However when I change layout to

    <block type="core/template" name="mini_account" as="mini_account" template="customer/account/mini-account.phtml"/>

    Block is found and rendered. Yet, again without user logged in.

    Plugin Author jamesckemp

    (@jamesckemp)

    Odd, have you tried setting your cookie domain and path in Magento?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin not getting customer session/singleton (but getting all others)’ is closed to new replies.