Get all categories
You can use the wp_list_categories function with the taxonomy argument product_cat: <ul class=”categories”> <?php wp_list_categories( ‘taxonomy=product_cat&title_li=’ ) ?> </ul>
You can use the wp_list_categories function with the taxonomy argument product_cat: <ul class=”categories”> <?php wp_list_categories( ‘taxonomy=product_cat&title_li=’ ) ?> </ul>
get_terms does exactly what it says, it retrieves all terms of the specified taxonomy Retrieve the terms in a taxonomy or list of taxonomies. There are a couple of functions that you can make use of here. You nedd to follow the links, each functions is well documented with examples. You just need to choose … Read more
In your particular case you need to change your CSS: .widget ul li a { color: black; }
Your issue here likely is the action ‘publish_product’ not firing – it only runs when you first create a product, or set a products status from Draft or Pending Review to Publish. Be aware that wp_set_object_terms will overwrite any other existing category data with the last parameter set to false, in your code those products … Read more
What you’re after is called Rich Snippits which is structured data on your web page that tells Google specific information about your products. See https://developers.google.com/structured-data/rich-snippets/products A plugin like http://authorhreview.com/plugins/wp-rich-snippets/ might be what you’re looking for or you could modify your theme to add the right markup to make rich snippits work.
After doing some research on google and woocommerce code i found the ans of the what i what. i have use following function for to send the mail to the user once order have been generated using the custom code in wordpress woo-commerce. WC()->mailer()->emails[‘WC_Email_Customer_Processing_Order’]->trigger($orderId);
You can use the following function and filter hook function filter_woo_cart_quantity($output, $cart_item, $cart_item_key){ return ‘<span class=”quantity”>’ . sprintf( ‘%s × Quote’, $cart_item[‘quantity’] ) . ‘</span>’; } add_filter(‘woocommerce_widget_cart_item_quantity’,’filter_woo_cart_quantity’,10, 3);
Variable products might not be what you’re looking for in this case. You can better use product bundles since you’re combining products. (Plug-in available through woothemes).
I will explain it to you without code at the moment, but in things need to be done: Before you render your category html, check its position (depth) from its current category upwards to the parent category. If the level is 2, then add the style you want to post_class (post_class($array)), otherwise do not add. … Read more
Here’s your answer: /%category%/%postname%/ But if you have a lot of pages and posts and a top ranked website, I suggest using the following structure which is fully optimized and server friendly: /%post_id%/%postname%/