Hi,
I've tried posting this on the Ubercart forums but didn't get any replies.
Hoping someone here can point me in the right direction?
cheers
damo
----------------
Hi,
I'm loving Ubercart and have managed to easily setup a basic shopfront in very little time.
I need however a slightly unique config, and through my searching haven't found the best way to do it.
I'm looking after the website for our local theatre group and I'm trying to sort out the best way to sell tickets to our shows.
I have setup each show as a single product, with two attributes ; show date and ticket type (adult, junior, concession etc)
What I would like though, is for the user to select a show, and for the product page to have quantity fields for all the ticket types (all attributes) on one page. This is to enable them to order say 2 adults and 2 children in one go. We don't have a very technically literate clientèle, so I think it would confuse them to add 2 adults -> continue shopping -> select show again -> add 2 children. It would also be nice if the initial quantities were all '0' to start with (entering 0 in the config field disables the quantity box)
I believe I'll need to do a custom module (product display?), but was wondering if anyone can point me to a tutorial and some sample code? I'm ok at html/php but have never done a module before.
Is there a better way I could do this?
cheers
damo
Comments
.
I'm wondering if a way to do this without coding a custom module would be to use Views, taxonomy, and cart links - i.e. instead of having an adult ticket and child ticket as attributes, have them as separate products. If you had the specific show and date set up through taxonomy, you could use Views to display a "product page". Actually, I'm not sure if this possibility would really even involve cart links per se. Maybe it would involve more of setting up the View and separate products and changing the Ubercart settings so that adding a product to the cart doesn't redirect the page - and then you could have a "Continue" button at the bottom of the View. The main issue with an approach like this is that it is based on the custom clicking a link or button after each one.
So, maybe another approach would be to still use the product attributes feature and make them all text fields (for the quantity). Then, I think you could use the Custom Price (I think that was the name) add-on to set how the total product price would get calculated. That would require a little bit of coding, but not too much (and not a whole module). If you did it this way, it would probably also require some validation coding - i.e. they would need to buy at least one of one type of ticket - and I'm not quite sure what you would do about the default price of the product. Perhaps it could default to one adult ticket and then in the Custom Price settings you could factor this in.
The problem with each ticket
The problem with each ticket type as a separate product is that it gets quite cumbersome and difficult to update easily.
I'll look into the custom price module, but it doesn't look like it will address my need to have multiple attributes on one page :(
I *could* do a custom php page that populates a 'Cart Links' url?
Anyone else have any idea's for me?
cheers
damo
I have the same need
I have the same need and found this info with an approach of how to do it, but for the moment I can't do it.
http://old.ubercart.org/forum/support/9711/separatemultiple_%E2%80%9Cadd...
http://www.commerceguys.com/resources/articles/ubercart-custom-add-cart-...
Still searchin'...
Subscribing, greetings,
Subscribing, greetings, Martijn
Follow Up
Hello damienkee. If you still need help with this one, I've found a module that might help you. Check it out:
Ubercart Attribute Quantity: http://www.ubercart.org/project/uc_attribute_quantity
Let us know if this works or not so we can find a better way. Thanks!