Automatically import Rentman products to Craft. It lets visitors create orders. Orders are automatically sent to Rentman as project requests.
This plugin requires Craft CMS 4.2.0 or later, and PHP 8.0.2 or later.
You can install this plugin from the Plugin Store or with Composer.
Go to the Plugin Store in your project’s Control Panel and search for “Rentman for Craft”. Then press “Install”.
Open your terminal and run the following commands:
# go to the project directory
cd /path/to/my-project.test
# tell Composer to load the plugin
composer require furbo/rentman-for-craft
# tell Craft to install the plugin
./craft plugin/install rentman-for-craft
- Go to Settings > Plugins > Rentman for Craft > Main settings
- Add the API URL, usually
https://api.rentman.net/
- Add the API Key, more infos here: https://support.rentman.io/hc/en-us/articles/360013767839-The-Rentman-API
- Add a cron job that executes the php script
httpdocs/craft rentman-for-craft/rentman/update-all
(adapt the path to your installation) for example once a day - Choose the templates and urls for products, categories and projects
- Click on the Customisation tab: here you can choose your own templates and settings for generated emails and pdfs
{% set product = craft.rentman.getProductById(2550) %}
{{product.displayname}}
<ul>
{% for product in craft.rentman.getProductsByCategory(3207) %}
<li><a href="{{product.getUrl()}}">{{product.displayname}}</a></li>
{% endfor %}
</ul>
<ul>
{% for product in craft.rentman.getAllProducts() %}
<li><a href="{{product.getUrl()}}">{{product.displayname}}</a></li>
{% endfor %}
</ul>
<ul>
{% for mainCategory in craft.rentman.getCategories() %}
<li><a href="{{mainCategory.getUrl()}}">{{mainCategory.displayname}}</a></li>
{% endfor %}
</ul>
<ul>
{% for mainCategory in craft.rentman.getCategories() %}
<li><a href="{{mainCategory.getUrl()}}">{{mainCategory.displayname}}</a></li>
{% if mainCategory.hasChildren() %}
<ul>
{% for child in mainCategory.getChildren().all() %}
<li><a href="{{child.getUrl()}}">{{child.displayname}}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
</ul>
{% set categories = craft.rentman.getCategoriesRecursive(0) %}
{{craft.rentman.printCategoryTree(true)|raw}}
{{craft.rentman.printCategoryTree(true, 3162)|raw}}
{{craft.rentman.printCategoryTree(false, 3193)|raw}}
The Rentman Plugin for CraftCMS provides a JavaScript API to manage projects and perform associated actions. Here is a detailed guide on how to use this API.
You can copy the rentman-for-craft.php
translations files from the plugin's translations folder to your site's translations folder and translate them there.
If you have any issues with this plugin, please create an issue on GitHub or contact us at Furbo.