Copied to clipboard

Flag this post as spam?

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


  • Tom Chance 20 posts 101 karma points
    Mar 29, 2019 @ 08:33
    Tom Chance
    0

    Possible to have Product Variants using the HTML API?

    Hello all!

    Has anyone got any experience setting up Product Variants with the HTML api of Teacommerce? (Is it even possible?)

    We currently have a client whos situation is selling events using the HTML API. We were looking to hopefully just extend this to say have the variant nodes sit under the product:

    Product

    • Variant 1
    • Variant 2
    • e.t.c

    And then ideally send them through to the cart with the HTML API correctly.

    I understand the docs are still a WIP, but happy to document and commit to the docs repo if someone could let me know if its possible!

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Mar 29, 2019 @ 09:12
    Matt Brailsford
    100

    Hi Tom,

    It should be possible to do this. You could give your variant nodes their own SKU and send that through as the product identifier when adding to the cart. I used to do it this way myself when we ran a watch shop where we would have a parent watch model node, but then style variants as child nodes.

  • Tom Chance 20 posts 101 karma points
    Mar 29, 2019 @ 09:17
    Tom Chance
    0

    Hi Matt,

    Aha! I see what you are saying. Im going to go have a play now and get it working :)

    Would you like me to screenshot / document that process to add to the "Building an eCommerce Site" section?

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Mar 29, 2019 @ 09:22
    Matt Brailsford
    0

    Hi Tom,

    That would be awesome. If you could submit it as a PR on the docs repo I can review it and make sure you maintain credit for the contribution.

    Thank you

Please Sign in or register to post replies

Write your reply to:

Draft