I need to make websitr for renting some equipement. I think that teaCommerce will be greate to this, but of course I need to make some changes. But before I make decision, I would like to have some answers :)
1. Each product will have 3 prices of rental: for 1 day, for 1 week and for 1 month. Correct me, if I'm wrong: I just need to add three more fields in Prdcut DocumentType? And of course display them via XSLT in frontend?
2. Before adding product to cart, customer will need to enter dates "from" and "to". I can add it to order line by custom properties, yes?
Sounds like an interesting project. Tea Commerce will do it easily.
1. I would treat your three prices as variants of the same product. In Tea Commerce this is done by creating subnodes to your product node. Each variant will then have a unique price and can also have other unique properties. When adding the product to the cart, add the chosen variant, and not the main product.
2. Yes. This will be simple order line properties. You might want to use the unique order line functionality so the customer can but more of the same product, but with different dates.
1. Yes, I know about product variants, but I'm not sure I can use it in this project, before overall rent price need to be calculated from renting time, fx. 2 months 1 week and 3 days, and I need to use - in this example - all three prices. I think this is possible with combination of additional fields, custom properties and JavaScript, but I'm concerned about visitors with JavaScript disabled...
A basic rule is - always do price calculations on the server. So you can add the info to the order line and then calc the prices server side. Then it will work even if people doesnt have JS
You can add the prices to the product in three different properties. Then make sure they are added to the order line automatically when the new order lines is created.
Now you hook into the Tea Commerce C# API and calculate the order line price on the OrderLineAdded event.
Pretty simple stuff (If you know how or just google it) Lots of people have done something like that.
Multiple prices for one product?
Hi,
I need to make websitr for renting some equipement. I think that teaCommerce will be greate to this, but of course I need to make some changes. But before I make decision, I would like to have some answers :)
1. Each product will have 3 prices of rental: for 1 day, for 1 week and for 1 month. Correct me, if I'm wrong: I just need to add three more fields in Prdcut DocumentType? And of course display them via XSLT in frontend?
2. Before adding product to cart, customer will need to enter dates "from" and "to". I can add it to order line by custom properties, yes?
Best regards
Thomas
Hi Thomas,
Sounds like an interesting project. Tea Commerce will do it easily.
1. I would treat your three prices as variants of the same product. In Tea Commerce this is done by creating subnodes to your product node. Each variant will then have a unique price and can also have other unique properties. When adding the product to the cart, add the chosen variant, and not the main product.
2. Yes. This will be simple order line properties. You might want to use the unique order line functionality so the customer can but more of the same product, but with different dates.
/Rune
Hi Rune,
Thanks for your reply.
1. Yes, I know about product variants, but I'm not sure I can use it in this project, before overall rent price need to be calculated from renting time, fx. 2 months 1 week and 3 days, and I need to use - in this example - all three prices. I think this is possible with combination of additional fields, custom properties and JavaScript, but I'm concerned about visitors with JavaScript disabled...
best regards
Thomas
Hi Thomas
A basic rule is - always do price calculations on the server. So you can add the info to the order line and then calc the prices server side. Then it will work even if people doesnt have JS
Kind regards
Anders
Yes, Anders is right.
You can add the prices to the product in three different properties. Then make sure they are added to the order line automatically when the new order lines is created.
Now you hook into the Tea Commerce C# API and calculate the order line price on the OrderLineAdded event.
Pretty simple stuff (If you know how or just google it) Lots of people have done something like that.
/Rune
You both are right. I'm still waiting for customer's final decision, so I have some time for testing.
Thank you both for advice :)
Thomas
is working on a reply...