Hello – I am struggling here as I am not tech and don’t really understand php etc.
I want to hide the option to login here:https://sevenofnine.co.uk/store/shopping-cart/
I understand that you have added the ability to add define(‘MP_HIDE_LOGIN_OPTION’, true); to hide the login option on checkout in the free version but when I add this to the template-function at this point:
if ( is_user_logged_in() || define(‘MP_HIDE_LOGIN_OPTION’, true) ) {
$content .= ‘<p class=”mp_cart_direct_checkout”>’;
$content .= ‘‘.__(‘Checkout now »’, ‘mp’).’‘;
$content .= ‘</p>’;
and at this point
//don’t show if logged in
if ( !is_user_logged_in() && !define(‘MP_HIDE_LOGIN_OPTION’, true) && $editable) {
$content .= ‘<p class=”mp_cart_login_msg”>’;
$content .= __(‘Made a purchase here before?’, ‘mp’).’ ‘.__(‘Login now to retrieve your saved info »’, ‘mp’).’‘;
$content .= ‘</p>’;
nothing changes (or, when I first tried it, I got a fatal error). What am I doing wrong? Help very gratefully received.