Sauter la navigation

[Résolu] Display woocommerce product weight on single product page

This support ticket is created Il y a 4 mois. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Ce sujet contient 1 réponse, a 1 voix.

Dernière mise à jour par Clay Il y a 3 mois et 4 semaines.

Assisté par: Minesh.

Auteur
Publications
#2794781

Tell us what you are trying to do?

I'm trying to display the product size and weight on my single product template.

For dimensions I;ve got this (which works): Dimensions: [types field='product-length'][/types]" L x [types field='product-width'][/types]" W x [types field='product-height'][/types]" H

I need to do something similar for weight.

Is there any documentation that you are following?

No

Is there a similar example that we can see?

What is the link to your site?

lien caché

#2794825

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

What if you enable the "_weight" field from hidden custom fields section:

More info:
- https://toolset.com/course-lesson/using-third-party-hidden-fields/

And later you should try to display the weight as: [types field='_weight'][/types]

Does that helps?

#2794926

Great. Thanks!