How can I exclude sample prices from my starting price?

Hi,

Got a strange one. We sell fabric and need the ability to offer samples but exclude them from the starting price.

Example:

Sample: $0.99

1 metre: $19.99

Starting price would read $19.99 rather than $0.99

Does anyone have any suggestions for doing this?

Thanks

@gruff , Hope you are doing well.

So did you mean to keep the listing price to 19.99 instead of showing 0.99?

is it correct?

That’s correct. The 0.99…sku’s the price! :grinning_face:

SO you can do one thing, just make the order of the variant which has a price 19.99 first.

by doing this your listing page price will display to 19.99 instead of 0.99.

I hope this will clear to you.

Have tested it and this works. However the collection/category page is still showing the lowest price. Is there anyway of excluding the sample from the calculation on this page?

Sanest way is to have this as a separate product.

Otherwise you will need to customized the code in several areas of the theme.

If you need this customization then contact me directly by mail for services.
Please always provide context, examples: store url, theme name, post url(s) , or any further detail.
Contact Info in signature.

Could you please share URLs where the price is not getting updated after changing the order or variants?

Thanks Paul. Investigated and it looks like it’s the best way of doing it. Need the ability to link to the sample which is just an amendment to the handle i.e.

  • handle-name

  • handle-name-sample

Was thinking that I could pull the handle name and append sample on the end and then generate a link. Do you know how I would do this?