Hide hard coded shopping cart

I created a new role subscriber2. It has the identical capabilities of subscriber but I need the differentiation for different plugins to work.

I only want a subscriber2 role of the CURRENT SITE- to be able to see the Marketpress shopping cart that is hard coded at the top of the framemarket theme because I do not have global cart enabled and it confuses buyers. I pasted this in to gridmarket’s header.php:

<div id=”header-wrapper”>

<div id=”header”>


if (current_user_can(‘read’:wink:)


<?php if ( class_exists( ‘MarketPress’ ) ) {

$settings = get_option(‘mp_settings’:wink:;

if (!$settings) {


<div id=”cart-contents”><?php _e( ‘Cart:’, ‘framemarket’ ) ?> <span><?php echo sprintf(__(‘%s item(s)’, ‘framemarket’ ), mp_items_count_in_cart()); ?></span></div>

<div id=”mp-cartsmall”>

<div id=”toggle”>

<?php _e( ‘View Cart’, ‘framemarket’ ) ?>

<?php _e( ‘Hide Cart’, ‘framemarket’ ) ?>





1) But subscribers from other blogs can see the cart and I don’t want them to unless they are subscribers of the current blog. What code should I be using?

2) it is a paste of code from elsewhere:slight_smile: Did I insert it the statements properly ?