DEFAULT

Closed
Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme May 17, 2019
Login to reply
Kelly R Support Agent
5 years ago

Hi,

Please find following codes in /inc/functions/metaboxes.php file.

$meta_boxes[] = array(

   'id' => 'tour_settings',
   'title' => __( 'Tour Settings', 'trav' ),
   'pages' => array( 'tour' ),
   'context' => 'side',
   'priority' => 'default',
   'fields' => array(
    array(
     'name' => __( 'Tour Repeatability', 'trav' ),
     'id' => "{$prefix}repeated",
     'desc' => __( 'If you set Repeated, tour schedules in this tour will have date selection field.', 'trav' ),
     'type' => 'radio',
     'std' => '0',
     'options' => array(
      '1' => __( 'Repeated', 'trav' ),
      '0' => __( 'Not Repeated', 'trav' ),
     ),
    ),
    array(
     'name' => __( 'Person Number Selectability', 'trav' ),
     'id' => "{$prefix}multi_book",
     'type' => 'radio',
     'std' => '0',
     'options' => array(
      '1' => __( 'Selectable', 'trav' ),
      '0' => __( 'Not Selectable', 'trav' ),
     ),
    ),
    array(
     'name' => __( 'Feature This Tour', 'trav' ),
     'id' => "{$prefix}featured",
     'desc' => __( 'Add this tour to featured list.', 'trav' ),
     'type' => 'checkbox',
     'std' => array(),
    ),
    array(
     'name' => __( 'Discount This Tour', 'trav' ),
     'id' => "{$prefix}hot",
     'desc' => __( 'Discount this tour.', 'trav' ),
     'type' => 'checkbox',
     'std' => array(),
    ),
    array(
     'name' => __( 'Discount Rate', 'trav' ),
     'id' => "{$prefix}discount_rate",
     'desc' => __( '%', 'trav' ),
     'type' => 'number',
     'std' => 0,
    ),
    array(
     'name' => __( 'Disable Cancel Booking', 'trav' ),
     'id' => "{$prefix}d_cancel_booking",
     'desc' => __( 'Disable cancel booking for this tour on confirmation page.', 'trav' ),
     'type' => 'checkbox',
     'std' => array(),
    ),
    array(
     'name' => __( 'Put schedule list section first.', 'trav' ),
     'id' => "{$prefix}sl_first",
     'desc' => __( 'Put schedule list section before main content section.', 'trav' ),
     'type' => 'checkbox',
     'std' => array(),
    ),
   )
  );

Replace with following.

$meta_boxes[] = array(

   'id' => 'tour_settings',
   'title' => __( 'Tour Settings', 'trav' ),
   'pages' => array( 'tour' ),
   'context' => 'side',
   'priority' => 'default',
   'fields' => array(
    array(
     'name' => __( 'Tour Repeatability', 'trav' ),
     'id' => "{$prefix}repeated",
     'desc' => __( 'If you set Repeated, tour schedules in this tour will have date selection field.', 'trav' ),
     'type' => 'radio',
     'std' => '1',
     'options' => array(
      '1' => __( 'Repeated', 'trav' ),
      '0' => __( 'Not Repeated', 'trav' ),
     ),
    ),
    array(
     'name' => __( 'Person Number Selectability', 'trav' ),
     'id' => "{$prefix}multi_book",
     'type' => 'radio',
     'std' => '0',
     'options' => array(
      '1' => __( 'Selectable', 'trav' ),
      '0' => __( 'Not Selectable', 'trav' ),
     ),
    ),
    array(
     'name' => __( 'Feature This Tour', 'trav' ),
     'id' => "{$prefix}featured",
     'desc' => __( 'Add this tour to featured list.', 'trav' ),
     'type' => 'checkbox',
     'std' => array(),
    ),
    array(
     'name' => __( 'Discount This Tour', 'trav' ),
     'id' => "{$prefix}hot",
     'desc' => __( 'Discount this tour.', 'trav' ),
     'type' => 'checkbox',
     'std' => array(),
    ),
    array(
     'name' => __( 'Discount Rate', 'trav' ),
     'id' => "{$prefix}discount_rate",
     'desc' => __( '%', 'trav' ),
     'type' => 'number',
     'std' => 0,
    ),
    array(
     'name' => __( 'Disable Cancel Booking', 'trav' ),
     'id' => "{$prefix}d_cancel_booking",
     'desc' => __( 'Disable cancel booking for this tour on confirmation page.', 'trav' ),
     'type' => 'checkbox',
     'std' => array(),
    ),
    array(
     'name' => __( 'Put schedule list section first.', 'trav' ),
     'id' => "{$prefix}sl_first",
     'desc' => __( 'Put schedule list section before main content section.', 'trav' ),
     'type' => 'checkbox',
     'std' => 1,
    ),
   )
  );

2. Please edit /single-accommodation.php, /single-tour.php, single-car.php, single-cruise.php files in Travelo theme folder to change layout.

3. You can not show location in accommodation shortcode. Travelo theme has not such feature.

Regards, C-Themes

Sam Galsen
5 years ago

Hello how are you?

How can I:
-Default the “Repeated and Selectable dates on “Tour settings”
-Default the Booking box before description                                                                                    ,

On Accommodation, Cars, Tours, cruises, is it possible with customization to display the content of all tabs below description.. Like contents for DESCRIPTION, then AVAILABILITY, AMENITIES etc.... will show along the page without user click on any tab.

On homepage, im using the "Accomodation tab, style 2" but accomodation location is not showing. Is there a way to show location. I attached a screenshot.

ThANK YOU