Plugin Overview

Narnoo provides WordPress plugins that allows you to create a tourism listing websites. The distributor plugin can manage the following tasks:

Narnoo Distributor Plugin

  • Manage suppliers within Narnoo
  • Import suppliers into the local WordPress website
  • Import supplier’s products into the local WordPress website

You can use the plugin for all functions or just the ones that you require.

Import/Create Supplier Listings Pages

Overview

Our WordPress plugin allows you to import supplier listing data from Narnoo’s database into your local WordPress database. This information includes:

  • Text
  • Feature Image
  • Supplier Contact Details

 

How This Works

 

  1. The WordPress plugin imports supplier information from Narnoo’s database and stores this within the WordPress local database.
  2. This information is stored as a custom post type within WordPress’s database. These custom post types are:
    1. narnoo_attraction = tours and attraction supplies
    2. narnoo_accommodation = accommodation supplies
    3. narnoo_service = Service type suppliers
    4. narnoo_dining = Dining type suppliers
  3. A relationship is created based on category and subcategories. These can be changed via the WordPress backend.

 

 

  1. Narnoo supplier data is stored as custom post meta data, these can be edited from the page admin area – listed in appendix.

How to display this information

As all the information is stored within the local WordPress database, you therefore have the ability to display and edit this data however you like.

This is done via WordPress’s custom post type templating: For more information: https://developer.wordpress.org/themes/template-files-section/custom-post-type-template-files/

If you have one page design for each category then you only have to create the one template file and copy it with the respective naming scheme.

The template files required are:

  • single-narnoo_attraction.php = tours and attraction supplies
  • single-narnoo_accommodation.php = accommodation supplies
  • single-narnoo_service.php = Service type suppliers
  • single-narnoo_dining.php = Dining type suppliers

 

Archive template files required are:

  • archive-narnoo_attraction.php = tours and attraction supplies
  • archive-narnoo_accommodation.php = accommodation supplies
  • archive-narnoo_service.php = Service type suppliers
  • archive-narnoo_dining.php = Dining type suppliers

 

Import/Create Supplier’s Product Pages

Overview

Our WordPress plugin allows you to import supplier’s product listing data from Narnoo’s database into your local WordPress database. This information includes:

  • Title
  • Feature Image
  • Text
  • Image Gallery
  • Details
    • Operator Name
    • Priced From
    • Duration
    • Start Time
    • End Time
  • Transport → Travel information
  • Purchases → Optional purchases
  • Packing → What to bring
  • Health → Health information
  • Children → Child information
  • Itinerary
  • Additional Information

 

How it works

  1. The WordPress plugin imports supplier product information from Narnoo’s database and stores this within the WordPress local database.
  2. This information is stored as a custom post type within WordPress’s database. The custom post type is:
    1. narnoo_product
  3. Product information is stored as custom post meta data within the WordPress database and is editable from the page admin area – listed in appendix

How to display this information

As all the information is stored within the local WordPress database, you therefore have the ability to display and edit this data however you like.

This is done via WordPress’s custom post type templating: For more information: https://developer.wordpress.org/themes/template-files-section/custom-post-type-template-files/

The template files required are:

  • single-narnoo_product.php

Archive template file required is:

  • archive-narnoo_product.php

 

Meta Data

When creating custom template pages you can access stored data which has been imported through Narnoo via the following custom metadata keys. You can edit any of this data manually from the page administration areas.

Appendix – Listing custom meta data

$dataSource get_post_meta(get_the_ID(), ‘data_source’,        true); 
$operatorId get_post_meta(get_the_ID(), ‘operator_id’,        true);
$category get_post_meta(get_the_ID(), ‘category’,    true);
$subcategory get_post_meta(get_the_ID(), ‘sub_category’,    true);
$supplierName get_post_meta(get_the_ID(), ‘businessname’,       true); 
$country get_post_meta(get_the_ID(), ‘country_name’,    true);
$state get_post_meta(get_the_ID(), ‘state’,    true);
$suburb get_post_meta(get_the_ID(), ‘suburb’,    true);
$location get_post_meta(get_the_ID(), ‘location’,    true);
$postcode get_post_meta(get_the_ID(), ‘postcode’,    true);
$keywords get_post_meta(get_the_ID(), ‘keywords’,  true);
$phone get_post_meta(get_the_ID(), ‘phone’,    true);
$url get_post_meta(get_the_ID(), ‘url’,   true);
$email get_post_meta(get_the_ID(), ’email’,    true);
$latitude get_post_meta(get_the_ID(), ‘latitude’,      true);
$longitude get_post_meta(get_the_ID(), ‘longitude‘,     true);
$facebook get_post_meta(get_the_ID(), ‘facebook’,    true);
$twitter get_post_meta(get_the_ID(), ‘twitter’,  true);
$instagram get_post_meta(get_the_ID(), ‘instagram’,  true);
$youtube get_post_meta(get_the_ID(), ‘youtube’,  true);
$tripadvisor get_post_meta(get_the_ID(), ‘tripadvisor’,  true);

Appendix – Product custom meta data

 

$narnooId get_post_meta(get_the_ID(), ‘narnoo_product_id’,        true); 
$operatorId get_post_meta(get_the_ID(), ‘narnoo_operator_id’,        true);
$category get_post_meta(get_the_ID(), ‘narnoo_listing_category’,    true);
$subcategory get_post_meta(get_the_ID(), ‘narnoo_listing_subcategory’,    true);
$minPrice get_post_meta(get_the_ID(), ‘product_min_price’,       true); 
$bookingLink get_post_meta(get_the_ID(), ‘product_booking_link’,    true);
$gallery get_post_meta(get_the_ID(), ‘product_booking_link’,    true);
$video get_post_meta(get_the_ID(), ‘narnoo_product_video’,    true);
$print get_post_meta(get_the_ID(), ‘narnoo_product_print’,    true);
$duration get_post_meta(get_the_ID(), ‘narnoo_product_duration’,    true);
$startTime get_post_meta(get_the_ID(), ‘narnoo_product_start_time’,  true);
$endTime get_post_meta(get_the_ID(), ‘narnoo_product_end_time’,    true);
$transport get_post_meta(get_the_ID(), ‘narnoo_product_transport’,   true);
$purchase get_post_meta(get_the_ID(), ‘narnoo_product_purchase’,    true);
$health get_post_meta(get_the_ID(), ‘narnoo_product_health’,      true);
$packing get_post_meta(get_the_ID(), ‘narnoo_product_packing’,     true);
$children get_post_meta(get_the_ID(), ‘narnoo_product_children’,    true);
$addition get_post_meta(get_the_ID(), ‘narnoo_product_additional’,  true);
$itinerary get_post_meta(get_the_ID(), ‘product_itinerary’,  true);

Commerce Widget Information

For information on the Narnoo Commerce plugin please go to our dedicated GitHub page found here.