feat: hide pickups of group travel dates on product detail pages
This commit is contained in:
1 parent
69f9b42757
commit
1111c180f8
2 files changed
+7
-4
No files matched your search
@@ -33,6 +33,7 @@ class DateRepository extends AbstractRepository
|
|||||||
->where(
|
->where(
|
||||||
$qb->expr()->eq('date.product', $qb->createNamedParameter($productUid, Connection::PARAM_INT)),
|
$qb->expr()->eq('date.product', $qb->createNamedParameter($productUid, Connection::PARAM_INT)),
|
||||||
$qb->expr()->eq('date.hotel', $qb->createNamedParameter($hotelUid, Connection::PARAM_INT)),
|
$qb->expr()->eq('date.hotel', $qb->createNamedParameter($hotelUid, Connection::PARAM_INT)),
|
||||||
|
$qb->expr()->eq('date.group_travel', $qb->createNamedParameter(0, Connection::PARAM_INT)),
|
||||||
'date.date_start >= NOW()'
|
'date.date_start >= NOW()'
|
||||||
)
|
)
|
||||||
->orderBy('date.date_start', 'DESC')
|
->orderBy('date.date_start', 'DESC')
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ use EP\EpProducts\Domain\Model\Product;
|
|||||||
use EP\EpProducts\Domain\Repository\DateRepository;
|
use EP\EpProducts\Domain\Repository\DateRepository;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lists the pickup points of a product's latest upcoming date that has any,
|
* Lists the pickup points of a product's latest upcoming end-customer date that
|
||||||
* with that date's time and round-trip surcharge per pickup point. Pickups,
|
* has any, with that date's time and round-trip surcharge per pickup point.
|
||||||
* times and prices may differ on other dates; taking the latest one keeps the
|
* Group travel dates are left out: their pickups are arranged per group and
|
||||||
* values unique and shows them for as long as the product is offered.
|
* are not offered publicly. Pickups, times and prices may differ on other
|
||||||
|
* dates; taking the latest one keeps the values unique and shows them for as
|
||||||
|
* long as the product is offered.
|
||||||
*
|
*
|
||||||
* The returned shape is meant to be served by MyE&P later on, so that only the
|
* The returned shape is meant to be served by MyE&P later on, so that only the
|
||||||
* data source has to change once the local date table goes away.
|
* data source has to change once the local date table goes away.
|
||||||
|
|||||||
Reference in new issue
Block a user