Copied to clipboard

Flag this post as spam?

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


  • Matt Taylor 873 posts 2086 karma points
    Jun 24, 2011 @ 13:57
    Matt Taylor
    0

    Combining separate products as one in the basket?

    This is kind of related to another of my posts.

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

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

    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 suppose it would be simple enough to just not output the individual prices and just show a total. :)

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

  • Anders Burla 2560 posts 8256 karma points
    Jun 24, 2011 @ 14:08
    Anders Burla
    0

    Yes you could easily do that in your xslt. Maybe add a property to the orderlines with their "bundle" id and then in the cart sort the orderlines based on the bundle id and just calc the total price for the bundle and output that.

    The paypal thing I think we can solve somehow with the .NET API. We might have to extend bit of Tea Commerce to solve it, be we could do that. Then you could maybe just inherit from our PayPal provider og I can send you the code for the provider and you could refactor it for your need in your solution.

  • Matt Taylor 873 posts 2086 karma points
    Jul 12, 2011 @ 15:02
    Matt Taylor
    0

    Anders,

    When you say add a property you mean call OrderLine.AddProperty.

    Does this need to be an actual property that I have previously added to the product Document Type or can the property just be created on the spot?

    Cheers,

    Matt

  • Anders Burla 2560 posts 8256 karma points
    Jul 12, 2011 @ 15:15
    Anders Burla
    0

    You can add what every property you want. Its just a normal dictionary with a key/value pair. So go ahead and add all the properties you want :)

  • Matt Taylor 873 posts 2086 karma points
    Jul 12, 2011 @ 15:20
    Matt Taylor
    0

    Cool, just what I wanted.

Please Sign in or register to post replies

Write your reply to:

Draft