Buynow, multiple products?
I notice the buynow widget is a RadListView
So is the control able to support multiple products, or could it be enhanced to achieve that?
(I also don't mean can I add multiple items to checkout at the same time, but instead give it 3 products and just have it run like a RadListView repeater...)
Hello Steve,
That control is designed to work with a single product only. The code expects there to be only one of everything. The reason for it being a RadListview is to get databinding in the widget templates so anyone could drag / drop any property of the product they want.
You could override InitializeControls and tie the button click to a different event handler but you'd have to figure out how to know which product should be added to the cart. Plus it only accepts a single GUID for a product Id.
I suppose it would be possible but it would probably be easier to make your own control.
Regards,
Randy Hodge
the Telerik team
Thanks Randy,
Could I bug you for a PITS to get a multiple buy-now version?
Hi Steve,
Sure thing but keep in mind using the Buy Now widget for similar purposes is already explained in this blog post. It adds the buy now to the product list widget. Here is the PITS item:
PITS