lewisjwright
Forum Replies Created
-
Fault on my part. Stupidly forgot to copy over files to production area within worldpay after testing.
Forum: Plugins
In reply to: [WooCommerce] woocommerce_params is not definedFigured it out. It was to do with the ordering of my scripts. Absolute rookie mistake.
Forum: Plugins
In reply to: [WooCommerce] woocommerce_params is not definedI don’t believe I am :S. My functions file just consists of standard wordpress setup such as menus and widget areas.
It also includes the code from the support on your website to output theme wrappers and woocommerce support.
I can see the code in the header of my page here:
/* <![CDATA[ */
var woocommerce_params = {“ajax_url”:”\/wp-admin\/admin-ajax.php”,”wc_ajax_url”:”\/menu\/?wc-ajax=%%endpoint%%”};
/* ]]> */I assume that this is the correct data?
Forum: Plugins
In reply to: [Video Background] $(…).vidbg is not a functionI just resolved this by replacing the $ with jQuery on line 213:
<?php if( isset( $container_field ) ): ?> <script type="text/javascript"> jQuery(function($){ 213 jQuery('<?php echo $container_field; ?>').vidbg({ 'mp4': '<?php echo $mp4_field; ?>', 'webm': '<?php echo $webm_field; ?>', 'poster': '<?php echo $poster_field; ?>', }, { // Options muted: <?php if($unmute_field == 'on'): ?>false<?php else: ?>true<?php endif; ?>, loop: <?php if($no_loop_field == 'on'): ?>false<?php else: ?>true<?php endif; ?>, overlay: <?php if($pattern_overlay == 'on'): ?>true<?php else: ?>false<?php endif; ?>, }); }); </script> <?php endif; ?>
Forum: Plugins
In reply to: [Video Background] $(…).vidbg is not a functionJust to clarify I am calling jQuery in the header through this call:
<script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js”></script>