help page

To have incompatible selections completely hidden, instead of greyed-out, please use the following code

———————————

add_filter( ‘woocommerce_component_options_hide_incompatible’, ‘wc_cp_component_options_hide_incompatible’, 10, 3 );
function wc_cp_component_options_hide_incompatible( $hide, $component_id, $composite ) {
return true;
}

————–Add this code in function.php file at the bottom, just above the comment lines. The path for the function file is Appearance-Editor->on the right hand side bar look for the file name Theme Functions—————

 

#Additional added css

 

/*
You can add your own CSS here.

Click the help icon above to learn more.
*/
.sub-menu li a:hover {
color: grey !important;
}
#create_ticket_body_guest{visibility:visible!important;}
.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a {
padding: 1.618em 1em;
color: #fff !important;
}
.overlay.animated {
min-height: 500px !important;
}
.button {
color: #fff;
}
.cart-contents {
color: #fff !important;
}
.sub-menu li a {
color: #fff !important;
}
.amount {
color: grey;
}
.site-header-cart .cart-contents .count {
color: #fff;
font-size: 0.875em;
font-weight: 300;
opacity: 0.5;
}
a.cart-contents,.site-header-cart .widget_shopping_cart a{color:#fff!important;}
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {color:#fff;
}

 

 

Exclude Category from Shop:

/* Exclude Category from Shop*/

add_filter( ‘get_terms’, ‘get_subcategory_terms’, 10, 3 );

function get_subcategory_terms( $terms, $taxonomies, $args ) {

$new_terms = array();

// if a product category and on the shop page
if ( in_array( ‘product_cat’, $taxonomies ) && ! is_admin() && is_shop() ) {

foreach ( $terms as $key => $term ) {

if ( ! in_array( $term->slug, array( ‘YOUR CATEGORY NAME IN RUNNING LATER’ ) ) ) {
$new_terms[] = $term;
}

}

$terms = $new_terms;
}

return $terms;
}

 

****Shipping Order

 

<?php
// credit: ChromeOrange – https://gist.github.com/ChromeOrange/10013862
add_filter( ‘woocommerce_package_rates’ , ‘patricks_sort_woocommerce_available_shipping_methods’, 10, 2 );
function patricks_sort_woocommerce_available_shipping_methods( $rates, $package ) {
// if there are no rates don’t do anything
if ( ! $rates ) {
return;
}

// get an array of prices
$prices = array();
foreach( $rates as $rate ) {
$prices[] = $rate->cost;
}

// use the prices to sort the rates
array_multisort( $prices, $rates );

// return the rates
return $rates;
}