suba89
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Thank you @kuzmanstoyanov. I will check with it.
Thank you @vtrandev. I have added the code to the function.php file and checked. I can see the below error in my browser console.
Uncaught No script found with scriptLocation ‘https://cbcmpgs.gateway.mastercard.com/checkout/version/57/checkout.js’
Is it a issue with my woo-commerce plugin?
- This reply was modified 3 years ago by suba89.
Thank you @vtrandev.
I am new to woo-commerce plugin. This is my current code.
public function __construct() { // some other code. add_action('wp_footer', array($this, 'enqueueAssets')); } public function enqueueAssets() { wp_register_script('checkoutwaiting', plugins_url('../js/checkout.js', __FILE__), array('jquery'), '', true); wp_enqueue_script('checkoutwaiting'); }How can i edit? Is this the way to edit?
public function __construct() { // some other code. add_action('wp_footer', array($this, 'enqueueAssets')); } public function enqueueAssets() { wp_register_script('checkoutwaiting', plugins_url('../js/checkout.js', __FILE__), array('jquery'), '', true); wp_enqueue_script('checkoutwaiting'); add_filter( 'sgo_javascript_combine_excluded_external_paths', 'js_combine_exclude_external_script' ); } function js_combine_exclude_external_script( $exclude_list ) { $exclude_list[] = 'cbcmpgs.gateway.mastercard.com'; return $exclude_list; }Also, I wanted to confirm that, This issue is happening due to my plugin issue or hosting server issue? I have tried with my internal server, The plugin is working. It is not working in the outside hosting server.
Thank you for your time
Viewing 3 replies - 1 through 3 (of 3 total)