Hi.
Is possible to show the shopping cart in heading area only to registered users?
This topic has 2 replies, 2 voices, and was last updated 10 years, 11 months ago ago by Jack Richardson
Hi.
Is possible to show the shopping cart in heading area only to registered users?
Hello,
You have to edit the file header-structure-*.php in the directory wp-content/themes/royal/headers (you should select the file due to the header type you’re using).
Find the code
<?php if(class_exists('Woocommerce') && !etheme_get_option('just_catalog') && etheme_get_option('cart_widget')): ?>
<?php etheme_top_cart(); ?>
<?php endif ;?>
and replace it with this one:
<?php if(class_exists('Woocommerce') && !etheme_get_option('just_catalog') && etheme_get_option('cart_widget') && is_user_logged_in()): ?>
<?php etheme_top_cart(); ?>
<?php endif ;?>
Best regards,
Jack Richardson.
You must be logged in to reply to this topic.Log in/Sign up