Skip Navigation

[Resolved] Filtros e una view

This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by Mauricio Gonzalez 3 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1610499
2020-05-04 11_46_44-Editar view _ Carmen Borja Online — WordPress.jpg

Tell us what you are trying to do?
No consigo que funcione un filtro por "etiqueta de producto"

[wpv-filter-start hide="false"]
[wpv-filter-controls]

<div class="caja-filtro-tit">
<div class="form-group">
[wpv-filter-search-box placeholder="introduzca el texto a buscar"][wpv-filter-spinner spinner="hidden link" class="indicador-progreso"][/wpv-filter-spinner]
</div>
<div class="btn-filt">
[wpv-filter-submit name="Buscar" class="btn-filtros-buscar"][wpv-filter-reset reset_label="Limpiar búsqueda" output="bootstrap" class="btn-filtros-reinicio"]</div>
</div>
<div class="form-group">
<label for="wpv-product_tag">[wpml-string context="wpv-views"]Etiquetas del producto[/wpml-string]</label>
[wpv-control-post-taxonomy taxonomy="product_tag" type="select" url_param="wpv-product_tag"]
</div>
[/wpv-filter-controls]
[wpv-filter-end]

------------------------------------------------

LOOP:

[wpv-layout-start]
[wpv-if evaluate="woo_has_product_subcategory() = 0"]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop wrap="2" pad="true">
[wpv-item index=1]
<div class="row ">
<div class="col-md-6">[wpv-post-body view_template="loop-item-in-categorias-y-productos"]</div>
[wpv-item index=other]
<div class="col-md-6">[wpv-post-body view_template="loop-item-in-categorias-y-productos"]</div>
[wpv-item index=2]
<div class="col-md-6">[wpv-post-body view_template="loop-item-in-categorias-y-productos"]</div>
</div>
[wpv-item index=pad]
<div class="col-md-6"></div>
[wpv-item index=pad-last]
<div class="col-md-6"></div>
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No se han encontrado productos[/wpml-string]
[/wpv-no-items-found]
[wpv-pager-nav-links output="bootstrap" first_last_links="true"]
[/wpv-if]
[wpv-if evaluate="woo_has_product_subcategory() = 1"]
[wpv-view name="colecciones-de-ropa-de-cama"]
[/wpv-if]
[wpv-layout-end]
<div class="dat-adic-cat-inf">
<p>[types termmeta='cat-descripcion'][/types]</p>
</div>

---------------------------------------------------------------------------------

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#1611775

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hola Mauricio

¿Qué quieres hacer?

Me parece que has creado una View mostrada en el archivo de categorías del producto.

Esta View muestra productos que pertenecen al archivo corriente ó que tienen la etiqueta Gris, Negro, ó Piedra (es decir que pueden tener otras categorías si tienen una de las etiquetas marcadas).

He probado que este funciona en mi propio sitio y funciona bien.

¿Qué problema tienes?

#1611819

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.