titodevera
Forum Replies Created
-
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Disable inheriting blog base permalinkHola mfcorral.
Gracias al filtro
register_taxonomy_args
puedes manipular los argumentos de cualquier taxonomía que registre otro plugin o tema.add_filter( 'register_taxonomy_args', function( $args, $taxonomy ){ if( 'pwb-brand' === $taxonomy && is_array( $args ) ){ $args['rewrite']['slug'] = '.'; $args['rewrite']['with_front'] = false; } return $args; }, 99, 2 );
Después de agregar el código no olvides actualizar tus permalinks
Ajustes > Enlaces permanentes > Guardar cambios
Con esto podrías pasar de
https://www.farmaciaadrio.com/marcas/bicame/
ahttps://www.farmaciaadrio.com/bicame/
Un saludo
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] wp_query for brandsHi matstillo.
Brands are terms of the
pwb-brand
taxonomy, so you need to useget_terms
instead ofWP_Query
.$brands = get_terms( 'pwb-brand', array( 'hide_empty' => false) ); foreach( $brands as $brand ) { $attachment_id = get_term_meta( $brand->term_id, 'pwb_brand_image', 1 ); $logo = wp_get_attachment_image_src( $attachment_id, 'full' ); echo 'Brand ID: ' . $brand->term_id . '<br>'; echo 'Brand name: ' . $brand->name . '<br>'; echo 'Brand logo: ' . $logo[0] . '<br>'; }
And this for retrieving the brands of each product inside a custom WP_Query:
$the_query = new WP_Query( array( 'post_type' => 'product', 'posts_per_page' => -1 ) ); if ( $the_query->have_posts() ) { while ( $the_query->have_posts() ) { $the_query->the_post(); $brands = wp_get_object_terms( get_the_ID(), 'pwb-brand' ); var_dump( $brands ); } wp_reset_postdata(); }
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] No Sidebar on Single ProductHi onsitewp!
You can try with something like this…
if( is_a( $queried_object, "WP_Term" ) && $queried_object->taxonomy == "pwb-brand" || is_product() ){ get_sidebar(); }
??
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] No funciona con paginaciónHola baltardesign.
En primer lugar gracias por el reporte, estoy tabajando en la nueva versión, revisaré esto también por supuesto.
Un saludo
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] how get all brands?do_shortcode('[pwb-all-brands per_page="10" image_size="thumbnail" hide_empty="false" order_by="name" order="ASC" title_position="before"]')
More info about shortcodes here
??
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Brand Name in Yoast SEO ProductSolved ??
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Anidar marcasDe nada! Un saludo ??
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Show brand name in email order product listHere is more information about WooCommerce template structure
1) Edit
email-order-details.php
for adding a new column header (th element in markup) to the table markup (column “Brand”)
2) Editemail-order-items.php
for adding a new column (td element in markup) that display the brands of the current product (you can usewp_get_object_terms
)More info:
– wp_get_object_terms
– Brands are terms of a custom taxonomy called “pwb-brand”Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Anidar marcasPuedes (y sería lo más adecuado) descargar el sitio e instalarlo en local en tu equipo para hacer esas pruebas, así localizar el problema y tirar de ahí para poder solucionarlo… Aunque tiene toda la pinta de ser un problema del theme que estás utilizando, también puedes consultar al desarrollador del theme y/o mirar si hay alguna actualización del mismo que solucione este problema…
- This reply was modified 7 years, 5 months ago by titodevera.
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Anidar marcasHola arcabuzzer.
No consigo reproducir tu problema, acabo de comprobar que en una instalación limpia con Storefront (aparentemente) funciona a la normalidad.
Te recomiendo hacer estas pruebas:
1) Cambiar momentáneamente a uno de los themes por defecto de WordPress y probar si pasa o no.
2) Deshabilitar todos los plugins (menos WooCommerce y PWB) y probar si pasa o no.Haz esas pruebas y nos cuentas los resultados.
Un saludo
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Show brand name in email order product listHi leowys.
I think you can override
email-order-details.php
andemail-order-items.php
templates.For getting the brand of each product you can use something like
wp_get_object_terms( $product_id, 'pwb-brand' )
Thanks for using PWB! ??
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Anidar marcasHola arcabuzzer.
De acuerdo, revisaré tu caso detenidamente en cuanto me sea posible, estamos en contacto.
Un saludo
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Dropdown filter remember current filterHi yabgu.
At this point, you simply cannot do it through a reliable method. I will considere include this improvement for the next plugin release.
Thanks for using PWB
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Anidar marcasHola arcabuzzer.
?Estás utilizando el shortcode
pwb-all-brands
? ?dónde te ocurre esto de que solo te muestra una marca y no todas las marcas hijo??Sería viable que nos facilitases un enlace público de tu sitio para poder revisarlo?
Gracias, un saludo
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] translation woocommerce multilanguageHi alexdex.
What multilanguage plugin are you using?