From d4b7154116b7418e410a7b47ba59ee4bfa4b4e86 Mon Sep 17 00:00:00 2001 From: Diego Vagnoli Date: Mon, 15 Nov 2021 12:49:20 +0100 Subject: [PATCH] Styling: add methods subtype as css classes --- class-wc-gateway-komoju.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/class-wc-gateway-komoju.php b/class-wc-gateway-komoju.php index 7e4ac84..a82a0ad 100755 --- a/class-wc-gateway-komoju.php +++ b/class-wc-gateway-komoju.php @@ -234,6 +234,10 @@ class="required" '; foreach ($methods as $method) { + $subtypes = ''; + foreach( $method->subtypes as $subtype ){ + $subtypes .= ''; + } $field_data .= ' - ' . ($method->{$name_property}) . ' + ' . ($method->{$name_property}) . '' . $subtypes . '
'; } $field_data .= '

';