Forum Replies Created
-
AuthorPosts
-
Made my day!
Thanks a lot Ismael =) it works .For everyone who needs to setup the cart with more than one role:
add_action( ‘init’, ‘avia_woocommerce_cart_placement’, 10);
function avia_woocommerce_cart_placement()
{
$position = avia_get_option(‘header_position’, ‘header_top’) == “header_top” ? “ava_main_header” : “ava_inside_main_menu”;
if(avia_get_option(‘cart_icon’) == “always_display_menu”)
{
$position = “ava_inside_main_menu”;
if( strpos( avia_get_option(‘header_layout’), ‘bottom_nav_header’) !== false && avia_get_option(‘header_position’) == ‘header_top’)
{
$position = “ava_before_bottom_main_menu”;
}
}$user = wp_get_current_user();
$allowed_roles = array(‘your_custom_role1’, ‘your_custom_role2’, ‘your_custom_role3’);
if( array_intersect($allowed_roles, $user->roles ) ) {add_action( $position, ‘avia_woocommerce_cart_dropdown’, 10);}
}Have a nice day.
Kind Regards,
ChrisNo Idea, anyone?
Well ok.
I´ve got a CPT called Inserate. Taxonomy for this CPT is Inserate-Kategorie.
I create e new Post in this CPT i want to edit the breadcrumb to this:
http://cloud.sonch.at/index.php/s/nNjaGRNaWnLIwmGBut i get this one:
http://cloud.sonch.at/index.php/s/giwvocTxScU3uw2What is the issue? Maybe i ve forgot something? =)
Please help me with this issue.-
This reply was modified 9 years, 9 months ago by
chris1986.
-
This reply was modified 9 years, 9 months ago by
-
AuthorPosts