How to get product price in the default currency, from the storefront?

Hey guys,

The product json object (example: https://shop.vitals.co/products/ladies-short-sleeve-t-shirt.json) does not return the price of the product in the default currency. It includes only the presentment currency price.

This becomes a problem, when the user switches the currency and continues navigating. This problem is even more pronounced, when the store has Price Rounding enabled.

Due to this issue, we are forced to use highly inefficient workaround logic with our servers.

Can anyone help with a solution to obtain the default currency price, without an additional request, especially outside of Shopify’s API?

@Shopify_77 , do you have any plans to add this info in a future API iteration? We were thinking the implementation should be similar to (see the green text):

“variants”:[
{
“id”:16260637327411,
“product_id”:1727106023475,
“title”:“Charcoal-Black Triblend / S”,
“price”:“93.00”,

“defaultCurrencyPrice”:“123.45”,
AND/OR
“priceWithoutRounding”:“123.45”, //here, we can take the presentment currency rate from the Shopify.currency object and convert it accordingly in the storefront

“sku”:“3068390”,
“position”:1,
“compare_at_price”:“”,
“fulfillment_service”:“manual”,
“inventory_management”:null,
“option1”:“Charcoal-Black Triblend”,
“option2”:“S”,
“option3”:null,
“created_at”:“2019-02-26T04:37:51-05:00”,
“updated_at”:“2021-05-15T18:55:41-04:00”,
“taxable”:true,
“barcode”:null,
“grams”:99,
“image_id”:5039324397619,
“weight”:3.5,
“weight_unit”:“oz”,
“requires_shipping”:true
},

Thank you all in advance. And please let me know if I can provide more details.

@vix , could you please help with a point of view on this subject? Thank you in anticipation.

Did you ever figure this out Alex? I’m ripping my hair out trying to determine the same thing.

No, James. And we continue to lack support for some features due to this limitation. If you stumble upon a feasible solution, please come back on this thread also.

Cheers.

Years later, I still have this problem. Anyone found solution ?

Two years later and nothing…

You can save this as a metafield and get it that way, or if you have a proxy app which points to your backend business admin site, then you can write something there to return the default price in shop currency and then fire an ajax query at it with the product and/or variant GID, retrieve the price using a graphQL query, and use it where you want on the page. I’m doing this so we can always see the net price for products in a little ‘staff only’ section we have on our site.

If this sounds utterly demented, that’s because it is. This should really be available in the liquid product object as product.base_price.price and product.base_price.currency.

G