Conversations about creating, managing, and using metafields to store and retrieve custom data for apps and themes.
Price Per Unit is an exclusive feature implemented for France and Germany.
https://help.shopify.com/en/manual/intro-to-shopify/initial-setup/sell-in-germany/price-per-unit
https://help.shopify.com/en/manual/intro-to-shopify/initial-setup/sell-in-france/price-per-unit
I went through guideless ^ and was able to define the unit price via the user interface. Now, I want to download these data via REST API. Is it accessible there? Precisely, is a price per unit (unit_price and unit_price_measurement) exposed via REST API or GraphQL? I can't see it as a variant property.
Solved! Go to the solution
This is an accepted solution.
Hey @tipserstore ,
At the moment this field is not accessible via the API. However, it is also very new, so that's not to say that it never will be available - but there isn't any timeline at the moment or concrete plans to do so.
Josh | Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Hi,
glad you are already looking into this. I need this feature urgently as well, so sending a plus one on the feature request.
Without API access to the unit price feature my customer can not use Shopify for their online store (as said before, it's a legal requirement to show the unit price in Germany and setting it manually for thousands of products is not an option).
All the best, kind regards!
Johannes
We have the same issue. Is there a way to upvote the urgency of this feature?
Solving it with metafields seems like a nasty workaround 😞
Hi,
I'm right now into creating a new shop with 300 products where unit price is manadatory. I helped myself with metafields but right now I am really frustrated with shopify at all. I know it's my fault I did not consider such a basic feature upfront. But there are so many details where something is missing. And then I read such things it's too hard to implement. I'm almost thinking about leaving this platform before opening the shop.
Why not spell it out than? If you have a workable solution to this, just say it in a few sentences. This is a community after all, not a walled garden. It is expected that people share here, not hoard.
The basic approach to the solution is to add custom code to the product page template to use fields that can be set via the API (weight & price), to calculate the base unit price.