Hello everybody,

I know that there are a lot of topics about this but I didn't find the right one about what I would like to do.

Here is the full description of what I have (and would like to do):

The user can create a content type ACTIVITY which is directly available on the website. This ACTIVITY has some available places and the places can be booked. Once a place is booked then the available places are updated (-1). So to book a place the visitor must use the Commerce module (to pay).

So what I would like to do is :

Use my content type ACTIVITY with many values (price, total places, remaining places, ..) that I want to use as a product. The price will be the price of the product and the remaining places the number of available items.

Is there an easy way to do that? Or just a way to do that?
I worked a lot on this topic and I must maybe take a step back (I'm sure that I miss something).

Thanks in advance for your help!

Comments

sprite’s picture

Watch some videos on youtube about Drupal Commerce configuration.

https://www.youtube.com/results?search_query=drupal+commerce+tutorial

Drupal Commerce intro series (bad audio, but good content)
https://www.youtube.com/watch?v=gLO7nt48omE&list=PL-Ve2ZZ1kZNRjLDQiRgZ1v...

Also, study some commercial Drupal distributions that already implement "booking" type use cases, and integrate with D7 Drupal Commerce, such as the following:

http://demo.morethanthemes.com/bookingplus/commerce-default/

A commercial distribution like the one above would probably save you a person year or two of work.

spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...

JoeWeb01’s picture

Thanks for the links. I already took a look but I'll do it again. Maybe I miss something...
But in my case this is a little bit complex because this is one user (registered user) who can create the activity.

sprite’s picture

If you start from scratch, you have an impossible task.

You really should spend a couple weeks studying something like the commercial booking distribution at the link above, because starting from something like that as a base, will literally save you a year or more of work.

spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...

onejam’s picture

Once you figured out Commerce, you might want to add this: https://www.drupal.org/project/commerce_stock so you can limit the places to book.

-----------------------------------------------------------------
We build engaging websites and intuitive designs that will benefit your business.
Duvien

JoeWeb01’s picture

Thanks for the information.
Actually the website is already created with a content type and if I'm right I have to use a product instead of a node to manage, among others the price, the stock, ...

As the idea to allow to book/sell the content type is new it's easier to allow a user to create a product than keep the both alive (content type and product).

Is it a good way to proceed? I think yes and I'll continue to read the documentation.

Regards,

JoeWeb01’s picture

Here is now the summary concerning this topic.

Finally I created a rule which creates a product while the user create an activity. The prodct is linked to the activity and I can easily display the "Add to cart", stock and others fields in my node Activity.

wazzzaonthebeat’s picture

Hello, do you mind sharing how you managed to do this?