The media links online plugin will pull down new & used model data from our system to your Wordpress site. New models are managed and kept up to date by either our central marketing team or the manufacturer directly. We do store all the model data and image assets directly within your wordpress site in your uploads in a folder called 'mlo-assets' and then sub divided into 'new' / 'used' & 'news'.
Installing the plugin.
First of all take the zip file provided by the media links online team and navigate to the plugin area inside your wordpress site.
- Navigate to Plugins > Add New.
- Click the Upload Plugin button at the top of the screen.
- Select the zip file from your local filesystem.
- Click the Install Now button.
- When installation is complete, you’ll see “Plugin installed successfully.” Click the Activate Plugin button at the bottom of the page.
Once the plugin is installed.
Once the plugin is instaled you should see a new 'Assets' tab on the left hand side of your WP Dashboard menu. Hover over this & go to 'MLO Settings > API Settings'
This is then where you can enter the following credentials;
Dealer ID: Provided by the MLO team
Auth Token: Provided by the MLO team
Those credentials should be able to Sync the new Triumph range and an old set of used stock we have in the system for you (i've cut the used stock back to 10 models so you can test by the triumph range should sync everything). To actually kick the plugin off to start Syncing, in the same 'MLO Settings' area above you need the first tab 'Sync' and then you can click the 'Sync New', 'Sync Used' or Sync All' buttons and the process will start, once finished the stock and images will then be in your system for you to display.
Displaying the content.
What we do here is create a page for both the new & used bikes to appear and create the permalinks you desire. So for used it's generally something like '/used-bikes' & new bikes will be something like '/yamaha-new-bikes', '/kawasaki-new-bikes' etc but this can obviously be whatever you choose. When you do have the pages ready you simply add a shortcode into your page to get the information to show. Back in the 'MLO Settings' area you'll see a 'Shorcodes' tab. Click on this and look for the following;
For used bikes search page;
[mlo-search-results] - You simply need to add this shortcode onto your page and the used bike search will show on your website.
For the new bikes page;
Select your catalogue from the list on the left hand side like so and the shortcode will update on the righthand side of the screen. Take this and place it on your new bikes page you created.
Latest Stock
There is a latest stock shortcode that will allow you to place the latest 'x' amount of bikes on any page of your site, to do this select your catalogue again and any filters you may need like a brand and place the shortcode on your site;
Template Overrides
Once you have stock in the site and you have it displaying on the front end, you may then want to go in and override the templates. There are alot of templates you can override so i'll leave it up to you to look around and have a play but i'll just let you know where you need to do it. Inside of the actual plugin source, there is a folder called 'views' with the following sub-folders;
- asset
- This folder contains the templates for the new & used layouts when you end up on the final model.
- asset-category
- This contains the layout of the models after you've selected a new bike category
- shortcode
- This contains the majority of the templates from latest stock layouts to the serach filters on used stock and the new bikes category layout.
Overwriting these templates
To overwrite the templates you need to create a folder within your child theme called 'mlo'. Within here then you can mimic the folder structure above for any templates you want to override, but you need to exclude the top level 'views' folder. So if you wanted to override the new model view page for example you would need to copy the template file into your theme like so;
Source file: mlo-plugin > views > asset > single-content-new.php
Your override: 'theme-folder' > mlo > asset > single-content-new.php
The site will then render your custom file over that of the plugins, so you can change column structures / layouts add your own custom code etc... This applies to any template you see within the views folder in the source plugin folder.