Skip Navigation

[Resolved] If then statement product attributes on custom datasheet page

This support ticket is created 3 years, 3 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

Tagged: 

This topic contains 19 replies, has 2 voices.

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

Assisted by: Jamal.

Author
Posts
#1937663

Hi Jamal,

Thanks a lot for your efforts! Looks perfect. This is exactly what I needed and saves me a lot of time repeating the same if/then statement. Really nice! So I need to reproduce line 1-6 for the other attributes If I understand correctly?

Br, Jelle

#1937711

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello Jelle,

I believe so, you need to reproduce it for other attributes. Keep in mind that this will only work for variations. Do not use it in a view where you expect single products, only use it on the view where you expect variations.

All the best,
Jamal

#1937733

Hi Jamal,

Oke, thanks! I will do that. It's already a separate view so this should work out fine.

Have a nice day and thanks a lot for help and patience!

Br, Jelle

#1937735

My issue is resolved now. Thank you!

#1945477

Hi Jamal,

Sorry, no need to check.. I resolved the issue myself:)

Thanks, Jelle

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