titodevera
Forum Replies Created
-
?Are you talking about
pwb-all-brands
shortcode?Thanks
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] how to put brands on shop pageUPDATE
New release 1.3 adds support for show the brand description in brand pageForum: Plugins
In reply to: [Perfect Brands for WooCommerce] how to put brands on shop pageHello.
1) For show product brands on product′s loop add this code to your “functions.php”
function pwb_show_brands_in_loop(){ global $product; $product_id = $product->id; $product_brands = wp_get_post_terms($product_id, 'pwb-brand'); if(!empty($product_brands)){ echo '<div>'; foreach ($product_brands as $brand) { echo '<span>'.$brand->name.'</span>'; } echo '</div>'; } } add_action('woocommerce_after_shop_loop_item', 'pwb_show_brands_in_loop', 6);
2) In WordPress, by default, you can configure a description for each term (for each brand in this case). Later you can show it in brand page adding this to your “functions.php”
function pwb_show_brand_desc(){ $queried_object = get_queried_object(); if(is_a($queried_object,'WP_Term') && $queried_object->taxonomy == 'pwb-brand'){ echo '<div>'; echo $queried_object->description; echo '</div>'; } } add_action('woocommerce_before_shop_loop', 'pwb_show_brand_desc', 9);
3) Carousel shortcode only works with brands. At this point there is not available a products carousel shortcode. I will considere it for next plugin release.
Thanks
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] change link of BrandHello. Go to “WooCommerce > Settings > Brands” and set your custom slug. Permalinks will be regenerated automaticly.
Thanks.
Hello realdoctorstu! Remember that is not a good idea modify the plugin code because you will lose all modification if you update the plugin.
The CSS editor is working well for me. Please use latest plugin version.
I will consider all other suggestions and fixes for a new version.
Thanks!
Forum: Plugins
In reply to: [Custom Twitter Widget (CTW) DEPRECATED!] Widget not showing in listHello johnselekta. This problem has solved on new 0.3 BETA version. Please update your plugin. Thanks for the report.
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Searching by date rangePerfect, it′s working now, thank you so much ??
Here′s my code (maybe help someone):
add_filter('uwpqsf_deftemp_query','insert_date_to_query','',3); function insert_date_to_query($args,$id,$getdata){ $fromArray = explode("/",$getdata['date']['from']); $toArray = explode("/",$getdata['date']['to']); if(sizeof($fromArray) == 3 && sizeof($toArray) == 3){ $args['date_query'] = array( 'after' => array( 'year' => $fromArray[2], 'month' => $fromArray[1], 'day' => $fromArray[0] ), 'before' => array( 'year' => $toArray[2], 'month' => $toArray[1], 'day' => $toArray[0] ), 'inclusive' => true ); } return $args; }