titodevera
Forum Replies Created
-
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Can’t upload brand logo after updateHi piermario.
Are you using iOS Safari? Try to update it to the last version or use another updated browser like Chrome or Firefox.
Thanks
- This reply was modified 7 years, 11 months ago by titodevera.
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Can’t upload brand logo after updateHi piermario.
It′s working well for me. It sounds like a js conflict. Disable all plugins (but WooCommerce and PWB), set the default WordPress theme and try again.
See the console of your browser for errors.
Thanks
Hi vangelder.
I think titles are not implemented correctly in your theme. Remember that you can contact theme author directly.
But… if you don′t mind editing the main
functions.php
…Replace this (line 1691 for Bridge 10.1.1):
//is current page some archive page? elseif (is_archive()) { $title = __('Archive','qode'); }
…with:
elseif (is_tax('pwb-brand')) { echo get_queried_object()->name; } //is current page some archive page? elseif (is_archive()) { $title = __('Archive','qode'); }
Thanks
- This reply was modified 7 years, 12 months ago by titodevera.
Hi valx7.
What PHP version are you using? If your are using PHP < 5.4 update it please.
Thanks
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Add brand description to Simple Product PageHi suarezlopezd.
Add this code to your
functions.php
.function pwb_custom_brand_description(){ $brands = wp_get_post_terms( get_the_ID(), 'pwb-brand' ); foreach( $brands as $brand ) { echo '<p>'.$brand->description.'</p>'; } } add_action( 'woocommerce_after_single_product', 'pwb_custom_brand_description' );
More info about single product page hooks here
??
Please update your plugin. New version 1.4.5 fix this bug.
Thanks ??
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Product ImageHi fro169.
You can change image size in settings but is possible that your theme resizes the image via css (so the image get distorted).
Can you provide us a public link of your website?
Thanks for using PWB
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] List of brands A-ZHello aleksk65.
You can use “pwb-all-brands” shortcode to display all brands in a separete paged page, but at this point there is no avaible any option for customize the brands order.
Shortcode usage:
[pwb-all-brands per_page="10" image_size="thumbnail"]
Thanks for using PWB
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] shortcode for custom-tabYou’re welcome! Don’t forget to leave a review if you like the plugin ??
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] shortcode for custom-tabHi!
1) Add this code to your
functions.php
for create the shortcode:function custom_pwb_brand_info() { if( is_product() ){ $brands = wp_get_post_terms( get_the_ID(), 'pwb-brand' ); foreach( $brands as $brand ) { echo '<p>'.$brand->description.'</p>'; } } } add_shortcode( 'custom_pwb_brand_info', 'custom_pwb_brand_info' );
2) Install a plugin for adding custom tabs. I suggest you YIKES Custom Product Tabs
3) Add the shortcode
[custom_pwb_brand_info]
to your custom tab??
- This reply was modified 8 years ago by titodevera.
- This reply was modified 8 years ago by titodevera.
Hi davidol.
PWB uses the
archive.php
template of your active theme. The tag surrounding the title depends of your current theme.You can modify the theme for change the “H” tag.
??
- This reply was modified 8 years ago by titodevera.
Hi davidol.
WordPress will try to use the following templates (in this order):
taxonomy-{taxonomy}-{term}.php taxonomy-{taxonomy}.php taxonomy.php archive.php index.php
So you shall be able to create a
taxonomy-pwb-brand.php
file in your theme for customize the template as you want.Remember that
pwb-brand
is a taxonomy created forproduct
custom post type. Logo and banner are setted as term meta.??
- This reply was modified 8 years ago by titodevera.
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Hide empty brandsHi abyssaquatics.
At this point is not possible to do it. Next version (1.4.4) will have an extra option for hide empty brands using “Display All Brands” shortcode.
Temporary hack:
1) Openwp-content/plugins/perfect-woocommerce-brands/classes/class-perfect-woocommerce-brands.php
2) Change'hide_empty' => false
for'hide_empty' => true
on line 80 (v 1.4.3)??
- This reply was modified 8 years ago by titodevera.
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Cateegory excludeHi sotos.
You can use
pre_get_posts
hook for modify the query and exclude the terms you want of a especific taxonomy (“product_cat” in this case).Add the code below to your
functions.php
:add_action( 'pre_get_posts', 'pwbc_exclude_product_categories' ); function pwbc_exclude_product_categories( $query ) { $categories_to_exclude = array( 'albums' );//this categories will be excluded (by slug) $queried_object = get_queried_object(); if( is_a( $queried_object, 'WP_Term' ) && $queried_object->taxonomy == 'pwb-brand' && is_archive('product') ) { //is brand page $tax_query = array( array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => $categories_to_exclude, 'operator' => 'NOT IN' ) ); $query->set( 'tax_query', $tax_query ); } }
??
Hi akide.
I can′t reproduce your problem, the option is working perfectly for me in a new WordPress installation with “Twenty Sixteen” theme installed.
Can you provide us more details about your installation? (WordPress and WooCommerce version, what plugins are installed, php version…)
Thank you!
- This reply was modified 8 years, 3 months ago by titodevera.