Browse community

the page keeps opening on the size that's out of stock

hana_bPosted

fishing tackle, three shops in the west country plus the site, 2.4m last year. this is a small thing but it's annoying me.

our reels come in three sizes. the page loads with the smallest one already selected, and that one's out of stock until the next delivery. so the first thing anyone sees is a red sold out badge, when the middle size is sitting on the shelf. we've had two customers email asking whether we've stopped selling it.

how do i make it default to the first size that's actually available? app, snippet, a setting i've walked past?

18 replies

  1. binstock_89

    which theme are you on? that behaviour isn't standard

  2. hana_bOP

    @binstock_89

    i'd have to look. the site was built before my time and i've been scared to open the theme editor

  3. binstock_89

    @hana_b

    fair. but this one's probably a checkbox in the product section, not a code problem. worth ten minutes before you pay an app

  4. stocknurse_67

    stock behaviour should only show sold out when every size is gone. if it's picking a specific variant, something in the theme is doing it

  5. hana_bOP

    @stocknurse_67

    that's what i suspected. it doesn't do it on every product either, only the ones where the small size is out

  6. k_owens

    just reorder the sizes in the admin so the in-stock one is first

  7. felipe_t

    @k_owens

    that lasts until the new first one sells out and then you're back here

  8. k_owens

    @felipe_t

    then you reorder again. it's not elegant but it's free and it takes two minutes

  9. felipe_t

    @k_owens

    two minutes every time a size sells out across 300 products is not two minutes

  10. pete_orders

    if you go the app route, get one that hides unavailable variants rather than one that picks a different size for the customer. hiding is much less fragile than a script guessing

  11. hana_bOP

    @pete_orders

    hiding hadn't occurred to me. i suppose it also stops the "do you still sell this" emails

  12. hugo_32

    is this actually costing you anything? genuinely asking. sold out badges can help as much as hurt — scarcity and all that

  13. hana_bOP

    @hugo_32

    no idea. i've got no before and after. it just looks broken to me, and two emails isn't a measurement

  14. hugo_32

    @hana_b

    then i'd fix it because it's cheap, not because you've proved it matters. that's most of ecommerce

  15. w_marsh

    we had the same on a clothing theme. it was a line in the variant picker that selected the first variant regardless of availability. one line changed, done. if you paste the product template into a reply someone here will spot it

  16. hana_bOP

    @w_marsh

    i might take you up on that. need to find where the template lives first

  17. nightshift_63

    does it do the same thing on mobile? we only saw it on desktop for months because nobody checked the phone

  18. hana_bOP

    @nightshift_63

    ...i haven't checked mobile. that's tomorrow's job now

Have something useful to add?

Create a username and password in seconds, then reply.