File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,10 @@ function rexshop_payment_page()
257
257
foreach ($ product ['prices ' ] as $ price ) {
258
258
$ options .= '<option value=" ' . $ price ['plan_id ' ] . '"> ' . $ price ['name ' ] . ' ' . $ price ['currency ' ] . $ price ['price ' ] . ' ( ' . $ price ['time ' ] . ' ' . $ price ['duration ' ] . ')</option> ' ;
259
259
}
260
+
261
+ if (empty ($ options )) {
262
+ continue ;
263
+ }
260
264
261
265
$ payments .= '
262
266
<fieldset>
@@ -276,10 +280,10 @@ function rexshop_payment_page()
276
280
</form>
277
281
</div>
278
282
</fieldset> ' ;
279
-
280
- if ( empty ( $ payments )) {
281
- $ payments = ' <p style="text-align: center;"> ' . $ lang -> no_subscription_options . ' </p> ' ;
282
- }
283
+ }
284
+
285
+ if ( empty ( $ payments)) {
286
+ $ payments = ' <p style="text-align: center;"> ' . $ lang -> no_subscription_options . ' </p> ' ;
283
287
}
284
288
285
289
$ contents .= "
You can’t perform that action at this time.
0 commit comments