Customizing Extra Price for Equipment Selection

Hi HivePress Community,

I’m Florian, a Product Designer working on a motorcycle rental platform. I’m trying to set up a feature where a vendor (the one posting the listing) can select predefined equipment they offer (e.g., helmet, jacket, gloves). Users who rent the product can then select the equipment they need from these predefined options, specifying quantity and size, with the price dynamically updating based on their choices.

I need help with:

  1. Customizing the form so vendors can select from predefined equipment, and users can choose options with dynamic price updates.
  2. Integrating these features smoothly into the booking system.

Attached are screenshots of what I’m aiming for. Any guidance on customizing HivePress for this would be greatly appreciated!

Thanks!



Hi,

If you purchased a theme or extension, please enter the license key in the forum profile settings, this will enable the Premium Support badge and ensure a 24-hour turnaround time.

1 Like

Hi @andrii thanks for this information, I corrected the error by entering my license key in my profile.

1 Like

Hi,

Thank you for adding the key. The easiest way to do this is to use a custom implementation, but it will require some coding. If you’re familiar with coding or have a developer, let us know and we’ll provide you with general guidance.

As for the quantity feature, it is also not available for extras, but we plan to add it in future updates. If you need this feature urgently, we can provide general guidance.

I implemented a custom PHP function in my HivePress child theme but struggled to find a working hook or code snippet. I also tried using filters and actions, but none of them seemed to work on extra price when I want to force a default price and option title. It appears that customizing extra pricing isn’t straightforward, and I would appreciate any guidance or advice on how to approach this issue.

I recommend using the hivepress/v1/models/listing/attributes hook, this way you can filter and customize the “price_extras” attribute. You can check some examples here Search · user:hivepress models/listing/attributes · GitHub and also search forum topics by the hook name.

The Extras attribute has the Repeater field type so you can adjust the inner field parameters for each repeater row, or add extra fields like Quantity, etc. You can also turn the first Text field which allows entering any extra name into a Select with pre-defined equipment names to select from.

Hope this helps

Hi @ihor thanks I will explore this solution and let you know