#150 – Shuttle route description on step 2

Posted in ‘Taxi Booking for Joomla’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Thursday, 30 October 2014 16:24 GMT
serguei_kp
SystemPay for Taxi Booking, Taxi Booking recurring updates Annually
 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.
Attachment
 
Thursday, 30 October 2014 17:33 GMT 30'
martso
SumUp for Taxi Booking J4
Hi Serguei,
unfortunately we can't support any changes to our code as this makes our work more difficult in the future. You are welcome to make any changes to Taxi Booking yourself as it is fully open source but make sure you track your changes and re-apply them.
We appreciate your suggestion and will see if it is feasible to add Shuttle description to Car table but we have to make sure that it is responsive and add it to emails and PDFs. Images from the description field can't be added to PDFs as they are effectively web links.
If you would like a new feature added it is best to contact us about it or submit a Feature request at the Development section.
Best regards.
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

KANEV Web Development limited is not affiliated with or endorsed by the Joomla Project or Open Source Matters.

KANEV Web Development limited is registered in England and Wales #8902407