=== Ordrivo Prime Cars — Marketplace ===
Contributors: ordrivo
Tags: car listings, vehicle sales, car rental, vehicle marketplace, enquiries
Requires at least: 6.4
Requires PHP: 7.4
Stable tag: 13.3.86
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Ordrivo Prime Cars — Marketplace 13.3.86
Installation and User Guide

CURRENT RELEASE — 13.3.86
Paid seller listings run for 30 days. When a listing expires, it is unpublished as a draft and the seller is notified by email when a seller email address is on file. Administrators can renew an expiring or expired listing from the Prime Cars administration terminal; the renewal adds 30 days and republishes it. Administrators can also edit an expired draft and republish it to start a new 30-day term. Vehicle detail and managed contact pages use the active theme's template hierarchy so theme headers, navigation and global styles remain in place.

EARLIER ADMINISTRATION INTERFACE UPDATE (13.3.72)
The contact inbox, rental agreements and rental terminal controls use the dedicated scoped administration stylesheet. Administration presentation styles were removed from embedded style blocks and inline attributes; the standalone customer message page uses the front-end stylesheet.
The live administration terminal, customer enquiry inbox, payment and rental settings, and plugin post-edit screens load the dedicated scoped admin stylesheet. Panels, statistics, navigation, forms and tables use responsive layouts at desktop, tablet and mobile widths. Seller application and vehicle enquiry forms also receive responsive control styling.

PACKAGE CONTENTS
- Ordrivo-Prime-Cars-13.3.86-Plugin.zip: installable WordPress plugin. Its archive contains runtime PHP files, assets, language catalogs, LICENSE.txt, this README.txt and a single CHANGELOG.txt.
- Ordrivo-Prime-Cars-13.3.86-Documentation.zip: separate customer guide and release-notes archive.
Install only the Plugin ZIP in WordPress. The Documentation ZIP is reference material.

REQUIREMENTS AND INSTALLATION
Minimum compatibility: WordPress 6.4 or later. No latest tested WordPress version is claimed.
The plugin declares WordPress 6.4 or later and PHP 7.4 or later with the mbstring extension. It also requires MySQL or MariaDB with named advisory-lock support for serialized listing and rental operations. Use a maintained PHP version supported by your WordPress installation. Administrator access is required for configuration.
1. Back up your WordPress files and database; test the update on staging first.
2. Go to Plugins > Add New > Upload Plugin and select the Plugin ZIP.
3. For an existing installation, choose the in-place replacement when prompted.
   Keep the plugin folder name ordrivo-prime-cars-new. Do not delete site data.
4. Activate the plugin and open Vehicles / Fordon in the administration menu.
5. Check the public pages and settings before accepting customer enquiries.

MARKETPLACE PAGES
Missing pages are created with these slugs and shortcodes:
  bilar-till-salu : [opcm_prime_sale_page]
  hyr-bil        : [opcm_prime_rent_page]
  salj-din-bil   : [opcm_prime_sell_page]
Existing page content, publication status, titles and metadata are preserved.
If a page is empty, private, draft or contains different content, review it in
WordPress Pages. Add the intended shortcode and publish only when desired.
These are explicit administrator actions using WordPress's page editor.

BUSINESS AND GENERAL SETTINGS
Review the company name, contact details, notification email, opening hours,
currency, banners and any demo content in the relevant settings screens.
Replace seller/demo details with your own business information before launch.
Add actual sale and rental vehicles with accurate prices and authorized images.
The demo installer is optional; do not use it unless example vehicles are wanted.

RENTAL BUSINESS SETTINGS — RETAINED FROM 13.3.51
Open Vehicles / Fordon > Live Admin Terminal and find
"Uthyrningsföretag / Rental business".
Required: business name, address and valid email.
Optional: phone, registration number, authorized representative, logo URL,
and the "Show business stamp" checkbox.
For a logo, upload your image through the WordPress Media Library and paste its
file URL into the logo field. Leave the field empty for no logo.
Save the settings before creating a rental agreement.

RENTAL AGREEMENTS
1. Add and publish a rental vehicle with prices for the offered rental periods.
2. Open a rental request in the terminal, or use the direct rental creation panel.
3. Complete the customer, guarantor, vehicle, date, price and terms fields.
4. Check the displayed rental-business identity and the rental terms.
5. Obtain the required customer and guarantor signatures, then save the agreement.
6. Use the view/print agreement action and the browser print dialog.
The header, footer, optional stamp and representative section use the saved
rental business. Business details, logo URL and stamp choice are stored with the
agreement. Changing global business settings does not change existing agreements.
Keep previously used logo media files available; the image bytes are not embedded.
Older agreements without a business snapshot must be reviewed and explicitly
saved before printing. Existing historical terms are not silently rewritten;
check and correct any old business references before saving.

PAYMENTS, REQUESTS AND WORKSHOP CONTACTS
Set the listing fee, payment currency and manual payment instructions in
Live Admin Terminal > Listing payment & settings.
Listing payments are manual. Staff confirm payment and approve publication.
Rental enquiries and appointment requests require staff review/confirmation.
The plugin does not automatically collect payments or convert exchange rates.
Review contact settings, workshop services and appointment scheduling separately.
The storefront offers 16 language choices. Core customer workflows are available in English, Swedish and Turkish; other selected storefront languages may fall back to English where translations are incomplete.

