Best method for custom product type?

  • Posts: 42
  • Thank you received: 2
13 years 3 months ago #40498

Hi all
I am toying with the idea of trying to sell event tickets using HikaShop. This is for a business that does daily sailing tours on a "Tall Ship" that would like to sell tickets online. There are a total of six different tour types, all with different pricing structures for adult, child and infant passengers and each with a different number of tickets available per tour. The company offers up to three tours per day with different tour types being offered on different days. I am guessing that I can use Categories to differentiate between each tour type - A parent category of "Sailing Tours" with child categories for "Noon Sail", "Afternoon Sail" etc. I also assume that I can use Custom Fields (I have Business Edition) to set pricing for each ticket type and to allow the customer to specify how many of each ticket type they would like to purchase. Pricing could be set using the product table custom field, and ticket quantities could be collected via the Item table. With that structure, each individual tour (for example, the Noon Sail happening on June 1, 2012) would be a Product with a Quantity that matched the number of tickets available for the tour. Customers would specify the desired number of each type of ticket and would receive a total price upon adding the items to their cart.

I am fairly certain I know the answer to this already, but is it possible to create such a configuration without having to write custom code? My PHP skills are fair to average, but I am new to Joomla and have just the vaguest concept of the whole application framework structure...

Thanks
Matt


It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.

Please Log in or Create an account to join the conversation.

  • Posts: 83904
  • Thank you received: 13581
  • MODERATOR
13 years 3 months ago #40667

Hi,

You should use characteristics instead of custom fields. That will allow you to handle quantities and prices per variant of the product without any custom code.
More information here:
www.hikashop.com/en/support/documentatio...html#characteristics

The following user(s) said Thank You: NerdHerd.hr

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 2
13 years 3 months ago #40672

Nicolas,
Thank you for the reply. I though of that, but haven't been able to figure out quite how to handle the quantity side of things. I thought about making a Characteristic for each ticket type with entry for "1 Adult", "2 Adult", "3 Adult" etc, then handle the pricing with the Variants. In this way, I figured I could handle pricing, but I'm not sure how to tie this into the quantity. Again, there are a fixed number of tickets available for each tour, so how can I deduct the number of tickets chosen via the Variant from the total quantity available for each tour?

Thank You
Matt


It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.

Please Log in or Create an account to join the conversation.

  • Posts: 83904
  • Thank you received: 13581
  • MODERATOR
13 years 3 months ago #40893

Once you add a characteristic to your product, click on the 'manage variant' button. There, you can edit each variant of the product and set specific values for the variant like a quantity and a price.
When a user buys that variant of the product, he will be charged that price and that quantity will be used (the quantity from the main product should not be used).

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 2
13 years 3 months ago #40916

This is where the problem is. There are 59 tickets available for each tour. There are three different ticket types (Adult, Child, Infant) for each tour, all with different prices. The tour can be made up of any combination of those three types for a total of 59 tickets, so it is not possible to set a quantity for each ticket type (variant), only a total quantity for the tour (product). I suppose a similar and maybe easier to envision situation would be if your were a florist selling bouquets of 12 flowers. There are three different flowers to choose from with three different prices. The customer is free to choose any combination of one, two or three of those flowers (he may decide to get 12 of one kind!), but the total number can not exceed 12. How would one track both prices and quantities in such a situation?

Thank You
Matt


It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.

Please Log in or Create an account to join the conversation.

  • Posts: 83904
  • Thank you received: 13581
  • MODERATOR
13 years 3 months ago #41053

In that case, you should use options instead of characteristics. That way, you won't have variants and the quantity will be the one of the main product.
Don't set a price in your main product but set it in each variant of the option product and you should be able to do what you want.
More infos on options here:
www.hikashop.com/en/support/documentatio...ct-form.html#options

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 2
13 years 2 months ago #43187

