Skip Navigation

[Resolved] Problem with conditional and custom field

This support ticket is created 4 years, 5 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 10 replies, has 2 voices.

Last updated by Shane 4 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#1375549

Hi there.

I have a problem.

I have a conditional in a product page to show a custom field. I have the following code:

[wpv-conditional if="( $(wpcf-tiempo-de-envio) ne '' )"]Aquí va el texto [types field='tiempo-de-envio'][/types][/wpv-conditional]

This code only shows Aquí va el texto BUT don't show the value of [types field='tiempo-de-envio'][/types]

However if I use [types field='tiempo-de-envio'][/types] out of the conditional the value is showed.

You can see the problem here: hidden link -> Aquí va el texto [types field='tiempo-de-envio'][/types] 3 meses (above to the add to cart button)

I don't know what is the problem. Can you help me?

Thanks!

#1375663

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi David,

Thank you for getting in touch.

From what I can see on your site, the shortcode isn't being rendered at all.

Would you mind allowing me to have admin access tot he site to check on this for you ?

The private fields have been enabled for your next response.

Thanks,
Shane

#1375677

hidden link

You can see where is located the code here: hidden link

#1375835

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi David,

Thank you I was able to log in but I wasn't able to find the section where you added the types shortcode.

Could you let me know exactly where you I should so I can check this out for you?

Thanks,
Shane

#1376267

Hi again Shane.

If you click in the link you will go where is the code.

Youu can see where is the condictional in -> Apariencia -> Diseños personalizados -> Tiempo de envío

If you edit any product you'll see a custom field called Campos adicionales -> Tiempo de envío.

Thanks!

#1376335

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

HI David,

Thank you.

This seems to be an issue with Astra.

Would it be possible for me to get a copy of your site to test further here?

Please let me know.

Thanks,
Shaen

#1376515

Yes. I Install duplicator and i create a backyp. DO you download from the website?

#1376717

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi David,

Yes I will download it directly from the site.

#1376769

Thank You Shane

#1377527

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi David,

I was able to replicate the issue in a fresh site with a copy of astra.

I've went ahead and escalated this to our 2nd tier team for further debugging.

I'll post an update as soon as I get any.

Thank you for the patience.

#1403323

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi David,

Our team has done a thorough investigation on the issue on our side with the Astra Pro theme.

However the issue can't be fixed on our side and has to be addressed by the Astra team.

What was recommended is that you open a ticket with the astra support team and to let them know about this issue.

Thanks,
Shane

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