CONTACT BUSINESS IDENTITY
Open Vehicles / Fordon > Contact inbox / Kontaktinkorg > Kontaktinställningar.
Set Business name, optional Logo URL, optional Short brand mark, City, Address,
Phone and Email. The logo and banner fields have a Media Library picker.
If no logo is selected, the business name appears as text. If no short brand
mark is entered, that decoration is omitted. City is optional. An empty banner
uses the neutral CSS background; no seller city photograph or logo is bundled.
The contact name drives the hero, logo alternative text, home-link accessible
name, standalone page title, map title and reply-email subject.
The name falls back to the configured general company name, then the site title.
Configure your general marketplace name in Settings as well. Rental agreement
identity has its own explicit settings and saved snapshots, described above.
Previously saved custom text, address, phone and banner URLs are preserved;
review those values and replace any old business details before publication.
Saved brand_name/brand_logo values from the supplied 13.3.52 build are recognized.
Check the page with ?opcm_lang=en, ?opcm_lang=sv and ?opcm_lang=tr.

GOOGLE MAPS EMBED
The contact page map is enabled by default to preserve existing behavior. Open Vehicles / Fordon > Contact inbox / Kontaktinkorg > Contact settings and clear “Enable Google Maps embed” to disable it. When enabled, a custom Google Maps embed URL is used if supplied; otherwise, when an address is configured, the plugin builds an address-based Google Maps embed URL. The embedded iframe is lazy-loaded, so the browser request to Google Maps can begin when the iframe approaches the viewport. That request may disclose the visitor’s IP address, browser/device information and referrer, depending on browser behavior and Google’s policies. With the setting disabled, no embedded map iframe is rendered and no automatic map iframe request is made. Separate “Get directions” and “Open Google Maps” links remain available; they contact Google only if a visitor clicks them.

SOLD VEHICLES
Edit a published sale vehicle. Under Vehicle details, set Sale status /
Försäljningsstatus to Sold / Såld and click Update. It is a dropdown, not a checkbox.
Alternatively, use Mark as sold in the Vehicles list. The list includes a Status
column. To reverse, select Available or use Mark as available in the list.
Sold vehicles remain published. The catalogue has a localized Sold badge and
shows Sold in place of the price. The detail price is replaced by Sold and a
notice replaces the complete enquiry form, including its fields and submit button.
New vehicle enquiries are rejected on the server with HTTP 409 before a request
record or notification is created, including posts from an older cached form.
Existing enquiries remain stored. Sale status does not disable rental bookings.
The supplied 13.3.52 build's stored sold flags remain recognized. Saving the
new dropdown or row action synchronizes both representations. Missing status
fields during an editor save preserve the existing state.
If using full-page/CDN caching, purge the vehicle and catalogue pages after a
status update so customers immediately see the changed presentation.

TROUBLESHOOTING AND SUPPORT
- Missing sale, rental or sell pages: confirm the plugin is active, then check
  Pages for the expected slugs above. Add the matching shortcode to a published
  page, save, and resave Settings > Permalinks if routes still return 404.
- Form or photo upload fails: check required fields, JPG/PNG/WebP format, the
  20 MB combined photo limit, PHP upload_max_filesize/post_max_size, and available
  disk space. Retry with fewer or smaller photos. The public application limit
  is three seller applications per source IP per hour across email addresses.
- Public vehicle enquiry reaches its limit: at most five enquiries per source IP
  in one hour across recipient email addresses; a recipient/IP limit also applies.
  Rejected enquiries do not create request records or send notification email.
- Confirmation email is missing: verify the notification address, check spam,
  and ask the host to inspect WordPress mail delivery. A transactional SMTP
  plugin or mail service may be needed; mail transport is not bundled.
- Payment or approval is pending: payments are manual. Follow the instructions
  shown on the listing form, then allow staff to confirm receipt and approve the
  application in the administration terminal. No card processor is included.
- Rental dates conflict: check the vehicle's availability and existing requests,
  choose different dates, then resubmit. Staff confirm rental requests.
- Staff cannot access terminal or contract controls: sign in with an account
  that has the WordPress manage_options capability and check the user's locale.
When contacting support, include the plugin version, WordPress/PHP versions,
site URL, affected page URL, exact error text, steps to reproduce and timestamp.
Do not send passwords, payment card data or customer personal data unnecessarily.
Support: developer@ordrivo.com or https://ordrivo.com/contact/?lang=en.

REQUIREMENTS AND INCLUDED FILES
Requires WordPress with PHP 7.4 or later, mbstring, and MySQL/MariaDB with named advisory-lock support for serialized application admission and rental operations. The installable plugin archive contains runtime PHP files, assets, language catalogs, LICENSE.txt, README.txt and one CHANGELOG.txt. The separate Documentation ZIP contains this guide, release notes and the full product description. WordPress Media Library, WP-Cron and wp_mail are used; email delivery depends on the host or a separately configured mail service. The optional contact-page Google Maps iframe makes a direct browser request to Google Maps when enabled; see GOOGLE MAPS EMBED above. No Google Maps API key is used. Abandoned pending application photos are removed after 30 days; rejected applications are cleaned 30 days after rejection. Published vehicle assets are retained. Seller listing payments remain manual. Each approved paid listing is published for 30 days. At expiry, the vehicle is changed to draft and the seller is notified by email when an email address is on file. To renew, use the administration terminal’s “Renew 30 days and publish” action, or edit the draft vehicle and republish it. No payment gateway, mail relay, maps API or exchange-rate service is bundled. Core storefront strings support English, Swedish and Turkish; other storefront locales may fall back to English. WordPress administration follows the administrator's selected locale.

RELEASE NOTES AND DOCUMENTATION FILES
The installable Plugin ZIP includes CHANGELOG.txt. The separate Documentation ZIP
contains this guide, matching release notes and the full product description.
The plugin uses the active WordPress theme templates for vehicle details and the
managed contact page. Review the public pages with the site's selected theme.

LICENSE
GPL-2.0-or-later. See LICENSE.txt.
