Copied to clipboard

Flag this post as spam?

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


  • Tom Madden 252 posts 454 karma points MVP 4x c-trib
    Apr 30, 2020 @ 20:58
    Tom Madden
    0

    How to provide the option to order a sample of a product via Tea Commerce

    I'm creating a site in TC for a company that sells wallpaper (about 4 thousand products now imported) and the client wants to be able to sell samples of the product. These will have a single price, and I'm wondering the best method to approach this in Tea Commerce?

    I think if I add variants to all the products programatically and set the price of the variants at the same time then the variant would be the sample.

    Is this the best way to provide the ability to order samples of products in TC?

    TIA t

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

    Hey Tom,

    If they are ALWAYS the same price and there is no stock managements for the samples, you could in theory have a single Sample product and on the order line for that sample you record which product it is a sample of. This would mean you only have one product to manage for the samples.

    If you want to allow multiple sample orders you can use the "sampleOf" property as a product uniqueness property and therefore each unique sample request will create a unique order line so can be managed in the cart independantly.

    This would be a simpler approach, but as I say it depends on the price / stock management really.

  • Tom Madden 252 posts 454 karma points MVP 4x c-trib
    May 01, 2020 @ 16:21
    Tom Madden
    0

    That's brilliant and works great,

    many thanks Matt, t

  • Tom Madden 252 posts 454 karma points MVP 4x c-trib
    Jun 15, 2020 @ 20:23
    Tom Madden
    0

    Hi Matt,

    this works great. I've an additional question. What's the best way to display this in the order? At the moment, if someone orders multiple samples it just shows the same sku and product name for each sample order line. I think I could do this by adding to the customer notes or perhaps the order note field.

    Is that the best way to do this, or can it be done with each order line itself?

    many thanks t

  • Tom Madden 252 posts 454 karma points MVP 4x c-trib
    Jun 15, 2020 @ 20:25
    Tom Madden
    0

    additionally, is it possible to add other product properties to display in an order line, like an epos code, or warehouse location, regardless whether it's a sample or not.

    thanks t

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Jun 16, 2020 @ 07:00
    Matt Brailsford
    0

    I’d store which particular sample is being ordered in an order line property and then add that property as a “Uniqueness” property in the store config. This will then force the different samples to be unique order lines.

    In terms of showing the sample name in the back office, you can modify the back office view file or maybe implement a custom ProductInformationExtractor to merge the sample name into product name.

Please Sign in or register to post replies

Write your reply to:

Draft