Skip to content

Commit

Permalink
Merge pull request #551 from shreesh-webkul/patch-5
Browse files Browse the repository at this point in the history
Updated best selling rooms and most viewed rooms statistics
  • Loading branch information
rohit053 authored Mar 6, 2023
2 parents 89a8301 + 2b82020 commit b4d47e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/dashproducts/dashproducts.php
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ public function getTotalViewed($date_from, $date_to, $limit = 10)
LEFT JOIN `'._DB_PREFIX_.'date_range` dr ON pv.`id_date_range` = dr.`id_date_range`
LEFT JOIN `'._DB_PREFIX_.'page` p ON pv.`id_page` = p.`id_page`
LEFT JOIN `'._DB_PREFIX_.'page_type` pt ON pt.`id_page_type` = p.`id_page_type`
LEFT JOIN `'._DB_PREFIX_.'htl_room_type` hrt ON hrt.`id_product` = p.`id_object`
INNER JOIN `'._DB_PREFIX_.'htl_room_type` hrt ON hrt.`id_product` = p.`id_object`
WHERE pt.`name` = \'product\'
'.Shop::addSqlRestriction(false, 'pv').'
AND dr.`time_start` BETWEEN "'.pSQL($date_from).' 00:00:00" AND "'.pSQL($date_to).' 23:59:59"
Expand Down
3 changes: 2 additions & 1 deletion modules/statsbestproducts/statsbestproducts.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ public function getData()
LEFT JOIN `'._DB_PREFIX_.'htl_room_type` hrt
ON (hrt.`id_product` = p.`id_product`)
LEFT JOIN `'._DB_PREFIX_.'htl_branch_info_lang` hbil
ON (hbil.`id` = hrt.`id_hotel` AND hbil.`id_lang` = '.(int) $id_lang .')';
ON (hbil.`id` = hrt.`id_hotel` AND hbil.`id_lang` = '.(int) $id_lang .')
WHERE p.`booking_product` = 1';

if (Validate::IsName($this->_sort)) {
$this->query .= ' ORDER BY `'.bqSQL($this->_sort).'`';
Expand Down

0 comments on commit b4d47e0

Please sign in to comment.