Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#4314 by ujackson
13 Jun 2017, 09:36
Hi,
I'm trying to use Aimeos for a rental website. I want to display two separate prices for both hourly and daily rates at once. I also want to configure separate prices for different locations.
Can you point me in the right direction on how to achieve this. Thanks.
#4316 by aimeos
13 Jun 2017, 22:42
You can create an additional price type and use it for your hourly rates. The price partial will render them too so you can style them via CSS: https://github.com/aimeos/ai-client-html/blob/master/client/html/templates/common/partials/price-default.php#L45

If you want to change the format to "49$/hour" for example, please read the article about changing the price format for specific types: https://aimeos.org/docs/Developers/Html_frontend/Change_price_type_formats

The price with type "default" will be used for calculation in the basket and the one the customer has to pay at the end.

How do you "define" different locations?
#4319 by ujackson
14 Jun 2017, 08:21
Many thanks for your response.
Does it mean I won't be to add the new price type "hourly" for calculation in the basket and the one the customer has to pay at the end. I want the customer toggle between the two prices and the calculations should be done based on chosen price.

What I mean by "different locations".
I want to be able to display product availability based on selected city or state.
#4321 by aimeos
14 Jun 2017, 19:30
You can only use one price type for the calculation but you are free to decide which one (hourly or daily) as shop owner (not as customer). To give customers this option, you need to create selection products with two articles, one with the daily price, the other with the hourly rate.

Aimeos allows more than one stock level for products (by different stock types a.k.a. warehouses). This is ideal for different locations. If the prices should differ for those locations as well, you need the ai-sites extension from the Aimeos company: https://aimeos.com/extensions/#c1331
#4326 by ujackson
17 Jun 2017, 15:10
Thanks for your feedback.

I have one little challenge.
How can I create selection products with two articles, one with the daily price, the other with the hourly rate.
When I go to add selection product in expert mode. I do not see this option. Is this the same as "Associated attributes"?
#4327 by ujackson
17 Jun 2017, 15:52
ujackson wrote:Thanks for your feedback.

I have one little challenge.
How can I create selection products with two articles, one with the daily price, the other with the hourly rate.
When I go to add selection product in expert mode. I do not see this option. Is this the same as "Associated attributes"?


I figured it out:
https://aimeos.org/docs/User_Manual/Adm ... l_products

Many thanks.