Copied to clipboard

Flag this post as spam?

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


  • ianhoughton 281 posts 605 karma points c-trib
    Dec 13, 2021 @ 12:42
    ianhoughton
    0

    Adding custom products to cart

    We have 2 types of product that we sell. Standard & Configurable products.

    I've got the Standard products working fine with a custom ProductAdapter & Snapshot where the price is pulled from our external ERP system.

    I'm now trying to get configurable products working, but these products won't exist in Umbraco as there are many tens of thousands of combinations. We have a configurator that will spit out a custom SKU, but I'm struggling to see how I create a product snapshot from this. The GetProductSnapshot method that we override for standard products is expecting a snapshot from Umbraco (which we dont have).

    Any ideas / pointers on how to approach this?

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Dec 13, 2021 @ 13:40
    Matt Brailsford
    100

    Hi Ian,

    The GetProductSnapshot method returns an IProductSnapshot so if this is a non-umbraco product, then you can implement that interface yourself and return the relevant information for each of it's properties.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft