[Resuelto] A content template placed in the long description of a product produces an infin
Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.
Problem:
The issue here is that the customer is getting an infinite loop error on his product page.
Solution:
The issue because of the [wpv-woo-display-tabs] that is calling for the post body but in the post body you are calling for the body again with a separate content template.
This would work if you call another post in the post body like this [wpv-post-body id='35284' view_template="jfcontrols-standard-descripcion-larga"]
But calling itself will result in an infinite loop.
This support ticket is created hace 6 años, 11 meses. 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.
A content template placed in the long description of a product produces an infinite loop.
However, a content template placed in the short description of the product is displayed correctly. enlace oculto enlace oculto
Look at the screenshots.
I can see why you are getting an infinite loop. This is because the wpv-post-body displays the content of the editor that you are placing the code in. So its essentially continuously calling itself hence the infinite loop.
That's not the case, the content template I'm showing for the long description has nothing to do with the template used to display the product.
If this is how you say, how do I show the content template 'enlace oculto' in the long description of the product?
What must be done to achieve this?
This is clearly a Toolset bug.
This is not a bug, I see you are calling the body of the post in the short description and then in the body you are calling the body against itself with the same content template. Hence why it is throwing the infinite loop error because you are calling the same shortcode again within itself.
Here is the process of how the calls are going to work.
Short Description -> Calls -> Post Body with the same exact shortcode [wpv-post-body view_template="jfcontrols-standard-descripcion-larga"] which is essentially a loop.
Please let me know if this explains things a bit clearer for you.
No. It's not like you say it.
Please, enter my dashboard and go to the product form: enlace oculto
In the form you will see:
Short Description -> Calls -> [wpv-post-body view_template="jfcontrols-standard-descripcion-corta"]
Long Description -> Calls -> [wpv-post-body view_template="jfcontrols-standard-descripcion-larga"]
Look at the screenshots.
Please, I need to solve this problem as quickly as possible.
Note: If you think you're right, modify the product so that it works correctly.
So its still the same issue with the infinite call because of the {!{wpv-woo-display-tabs}!} that is calling for the post body but in the post body you are calling for the body again with a separate content template if you understand where i'm getting at.
This would work if you call another post in the post body like this [wpv-post-body id='35284' view_template="jfcontrols-standard-descripcion-larga"]
But calling itself will result in an infinite loop.
Please let me know if this is a bit more clearer for you. Also since I suspect that the content will be static then using the id attribute should be a suitable workaround.
I just use the ID of another product because this product here enlace oculto
Does not have any information in it besides the 2 [wpv-post-body] shortcodes so i'm very confused as to what information is to be displayed for this product as there is no product description.
In the long description it should only show the contents of the content template with id 38109.
Look at the screenshot.
What can be done to only show this content?
I doing some more checks on this to see if I can find the exact information for you but I suspect that its being caused by the woocommerce shortcode used to display the tabs.
As suspected the loop is being caused by the [wpv-woo-display-tabs disable_reviews_tab='no'] shortcode.
It is because this code is calling the post body and within the post body the post body is calling itself which will generate an infinite loop because of the constant repetitive calls to itself.
Please let me know if this clears things up a bit for you.