Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thomas Kowalski 7 posts 37 karma points
    Feb 22, 2013 @ 21:56
    Thomas Kowalski
    0

    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

  • Rune Grønkjær 1372 posts 3103 karma points
    Feb 25, 2013 @ 07:58
    Rune Grønkjær
    0

    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

  • Thomas Kowalski 7 posts 37 karma points
    Feb 25, 2013 @ 18:22
    Thomas Kowalski
    0

    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

  • Anders Burla 2560 posts 8256 karma points
    Feb 25, 2013 @ 18:40
    Anders Burla
    0

    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

  • Rune Grønkjær 1372 posts 3103 karma points
    Feb 25, 2013 @ 18:46
    Rune Grønkjær
    100

    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

  • Thomas Kowalski 7 posts 37 karma points
    Feb 25, 2013 @ 20:17
    Thomas Kowalski
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft