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?
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.
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?
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.
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.
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
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.
That's brilliant and works great,
many thanks Matt, t
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
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
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.
is working on a reply...