Show pseudo prices in price/dates-tables
This commit is contained in:
@@ -260,12 +260,12 @@ class ProductRepository extends AbstractRepository
|
|||||||
$query = $qb
|
$query = $qb
|
||||||
->select(
|
->select(
|
||||||
'date.uid as dateUid', 'date.date_start as dateStart', 'date.date_end as dateEnd',
|
'date.uid as dateUid', 'date.date_start as dateStart', 'date.date_end as dateEnd',
|
||||||
'date.min_price as dateMinPrice', 'date.discount as dateDiscount', 'date.bus_price as busPrice',
|
'date.min_price as dateMinPrice', 'date.pseudo_price as datePseudoPrice', 'date.discount as dateDiscount',
|
||||||
'date.nights as dateNights', 'date.bus_included as dateBusIncluded', 'date.services_included as dateServicesIncluded',
|
'date.bus_price as busPrice', 'date.nights as dateNights', 'date.bus_included as dateBusIncluded',
|
||||||
'date.services_general as dateServicesGeneral', 'date.skipass_included as dateSkipassIncluded',
|
'date.services_included as dateServicesIncluded', 'date.services_general as dateServicesGeneral',
|
||||||
'date.bus_pro_id as dateBusProId', 'date.hotel_bus_pro_id as hotelBusProId'
|
'date.skipass_included as dateSkipassIncluded', 'date.bus_pro_id as dateBusProId',
|
||||||
|
'date.hotel_bus_pro_id as hotelBusProId', 'date.available as available'
|
||||||
)
|
)
|
||||||
->addSelectLiteral('SUM(room.available) as available')
|
|
||||||
->from('tx_epproducts_domain_model_date', 'date')
|
->from('tx_epproducts_domain_model_date', 'date')
|
||||||
->innerJoin('date', 'tx_epproducts_domain_model_room', 'room', 'room.date = date.uid')
|
->innerJoin('date', 'tx_epproducts_domain_model_room', 'room', 'room.date = date.uid')
|
||||||
->leftJoin('date', 'tx_epproducts_product_region_mm', 'mm', 'mm.uid_local = date.product')
|
->leftJoin('date', 'tx_epproducts_product_region_mm', 'mm', 'mm.uid_local = date.product')
|
||||||
|
|||||||
@@ -341,13 +341,14 @@ class DateService implements SingletonInterface
|
|||||||
'dateStart' => $dateStart->format('d.m.y'),
|
'dateStart' => $dateStart->format('d.m.y'),
|
||||||
'dateEnd' => $dateEnd->format('d.m.y'),
|
'dateEnd' => $dateEnd->format('d.m.y'),
|
||||||
'dateMinPrice' => $row['dateMinPrice'],
|
'dateMinPrice' => $row['dateMinPrice'],
|
||||||
|
'datePseudoPrice' => $row['datePseudoPrice'],
|
||||||
'dateBusPrice' => $row['dateBusPrice'],
|
'dateBusPrice' => $row['dateBusPrice'],
|
||||||
'dateDiscount' => $row['dateDiscount'],
|
'dateDiscount' => $row['dateDiscount'],
|
||||||
'dateNights' => $row['dateNights'],
|
'dateNights' => $row['dateNights'],
|
||||||
'dateBusIncluded' => (bool) $row['dateBusIncluded'],
|
'dateBusIncluded' => (bool) $row['dateBusIncluded'],
|
||||||
'dateSkipassIncluded' => (bool) $row['dateSkipassIncluded'],
|
'dateSkipassIncluded' => (bool) $row['dateSkipassIncluded'],
|
||||||
'dateServicesIncluded' => unserialize($row['dateServicesIncluded']),
|
'dateServicesIncluded' => unserialize($row['dateServicesIncluded'], ['allowed_classes' => false]),
|
||||||
'dateServicesGeneral' => unserialize($row['dateServicesGeneral']),
|
'dateServicesGeneral' => unserialize($row['dateServicesGeneral'], ['allowed_classes' => false]),
|
||||||
'available' => $row['available'],
|
'available' => $row['available'],
|
||||||
'bookingUrl' => $bookingUrl,
|
'bookingUrl' => $bookingUrl,
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Termin</th>
|
<th>Termin</th>
|
||||||
<th>Nächte</th>
|
<th><i class="fa fa-bed tooltiptoggle" data-placement="top" title="Nächte"></i></th>
|
||||||
<th>Preis ab</th>
|
<th>ab <i class="fa fa-euro tooltiptoggle" data-placement="top" title="Preis ab"></i></th>
|
||||||
<th>inkl.</th>
|
<th>inkl.</th>
|
||||||
<th class="hidden-xs"></th>
|
<th class="hidden-xs"></th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -53,7 +53,10 @@
|
|||||||
<template v-else>{{ row.dateStart }} - {{ row.dateEnd }}</template>
|
<template v-else>{{ row.dateStart }} - {{ row.dateEnd }}</template>
|
||||||
</td>
|
</td>
|
||||||
<td class="dates-table__cell dates-table__cell--nights">{{ row.dateNights }}</td>
|
<td class="dates-table__cell dates-table__cell--nights">{{ row.dateNights }}</td>
|
||||||
<td class="dates-table__cell dates-table__cell--price"><strong>{{ calculatePrice(row) }} €</strong></td>
|
<td class="dates-table__cell dates-table__cell--price">
|
||||||
|
<span class="dates-table__pseudo-price" v-if="row.datePseudoPrice">{{ row.datePseudoPrice }}</span>
|
||||||
|
<strong>{{ calculatePrice(row) }}</strong>
|
||||||
|
</td>
|
||||||
<td class="dates-table__cell dates-table__cell--icons">
|
<td class="dates-table__cell dates-table__cell--icons">
|
||||||
<span class="icon-wrapper hidden-xs hidden-sm">
|
<span class="icon-wrapper hidden-xs hidden-sm">
|
||||||
<i v-if="showBusIcon(row)" data-placement="top" title="Busfahrt inklusive"
|
<i v-if="showBusIcon(row)" data-placement="top" title="Busfahrt inklusive"
|
||||||
|
|||||||
@@ -52,3 +52,11 @@
|
|||||||
text-align:right;
|
text-align:right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dates-table__pseudo-price {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 85%;
|
||||||
|
color: $color-font-light;
|
||||||
|
text-decoration: line-through;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user