Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Matt Taylor 873 posts 2086 karma points
    Jun 24, 2011 @ 11:28
    Matt Taylor
    0

    Dynamic product pricing?

    I would like to sell hotel rooms which is a little more complex than selling books or CDs.

    For example I sell a double room for $70 per night and a single room for $50.

    I might then book 2 double rooms and 1 single room for 3 nights.

    2 x $70 x 3 nights = $420

    1 x $50 x 3 nights = $150

    $420 + $150 = $570 in total

    I'm trying to figure out how this mught be done in uCommerce because for each room product you've effectively got the two quantities to take into account, the number of rooms and the number of nights stay.

    I had wondered if the best way to do it was to do all the calculations behind the scenes and add a single product to the basket with my calculated price. Is this possible?

    Perhaps there is a better way to do it?

    Thanks,

    Matt

  • Christian Wendler 46 posts 155 karma points
    Jun 24, 2011 @ 11:40
    Christian Wendler
    0

    You might want to add a custom property to each order line, that holds the number of nights. Next you would have to add your own basket pipeline task, that calculates the price based on room quantity and number of nights. If you need further assistance, I could come up with some code.

    bye

    Christian

  • Matt Taylor 873 posts 2086 karma points
    Jun 24, 2011 @ 12:30
    Matt Taylor
    0

    Thanks Christian for your help there. It seems simple enough.

    Would it also be easy enough to combine these products so that it appeared as one price in the basket?

    I say this because the hotel rooms will be sold as part of a package deal with the price of a football ticket and needs to appear as one item rather than a product breakdown. The actual price of the ticket needs to be masked.

    So you would have something like:

    3 x Football tickets
    2 x Double room for 3 nights
    1 x Single room for 3 nights

    Total $870

    I've asked as similar question before but the answer involved using Marketing Foundation which I won't have to begin with as it will be using Free Edition.

     

     

  • Matt Taylor 873 posts 2086 karma points
    Jun 24, 2011 @ 12:37
    Matt Taylor
    0

    Hmm, I suppose it would be simple enough to just not output the individual prices and just show a total. :)

    But when the basket was sent to PayPal I'd need to hide it there two...?

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jun 27, 2011 @ 09:05
    Søren Spelling Lund
    0

    Hi Matt,

    You don't have to do anything if you're using the standard PayPal provider. It will automatically sum everything and send it as one to PayPal.

    Also if a customer is booking multiple items on separate lines you can add a custom property with an overall identifier of each product and just display the primary item.

Please Sign in or register to post replies

Write your reply to:

Draft