This support ticket is created hace 7 años, 1 mes. 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.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
I'm using WC + Toolset and Toolset Starter theme.
I need to display the SKUs of all products, including variations. This means when I'm on the product page, I have some variations and need to display dynamically the SKU of the variation when a specific variation is selected.
Currently, I have defined _sku as and external field for Toolset and have integrated the shortcode [wpv-post-field name='_sku'] in my product template.
The only thing which is displayed is the SKU of the generic product, but the SKU of the variable products are never displayed.
Is there something special to do for this ?
Regards
Pat
Hello. Thank you for contacting the Toolset support.
Well - Toolset does not filter the WooCommerce SKUs, so I suggest you should first check with minimum installation without Toolset plugins and with default theme.
I created test site and with variable product I've added SKU and tried to display just besides the product title and its working.
=> enlace oculto
I suspect the product SKU is not setup or variable product is not configured correctly.
Thanks for your support.
I'm not sure but when I go to your test site, the SKU does not change when I try to navigate with the different varaitions?
The upper part with the title is always the same : Woman top boots === SKU-1
For info, I have attached 2 screenshot with different options.
The image changes dynamically (it's also the case onmy site) but not the SKU !
Let me know
Regards
Pat
Far much better now !
Last point, with your shortcode, the display is :
UGS : product reference
Is there a way to suppress the UGS : text ?
Regards
Pat
Understood. Thanks.
Perhaps for the future, it could be good to have a mecanism like [wpv-woo-product-meta meta="sku"] that gives only the product sku ... and the same for the other info included in themeta.
Regards
Pat