Show Different Prices For Different Locations?

Hi there,

I’m currently working with the Shopify API in NodeJS and we’re working with a consignment store that has 3 locations.

Each location carries the same products, but has different prices which we’d like to display on the product page. Please see the attached photo for reference.

How can we achieve something like this? I’ve seen stores that show available inventory for each location, but we need to display the prices and (ideally) allow them to checkout those items based on the location selected.

Customers need to be able to see the prices for all 3 locations, not just 1.

Update: We’re able to push product data into the Shopify Backend (with the Location, Price, and Quantity). Now how can we display this in the Product Details Page as shown in the first image?

Any help would be greatly appreciated!

tl;dr - use an app unless you need to learn it , Inventory data in liquid is an aggregate total, Inventory is not currently a criteria that affects a variant checkout price, only variant-options and discounts do that. And there isn’t a clear request push by merchants to get either per-location inventory display NOR per location pricing.

I haven’t tested this in awhile but unless something’s changed recently you have to use local-pickup to get the native data for location+inventory in themes(liquid) it’s a confusing unintuitive mess. Aside , shopify markets feature is not granular enough to use it as a workaround for this in the same geographical region if locations are in different countries explore that approach.

There is a difference between a display/presentation/virtual price and an actual checkout price that gets charged to a customers payment method.

I saw your in the following thread, after you explore the information here and try to code something if it’s still not possible to show per location inventory via liquid maybe mention nick in that thread about needing this feature request about showing inventory not about the price per location as that’s a separate issue. https://community.shopify.com/c/shopify-discussions/multiple-warehouse-inventory/m-p/488417/highlight/true#M119615

If each variant for a product is at a unique location with a unique price you should not have to do anything beyond hook up some location names using metafield definitions.

If prices are purely presentational use a variant metafield definition. Otherwise use an app unless you have the development budget or just want to learn.

Many existing forum posts to search about “liquid showing displaying location inventory”, see refs below.

If you must try and build this start here:

Prices for presentation only

If purely a display price such as to get foot traffic into a physical store just use a variant metafield definition, output all the prices onto the variants options selector and modify the theme selection js to read that data and update the display.

Prices for Checkout usage

For any shopify-plan the only native default way to have different display prices per variant AND checkout prices per location is to have different variants per price per location. ShopifyPlus possibly could utilize checkout scripts.

So for any shopify-plan the simplest way to achieve this in a single product is to make the location a variant option. Permanently leaving only 2 options for standard product options ( like color and size).

Alternative - have multiple products with it’s variants at different locations then stitch them together on the front end.

Or flat products, aka product families, aks standalone products with a single variant each (mainly needed for ERP situations, search my forum history for discussions around that).

Alternative - to get checkout prices use a tool like the usemechanic app to script a custom draft order process to adjust prices per variant in tandem with the metafield customized loosely described above and things like cart attributes and line item properties.

New alternative possibility - now that there’s combinable discounts there may be some technique to price variants per location but this still seems like you have to have unique variants anyway defeating the purpose if you can set different prices anyway.

Refs:

https://community.shopify.com/c/shopify-design/can-you-access-product-location-using-liquid/td-p/446626

https://community.shopify.com/c/shopify-design/display-stock-levels-at-two-locations/m-p/449086/highlight/true#M116450

https://community.shopify.com/c/technical-q-a/locations-display-inventory-by-location-on-front-end-to-customer/td-p/474730

https://community.shopify.com/c/shopify-discussions/multiple-warehouse-inventory/m-p/488417/highlight/true#M119615

1 Like

Hey Paul. You seem super knowledgeable. I have a question we have a storefront and our website. We want to charge different prices for our store front and the website. But we do not want the website to see the prices of the store front. Is this possible?

For instance we sell Funko pops for our store front we want to charge $12.99 and for the website we want to charge $14.99

is this doable our storefront is our default location?

matt

5 Likes