Support » Plugin: Stock Locations for WooCommerce » Possible to pre-select and lock location?

  • Is it possible to have the location for all items in the cart pre-selected and locked in before the product selection begins?

    Our client would like a scenario where we lock the location in before people begin shopping, and then only those products available in that location would be able to be ordered.

    So, let’s say we have a page that lists several farmer’s markets where products can be picked up. Currently, we can link the options to a location taxonomy page (/locations/name-of-location) where the user sees products available at the selected location. But, then when you go to the product page, either multiple locations are displayed as options or none are displayed, and you might be selecting products not available in the selected location. There is also currently an option to select the location at checkout and have it apply to all items in the cart. The problem is that they may have already selected items that aren’t available at the location they selected.

    We would like it so the selected location filters all available options at the outset. When the user clicks through to view the product, no location options would be given and the location they chose would be automatically entered into the product selection. There would be no possibility of selecting a product or product variant that is not available in the pre-selected location.

    On checkout, the location would be automatically filled in and would not be able to be altered. No mixing of locations would be allowed.

    (Ideally, there would be a single button to reset the location and the shopping cart and start all over with location selection.)

    How would we go about doing this with Stock Locations for WooCommerce?

    Thanks so much for your help!


Viewing 3 replies - 1 through 3 (of 3 total)
  • With our website, we either turn on or off (checkbox) for each product per location. We set the inventory per product per location. As items are ordered, per location, the inventory is automatically updated. If inventory hits zero, the item selection gets grayed out at that location.

    Thread Starter msbbill115


    Thanks, Carl. That makes sense.

    Our client is afraid people will order products from multiple stands and then show up at one stand hoping to collect them all, perhaps not realizing what they had done.

    So we’re trying to start by getting them funneled into their desired location.

    Plugin Author alexmigf


    Hi @msbbill115

    Currently is not possible, it’s on the roadmap for some time but I hadn’t much time to do it yet. You can follow here.

    Thanks for the help @carljw116 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.