Frequently Asked Questions

Customizing the inventory and listings page
Last Updated a year ago

Please note we have added a new way of customizing the aspects of the template by using listing template files in your child theme, this is available since the plugin version 7.5. Find out more about it here.

In version 3.4 of the plugin we added a new way to customize the inventory page and listings page for the Automotive plugin. Doing so requires some basic coding knowledge, we will explain how to customize your plugin however please note we do not provide free support for any plugin customizations that have been done.


To start customizing the plugin you must first create a file in the plugin directory (wp-content/plugins/) named auto_overwrite.php. This file will allow you to overwrite some of the plugin functions used. Once you created this file start by adding PHP tags in the file like so:
<?php // custom code 

?>

Now you can start customizing the pages by finding functions and pasting them into here, here is the inventory listings page with the functions numbered:

  1. listing_view() found in plugin_functions.php (wp-content/plugins/automotive/plugin_functions.php) around line 471
  2. listing_filter_sort() found in plugin_functions.php (wp-content/plugins/automotive/plugin_functions.php) around line 626
  3. inventory_listing() found in plugin_functions.php (wp-content/plugins/automotive/plugin_functions.php) around line 181
  4. listing_content() found in plugin_functions.php (wp-content/plugins/automotive/plugin_functions.php) around line 739

#4 is simply the page containing the entire listing page for each single vehicle.


Now copy the functions you wish to change and paste them into the auto_overwrite.php file you made. When copying the function make sure you get everything between the opening { and closing } or else you will get an error on your site. Your auto_overwrite.php file should look similar to this when overwriting the listing_view() function:

<?php // custom code 

function listing_view(){ 
    /* function code here */ 
} 

?>

You can make your changes to the functions without fear of your custom changes being overwritten when you update your plugin to the latest version.

Please Wait!

Please wait... it will take a second!