Nicolas
I am not sure how I can use options to do what I want, either. I still have the problem of tracking how many tickets have been sold, since the selection of options does not seem to be able to update the total quantity for the product. Another example - Imagine you want to sell tickets to a movie theater. There are 59 seats in the theater, so you can sell a total of 59 tickets for each movie. Adult tickets are $10, children's tickets are $5, and people over the age of 65 get in free. How to offer all those options, in any combination, yet limit the number of tickets sold for any one movie to a total of 59?

Thanks
Matt


It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.

Please Log in or Create an account to join the conversation.

  • Posts: 83904
  • Thank you received: 13581
  • MODERATOR
13 years 2 months ago #43201

I would use an option in the case you're presenting:

Create a characteristic "ticket type" with 3 values, adult, child, elderly.
Create an option product "ticket type" and attach that characteristic to it. Then, in the variants, set the price of each variant.
Create a product "ticket" and add the option product to it and set the qty to 59.

Then, each time someone buys that product, the qty will be updated and users will be able to select the type of the seat they want and the price will change accordingly.

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 2
13 years 2 months ago #43223

Nicolas
Thank you for the reply. Unfortunately, this would not allow the user to purchase multiple tickets in one step. Most of the customers are families, so the majority of purchases are for two or more tickets. I think someone buying only two tickets would not mind having to perform two steps to get their tickets, but a family of six might be a different story. Ideally I would like to be able to allow the customer to buy any combination of tickets in one step.

Matt


It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.

Please Log in or Create an account to join the conversation.

  • Posts: 83904
  • Thank you received: 13581
  • MODERATOR
13 years 2 months ago #43337

Indeed, my solution doesn't cover that.

In that case, it would mean to create custom item fields and then update the product's price in the cart based on the values selected by the user for each custom field via a quantity price calculation override plugin.
We have a small documentation for developers wanting to build such override here:
www.hikashop.com/en/support/documentatio...tation.html#override

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0
12 years 3 months ago #92071

Hello

I have same kind of question. My client is a small theater group and they want a simple booking system. I bought HikaShop Essential to make the job done.
Seat rows are divided in to three categories: 1-3, 4-6, and 7-8. I thought they had only one price for everyone but now they told me that there are three different price categories; adults, students and children.

Now I am totally confused. Customers should be able to choose seat row and possibly multiple price categories at the same time and the quantities should naturally respond to those choises. Is it even possible?

Unfortunately I am more of a graphic designer and not a coder :/

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
12 years 3 months ago #92175

Hi there,

I'm not sure I totally get what you need but I think it's quite simple.
If you have like 3 products in 3 different categories, the best way is to create a characteristics for the type of seats (adult, student, child).
Then you'll be able to generate variants for each product and give them a different price.
So people will firstly choose their seat, and when they are in the product page, they will be able to select the type.

I hope this will help you, do not hesitate to ask if you have any question :)

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0
12 years 3 months ago #92182

Thank you for your reply. I figured out the thing with money but I still don't know how to approach the quantity problem. Let's say I choose one adult from one dropdown menu and two children from another dropdown. So that should remove three "items" from the quantity. But I don't know how to achieve that.

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
12 years 3 months ago #92360

Hi there,

Acutally if you have defined a quantity for your different products (1-3,4-6,7-8) then each variant bought (student,...) will decrease the quantity of the main product.
You can test it, it should work :)

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0
12 years 3 months ago #92372

Thanks again.
I see. But is it possible to buy multiple tickets from different categories (adult, child..) at the same time?

Please Log in or Create an account to join the conversation.

  • Posts: 83904
  • Thank you received: 13581
  • MODERATOR
12 years 2 months ago #92681

Sure.

You select the quantity and the type of product (with the characteristic dropdown), then click on add to cart. Then, repeat with another characteristic selection and finally go to the checkout to pay all of them at once.
You will probably want to change the option "After a product is added to the cart" to "stay and display a notice popup" in the configuration so that the user is not directly redirected to the checkout after adding the first product.

Please Log in or Create an account to join the conversation.

Time to create page: 0.105 seconds
Powered by Kunena Forum