Add product type check in line validation (#36319)

* Add product type check in line validation

needed by sous total plugins style which use line with type 9 for title, subtitle or free text. without the chek inb line validation, title, sub title or free text disappears

* Update card.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
iouston
2025-11-19 13:17:48 +01:00
committed by GitHub
parent 292b235241
commit c4f1dbddbb

View File

@@ -1374,7 +1374,7 @@ if (empty($reshook)) {
$num = count($lines);
for ($i = 0; $i < $num; $i++) {
if (empty($lines[$i]->subprice) || $lines[$i]->qty <= 0 || !in_array($lines[$i]->id, $selectedLines)) {
if ((empty($lines[$i]->subprice) || $lines[$i]->qty <= 0 || !in_array($lines[$i]->id, $selectedLines)) && $lines[$i]->product_type != 9) {
continue;
}