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...?
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.
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...?
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.
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
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 :)
Cool, just what I wanted.
is working on a reply...