diff --git a/includes/class-mmgcp-checkout-payment.php b/includes/class-mmgcp-checkout-payment.php index 4fb0430..dd61bba 100644 --- a/includes/class-mmgcp-checkout-payment.php +++ b/includes/class-mmgcp-checkout-payment.php @@ -114,7 +114,7 @@ private function mmgcp_generate_unique_callback_url() { */ public function mmgcp_enqueue_scripts() { if ( is_checkout_pay_page() ) { - wp_enqueue_script( 'mmg-checkout', plugin_dir_url( __DIR__ ) . '../admin/js/mmg-checkout.js', array( 'jquery' ), '3.0', true ); + wp_enqueue_script( 'mmg-checkout', plugin_dir_url( __DIR__ ) . 'admin/js/mmg-checkout.js', array( 'jquery' ), '3.0', true ); wp_localize_script( 'mmg-checkout', 'mmg_checkout_params', diff --git a/includes/class-mmgcp-checkout-settings.php b/includes/class-mmgcp-checkout-settings.php index ce5d9ae..06a8e24 100644 --- a/includes/class-mmgcp-checkout-settings.php +++ b/includes/class-mmgcp-checkout-settings.php @@ -184,8 +184,8 @@ public function mmgcp_enqueue_admin_scripts( $hook ) { return; } wp_enqueue_script( 'jquery' ); - wp_enqueue_script( 'mmgcp-admin-script', plugin_dir_url( __FILE__ ) . '../admin/js/admin-script.js', array( 'jquery' ), '1.0.0', true ); - wp_enqueue_style( 'mmgcp-admin-style', plugin_dir_url( __FILE__ ) . '../admin/css/admin-style.css', array(), '1.0.0' ); + wp_enqueue_script( 'mmgcp-admin-script', plugin_dir_url( __FILE__ ) . 'admin/js/admin-script.js', array( 'jquery' ), '1.0.0', true ); + wp_enqueue_style( 'mmgcp-admin-style', plugin_dir_url( __FILE__ ) . 'admin/css/admin-style.css', array(), '1.0.0' ); } /**