Posts

Showing posts with the label woocommerce

How to show product catalog in woocommerce based on date descending order?

You can show product catalog in woocommerce based on date descending order. For showing the product based on date descending order or asc order you have to use a filter in your child theme or current theme. Open funcation.php in your theme. You can find funcation.php in the root of your theme. Update this code and this code will replace the soft order of product to based on date descending order. -------------------- add_filter('woocommerce_default_catalog_orderby', 'custom_default_catalog_orderby');   function custom_default_catalog_orderby( $sort_by ) {     return 'date desc'; }

How to Show taxonomies terms on front as colorized or color circle checkboxes in woocommerce woocommerce-products-filter plugin?

Image
You can Show taxonomies terms on front as colorized or color circle checkboxes in woocommerce woocommerce-products-filter plugin? How to show circle instead of name of color in woocommerce woocommerce-products-filter plugin. If you want show color attributes color in circle you in woocommerce-products-filter plugin. You do not need buy an extension. Just do what i say: Open this folder wp-content/plugins/woocommerce-products-filter/views/html_types Open this file from above folder checkbox.php Go to line no 111 and 226. replace this line: echo $term['name']; TO           if($term['taxonomy']=='pa_color'){                             $ars = get_term_meta($term['term_id']);                             $colorp = $ars['color_value'][0];                             ?>                             <style type="text/css">                                 .pcirclecolor {                                     height: 30px;                  

How to get color code in woocommerce color attribute by slug in wordpress

You can get color code in wordpress woocommerce color attribute by slug in wordpress. You can use this code wordpress plugin woocommerce-products-filter also By using just simple code. First you need to get the $term['term_id']. This can be array Or object $term->term_id according to your page Use this code then for array: $color_code_array = get_term_meta($term['term_id']); $colorp = $color_code_array['color_value'][0]; // #000111 Use this code then for Object: $color_code_array = get_term_meta($term->term_id); $colorp = $color_code_array['color_value'][0]; // #000111 Now you print echo $colorp; // #000111

How to Rename additional information, description, reviews tab woocommerce in porto theme

Renaming Tabs Use the following snippet to rename tabs. You just create a child theme if you know how to create or just edit the current theme in function.php Add this code at the end /** * Rename product data tabs */ add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 ); function woo_rename_tabs( $tabs ) { $tabs['description']['title'] = __( 'More Information' ); // Rename the description tab $tabs['reviews']['title'] = __( 'Ratings' ); // Rename the reviews tab $tabs['additional_information']['title'] = __( 'Product Data' ); // Rename the additional information tab return $tabs; }

Themify WooCommerce Product Filter shows category disabled if we redirect a page then we choose another category we can not back to previous category.

Themify WooCommerce Product Filter shows category disabled if we redirect a page then we choose another category we can not back to previous category. To solve this problem. go to: /themify-wc-product-filter/includes/class-wpf-form.php Go to line no. 1111 Then replace this line $read_only = 'readonly'; to $read_only = ''; Themify WooCommerce Product Filter - now to enable the filter radio button when a category chooses.