I want to use it to add a small warning about certain products that ship from 3rd party vendors or with a different shipping providers to appropriate product pages.
If not, I may go with a backup plan and create a new product tag just for those items instead.
]]>Thanks.
]]>We have a plugin which is causing some issues with WCFM, (specifically upload script on new product page and other pages). There is a similar kind of issue with BuddyPress but there is a conditional tag available bp_is_my_profile()
which helps to bypass it.
Is there any conditional tag like that for Vendor Dashboard Page?
]]>which conditional tag I use to make a widget visible in the list:
/hotels/
but not in each of the publications:
/hotels/light-heaven-hotel/
only in the list!
Thanks!
]]>I would like to know if there is a conditional tag that I can use, just like is_shop or is_product_category?
]]>I added a tag ‘n-relacionar’ to the posts I do not want to display the related posts from jetpack, and also added this code to my functions.php
function jetpackme_no_related_posts( $options ) {
if ( has_tag( 'n-relacionar' ) ) {
$options['enabled'] = false;
}
return $options;
}
But it’s still showing the jetpack related posts. Does anyone know why this code isn’t working?
Thanks
]]>GOAL: Show the Product Search Form at the top of ONLY the “Parts” category and it’s subcategories.
Right now, I’m using the following code in my woocommerce.php template, and it only shows the search form on the top category, Parts, and not on any of it’s subcategories:
<?php
if ( is_product_category(76) || cat_is_ancestor_of(76, get_query_var( 'cat' )) ) {
get_product_search_form();
echo '<hr>';
}
?>
I also tried this:
<?php
if (is_product_category( 'parts' ) || cat_is_ancestor_of( 76, get_queried_object()->term_id) ) {
get_product_search_form();
echo '<hr>';
} else {
//
}
?>
and various other things.
Anyone have any idea how to do this?
thanks!
]]>thanks!
]]>add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 );
function child_manage_woocommerce_styles() {
//remove generator meta tag
remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) );
//first check that woo exists to prevent fatal errors
if ( function_exists( 'is_woocommerce' ) ) {
//dequeue scripts and styles
if ( !is_woocommerce() && !is_shop() && !is_product_category() && !is_product_tag() && !is_product() && !is_cart() && !is_checkout() && !is_account_page() && !is_wc_endpoint_url() ) {
wp_dequeue_style( 'woocommerce-layout' );
wp_dequeue_style( 'woocommerce-smallscreen' );
wp_dequeue_style( 'woocommerce-general' );
wp_dequeue_script( 'wc-add-to-cart' );
wp_dequeue_script( 'wc-cart-fragments' );
wp_dequeue_script( 'woocommerce' );
wp_dequeue_script( 'jquery-blockui' );
wp_dequeue_script( 'jquery-placeholder' );
}
}
}
However I am not able to identify the taxonomy or category pages with these conditional tags. If I deactivate the add_action call the taxonomy page works fine as it doesn’t dequeue the styles and scripts.
Is there an other conditional tag to identify taxonomy or product category pages?
]]>