Skip to content

Commit

Permalink
remove POS gateways from store front
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Apr 20, 2023
1 parent 93da23a commit 6bf1a39
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions includes/Gateways/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function __construct() {
$this->description = '';
$this->icon = apply_filters( 'woocommerce_pos_card_icon', '' );
$this->has_fields = true;
$this->enabled = 'no';

// Actions
add_action('woocommerce_pos_update_options_payment_gateways_' . $this->id, array(
Expand Down
1 change: 1 addition & 0 deletions includes/Gateways/Cash.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function __construct() {
$this->description = '';
$this->icon = apply_filters( 'woocommerce_pos_cash_icon', '' );
$this->has_fields = true;
$this->enabled = 'no';

// Actions
add_action('woocommerce_pos_update_options_payment_gateways_' . $this->id, array(
Expand Down
2 changes: 1 addition & 1 deletion templates/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
</section>
</div>

<?php wc_get_template( 'checkout/form-pay.php', array( 'order' => $order, 'available_gateways' => $available_gateways ) ); ?>
<?php wc_get_template( 'checkout/form-pay.php', array( 'order' => $order, 'available_gateways' => $available_gateways, 'order_button_text' => $order_button_text ) ); ?>

</div>

Expand Down

0 comments on commit 6bf1a39

Please sign in to comment.