App reviews, troubleshooting, and recommendations
I want to get the logged in customers id of the shopify store in my shopify remix app to dynamically change the price of the product according the customers. Is there any way to achieve this
Hi @bootsgridDev , thank you for posting here!
You can easily dynamically change the price of the product according to the customers (logged-in or non-logged-in customers) with Snap B2B Wholesale
@bootsgridDev I found a solution for retrieving the customer ID in a Shopify Customer Account UI Extension app.
To get the authenticated customer's ID, add the following code in the JavaScript file located in the src folder:
const customerId = api.authenticatedAccount?.customer?.current?.id;
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025