| @@ -523,8 +523,21 @@ | ||
| 523 | 523 | value={formData.price_per} |
| 524 | 524 | onChange={(e) => |
| 525 | 525 | handleFieldChange("price_per", e.target.value) |
| 526 | 526 | } |
| 527 | + disabled={formData.price_type === "percentage"} | |
| 528 | + title={ | |
| 529 | + formData.price_type === "percentage" | |
| 530 | + ? __( | |
| 531 | + "Price Per does not apply to percentage services — they are always a percentage of the whole trip price.", | |
| 532 | + ) | |
| 533 | + : undefined | |
| 534 | + } | |
| 535 | + className={ | |
| 536 | + formData.price_type === "percentage" | |
| 537 | + ? "opacity-60 cursor-not-allowed" | |
| 538 | + : "" | |
| 539 | + } | |
| 527 | 540 | > |
| 528 | 541 | <option value="person">{__("Per Person")}</option> |
| 529 | 542 | <option value="booking">{__("Per Booking")}</option> |
| 530 | 543 | <option value="day">{__("Per Day")}</option> |