Hi, I've made some improvements consisting in displaying the content of Description field of Shuttle routes, thus we can add on the 2nd step of shuttle booking the text and images to explain the customer where and how he can find a shuttle etc.
Here is the code, if you want you can check it, may be I've missed something, or you can improve it and introduce it in your next update :
put the following code in "localweb\aramis2\components\com_taxibooking\controllers\onepage.php"
if($booking_type=='shuttle'&& $order->shuttle_route_id== $route->route_id ){
$shuttle_text = booking_helper::shuttle_text_get($shuttle_data)
$html .= '<table class="cars"><tr><td class="shuttle_text">'.$shuttle_text.'</td></tr></table>';
}
put the following code in "components\com_taxibooking\classes\booking.helper.php"
public static function shuttle_text_get($data = array())
{
$shuttle_text = "";
if(!empty($data))
{
$db = JFactory::getDBO();
$query = $db->getQuery(true);
$query->select('text');
$query->from('#__taxibooking_shuttle_routes');
$query->where('id = '.(int)$data['route_id']);
$db->setQuery((string)$query);
$shuttle_text = $db->loadResult();
}
return $shuttle_text;
}
put the following code in "modules\mod_multimoo\css\customer.css"
.shuttle_text img {
width: auto !important;
}
I'Would like also append this message to the confirmation mail sent to the client,
Regards.
Here is the code, if you want you can check it, may be I've missed something, or you can improve it and introduce it in your next update :
put the following code in "localweb\aramis2\components\com_taxibooking\controllers\onepage.php"
if($booking_type=='shuttle'&& $order->shuttle_route_id== $route->route_id ){
$shuttle_text = booking_helper::shuttle_text_get($shuttle_data)
$html .= '<table class="cars"><tr><td class="shuttle_text">'.$shuttle_text.'</td></tr></table>';
}
put the following code in "components\com_taxibooking\classes\booking.helper.php"
public static function shuttle_text_get($data = array())
{
$shuttle_text = "";
if(!empty($data))
{
$db = JFactory::getDBO();
$query = $db->getQuery(true);
$query->select('text');
$query->from('#__taxibooking_shuttle_routes');
$query->where('id = '.(int)$data['route_id']);
$db->setQuery((string)$query);
$shuttle_text = $db->loadResult();
}
return $shuttle_text;
}
put the following code in "modules\mod_multimoo\css\customer.css"
.shuttle_text img {
width: auto !important;
}
I'Would like also append this message to the confirmation mail sent to the client,
Regards.