From 6172f4bc5fb6675c4c2df493259ff8e9c181d7be Mon Sep 17 00:00:00 2001 From: Srexi Date: Wed, 11 May 2022 11:02:18 +0200 Subject: [PATCH] hide products with no subscription options --- inc/plugins/rexshop.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/inc/plugins/rexshop.php b/inc/plugins/rexshop.php index 0878fb7..bd40735 100644 --- a/inc/plugins/rexshop.php +++ b/inc/plugins/rexshop.php @@ -257,6 +257,10 @@ function rexshop_payment_page() foreach ($product['prices'] as $price) { $options .= ''; } + + if (empty($options)) { + continue; + } $payments .= '
@@ -276,10 +280,10 @@ function rexshop_payment_page()
'; - - if (empty($payments)) { - $payments = '

' . $lang->no_subscription_options . '

'; - } + } + + if (empty($payments)) { + $payments = '

' . $lang->no_subscription_options . '

'; } $contents .= "