Skip to main content

Version Docs Updated

Purpose

This page describes the Vendor Vehicle Submission module as a standard reference, covering both technical and operational aspects.

πŸš— Vendor Vehicle Submission

Contents​

  • Usage
  • Features
  • Developer Notes

The Vendor Vehicle Submission module is designed to manage and present vendor vehicle submission processes to visitors on the Rentiva platform.

Usage​

IMAGE COMING SOON

A screenshot showing the frontend (visitor-facing) appearance of this module will be added here.

To add this module to any page or post, use the shortcode below:

[rentiva_vehicle_submit]

You can also insert it visually from the Gutenberg block editor by selecting "MHM Rentiva β†’ Vendor Vehicle Submission".

Parameters​

The following parameters are available inside the shortcode:

ParameterDefaultDescription
--This shortcode accepts no parameters.

Features​

πŸ“± Responsive Design​

  • Mobile: Single-column layout.
  • Tablet (under 782px): Optimized view.
  • Desktop: Full view at the configured column count or width.

πŸš€ Performance-Focused​

  • Smart Caching: Database queries are optimized and cached by the system.
  • Conditional Loading: Static assets are only enqueued on pages where the module is used.

πŸš— Transfer Location and Route Selection (v4.23.0)​

As of v4.23.0, the vehicle submission form includes fields specific to the transfer module.

City-Filtered Location Selection​

Transfer locations are automatically filtered based on the vendor's _vendor_city meta value. Queried via LocationProvider::get_by_city(). Vendors can only see and select locations belonging to their own city.

  • Meta key: _mhm_rentiva_transfer_locations (array)
  • Meta key: _mhm_rentiva_transfer_routes (array)

Per-Route Price Entry​

For each selected route, the vendor can enter their own price within the min_price / max_price range set by the admin. Prices outside the range are rejected.

  • Meta key: _mhm_rentiva_transfer_route_prices (JSON)
  • Fallback: If no vendor price is set, the route's base_price value is used.

Passenger and Luggage Capacity​

  • Passenger capacity: Maximum number of passengers the vehicle can carry.
  • Large luggage: Maximum large suitcase capacity.
  • Small luggage: Maximum small bag/carry-on capacity.

Vehicle Document (Registration) Upload​

The vendor can upload the vehicle registration document via the form. The document is reviewed by the admin for verification.

Developer Notes​

  • HTML Structure: All containers start with the .mhm-rentiva-vehicle-submit-wrapper class.
  • Customization: CSS variables (--mhm-color-primary, etc.) are inherited from the global css-variables.css file.
  • Transfer fields: Shown/hidden via JS toggle when service type is set to "Transfer" or "Both".

Section Summary​

  • The Vendor Vehicle Submission form includes transfer location/route selection, per-route pricing, and capacity fields in addition to core vehicle information.
  • City-based filtering ensures vendors can only see locations within their own region.

Changelog​

DateVersionNote
23.04.20264.27.2English translation added.
27.03.20264.23.0City-filtered transfer location/route selection, per-route pricing, capacity fields, and registration upload documented.
19.03.20264.21.0-docsPage alphabetized and image placeholder added.