Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Graham Carr 43 posts 263 karma points c-trib
    Jun 09, 2020 @ 09:15
    Graham Carr
    0

    Products as bookable course dates

    I am in the very early stages of using Vendr for a new course booking and purchase website that I am currently creating for a client, as part of this they want to sell courses that will have multiple spaces on specific course dates.

    From a Vendr perspective, what is the best way of setting this up from a product perspective?

    Thanks in advance.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Jun 09, 2020 @ 09:30
    Matt Brailsford
    100

    Hey Graham,

    So you have a course and a course has multiple dates, and those dates have a set number of allocations?

    If so, I'd probably set them up as follows

    Home
    - Courses
      - Course1
        - Date 1
        - Date 2
        - etc
    

    In this scenario, I think your dates would be the actual products so on these you could add a stock property to state how many places are available.

    If you take a look at the demo store, this is kind of how some of the products are setup, so there is a parent product, but variant products beneath https://github.com/vendrhub/vendr-demo-store

    One think you might want to look at is the product adapter which is responsible for extracting product information. In this setup, you may want to override it in order to construct a composite product name, combining the course name from the parent node and the date from the date node. There is an example of this in the demo store https://github.com/vendrhub/vendr-demo-store/tree/master/src/Vendr.DemoStore/Web/Adapters

    I think that should give you a decent starting point.

    Matt

  • Graham Carr 43 posts 263 karma points c-trib
    Jun 10, 2020 @ 17:32
    Graham Carr
    0

    Hey Matt,

    Thanks for the quick reply and my delay in replying, that is great and gives me a good starting point for the integration and setup.

    On a different note, top marks on creating such an easy to use and scalable ecommerce plugin for Umbraco 8!

    Cheers.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Jun 12, 2020 @ 14:53
    Matt Brailsford
    0

    Hey Graham,

    Glad I could help, and thanks for your kind words. Really made my day.

    /Matt

Please Sign in or register to post replies

Write your reply to:

Draft