I have built my website and it started showing this:
,− Kč ) {
styleTmp[0].parentNode.removeChild( styleTmp[0] );
}
var scriptTmp = document.getElementsByClassName( ‚toolset-blocks-script-tmp‘ );
while( scriptTmp[0] ) {
scriptTmp[0].parentNode.removeChild( scriptTmp[0] );
}
58″] s DPH
What does this mean? Looks like some collision with my shortcodes..
Hi Martin,
Thank you for contacting us and I'd be happy to assist.
To troubleshoot this error/warning, I'll recommend the following steps:
1. Please make sure WordPress, active theme and all plugins are updated to their latest versions.
2. To narrow down to a possible conflict, you can create a full backup copy of your website and then temporarily switch to a default theme like Twenty Nineteen and disable all non-Toolset plugins.
If the issue is fixed, you can start activating the disabled items, one-by-one.
3. In case the issue still persists, you're welcome to share temporary admin login details, along with the link to a page, where this error/warning can be seen.
Note: Your next reply will be private and though no changes will be made on your website, please make a complete backup copy, before sharing the access details.
regards,
Waqar
I am using content template inside this shortcode:
[format_money price="[wpv-post-body view_template="vypocet-dph"]"]
I found it here: https://toolset.com/forums/topic/transforming-content-in-number-field-as-price/
And in the content template I use:
[wpv-conditional if="( $(wpcf-dph) eq '21' )"][calculate]1.21*[types field="cena-bez-dph"][/types][/calculate][/wpv-conditional]
[wpv-conditional if="( $(wpcf-dph) eq '15' )"][calculate]1.15*[types field="cena-bez-dph"][/types][/calculate][/wpv-conditional]
I added [calculate] to 3rd party shortcodes in the toolset settings.
It works normally when I disable the [format_money price]
Can you help?
Hi Martin,
Have you tried to use the "format_money price" shortcode inside the conditional block, instead of using it around the whole output of the content template?
Example:
[wpv-conditional if="( $(wpcf-dph) eq '21' )"][format_money price='[calculate]1.21*[types field="cena-bez-dph"][/types][/calculate]'][/wpv-conditional]
[wpv-conditional if="( $(wpcf-dph) eq '15' )"][format_money price='[calculate]1.15*[types field="cena-bez-dph"][/types][/calculate]'][/wpv-conditional]
And the shortcode to call the content template will become:
[wpv-post-body view_template="vypocet-dph"]
This works as expected on my test website.
Note: In case the issue still persists, I'll need temporary admin login details, to see how everything is set up on your website.
( your next reply will be private )
regards,
Waqar
Thank you, it works now. You nailed it!