skip to Main Content

The PHP variable is not triggered under the condition if else + javascript – WordPress

I use Wordpress, I place the code in functions, the code: add_filter( 'woocommerce_before_add_to_cart_form', 'spoiler', 15 ); function spoiler() { $regprice = 1000; $saleprice = 2000; ?> <script type="text/javascript"> function kalkulyator(){ var rezultat2 = '<?php echo htmlspecialchars ($saleprice); ?>'; if (document.getElementById('option1').checked)…

VIEW QUESTION
Back To Top
Search