Skip Navigation

[Resolved] custom shortcode not working on conditional

This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.
Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

This topic contains 0 replies, has 1 voice.

Last updated by jelle-jacobd 3 years, 11 months ago.

Assisted by: Jamal.

Author
Posts
#1917295

Ik having some trouble getting this wpv-conditional statement to work.

Materiaal armatuur
: [show-product-attribute attribute="pa_materiaal-armatuur"][wpv-conditional if="('[show-product-attribute attribute="pa_materiaal-armatuur"]' eq '' )"][wpv-post-taxonomy type="pa_materiaal-armatuur" format="name"][/wpv-conditional]

This part: [wpv-post-taxonomy type="pa_materiaal-armatuur" format="name"]

Should only be shown if the first part is empty or has no value: [show-product-attribute attribute="pa_materiaal-armatuur"]

Hat I'm trying tot is only show the value from a variation for a specific attribute if available. If not shown the parent data for this attribute.