after installing payment gateway in WooCommerce, first there was the following error "Cannot modify header information - headers already sent by tap-gateway.php:69".
After searching in this file, I edited it and remove from this:
$this->ui_mode = $this->get_option('ui_mode');
$this->save_card = $this->get_option('save_card');
?>
<?php
add_action( 'wp_enqueue_scripts', array( $this, 'payment_scripts' ), 11);
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );
the following:
?>
<?php
I hope what i did was right.
Any way now I am having another issue with the same file that I couldn't fix: "A non-numeric value encountered in public_html/wp-content/plugins/tap-payments/tap-gateway.php on line 262"
Here is the related code:
// line 261
$sub_total += ($item['quantity'] * $product['price']);
// line 262
echo '<input type="hidden" name="items_bulk[]" data-name="'.$item['data']->name.'" data-quantity="'.$item['quantity'].'"
can some one help?