- Posts: 8
- Home
- Forum
- Community Forum
- General discussions
- help to set up my house (not a hotel)
value variable url get
- s.virdis
- Topic Author
- Offline
Less
More
9 years 1 week ago #5562
by s.virdis
value variable url get was created by s.virdis
Hi I would like to move from the booking form a variable that filters rates according to a code . I added the variable get but not recognized if the rates are straddling two packages of complex tariffs ...
Can you help me?
<label><?php echo JText::_('SR_SEARCH_ROOMS') ?></label>
<select class="span12 " name="codice">
<option value=""><?php echo JText::_('SR_SEARCH_TIPOLOGIA1') ?>
</option>
<option value="3"><?php echo JText::_('SR_SEARCH_TIPOLOGIA2') ?>
</option>
<option value="1"><?php echo JText::_('SR_SEARCH_TIPOLOGIA3') ?>
</option>
<option value="2"><?php echo JText::_('SR_SEARCH_TIPOLOGIA4') ?>
</option>
<option value="6"><?php echo JText::_('SR_SEARCH_TIPOLOGIA5') ?>
</option>
<option value="5"><?php echo JText::_('SR_SEARCH_TIPOLOGIA6') ?>
</option>
</select>
protected function getListQuery()
{
$dbo = $this->getDbo();
$query = $dbo->getQuery(true);
$nullDate = $dbo->getNullDate();
$query->select( $this->getState('list.select', 't.*, cgroup.name as customer_group_name' ));
$query->from($dbo->quoteName('#__sr_tariffs').' AS t');
$roomTypeId = $this->getState('filter.room_type_id', NULL);
$codice = $this->getState('filter.codice', NULL);
$codice = $_GET['codice'];
//$tariffa = $_POST['codice'];
if (isset($roomTypeId))
{
$query->where('t.room_type_id = '.(int) $roomTypeId);
$query->where("t.codice LIKE '%$codice%'");
//echo $query;
Can you help me?
Please Log in or Create an account to join the conversation.
- vietvh
- Offline
Less
More
- Posts: 1553
9 years 1 week ago #5565
by vietvh
Replied by vietvh on topic value variable url get
Hi,
You should use Joomla API to retrive POST/GET variable instead of using manual call with $_GET or $POST.
To pass "codice" parameter to your model, you should refer to this file (passing parameter to model need to be done via setState() )
/components/com_solidres/controllers/hub.php
Regards,
You should use Joomla API to retrive POST/GET variable instead of using manual call with $_GET or $POST.
To pass "codice" parameter to your model, you should refer to this file (passing parameter to model need to be done via setState() )
/components/com_solidres/controllers/hub.php
Regards,
Please Log in or Create an account to join the conversation.
- s.virdis
- Topic Author
- Offline
Less
More
- Posts: 8
9 years 1 week ago #5566
by s.virdis
Replied by s.virdis on topic value variable url get
The file does not exist hub.php
Please Log in or Create an account to join the conversation.
- vietvh
- Offline
Less
More
- Posts: 1553
9 years 1 week ago #5569
by vietvh
Replied by vietvh on topic value variable url get
Hi,
Sorry for my typo error, the correct file should be:
/components/com_solidres/controllers/reservationasset.php
Regards,
Sorry for my typo error, the correct file should be:
/components/com_solidres/controllers/reservationasset.php
Regards,
Please Log in or Create an account to join the conversation.
- s.virdis
- Topic Author
- Offline
Less
More
- Posts: 8
9 years 1 week ago #5597
by s.virdis
Replied by s.virdis on topic value variable url get
still can not pass the value from the module to the file mod_sr_checkavailability tariffs.php .... !!! Help me
Please Log in or Create an account to join the conversation.
- vietvh
- Offline
Less
More
- Posts: 1553
9 years 1 week ago #5599
by vietvh
Replied by vietvh on topic value variable url get
Hi,
Please create a new support ticket with your website address, admin account and FTP account, we will check it for you.
Regards,
Please create a new support ticket with your website address, admin account and FTP account, we will check it for you.
Regards,
Please Log in or Create an account to join the conversation.
Moderators: solidres