How to add a Custom UID option.

Topic summary

A Shopify store owner selling in-game currencies needs customers to input their game UID (unique identifier) during checkout so the correct account receives the purchased currency.

Proposed Solutions:

  • Line item properties: Add custom HTML code to the product page template to create a UID input field. The entered UID will display in the order details under “Additional Details.” This can be applied to all products or specific products/collections using conditional statements.

  • Third-party app: The Easify Product Options app (free plan available) offers a simpler, no-code solution to add custom text/number fields to product pages. Customer-entered UIDs automatically appear in order details.

Implementation Considerations:

  • The original poster needs guidance on where to place the code in their theme (specifically before the add-to-cart button).
  • Advanced customization may require understanding cart attributes vs. line-item properties.
  • Consider whether UID information needs to persist on the customer profile (as tags or metafields) for future orders.

The discussion remains open with the store owner seeking step-by-step implementation instructions.

Summarized with AI on November 4. AI used: claude-sonnet-4-5-20250929.

Hi, I sell in-game currencies for mobile games on my website but it will require the customer to input their game UID which is a custom number assigned to each account on the game. Is it possible to add this feature so that when a customer orders a product the UID will show up in my orders so I can add the currency to that account?

What I want it to look like: https://shop2game.com/?item=70616

My website: https://codecentraleg.myshopify.com/collections/free-fire-diamonds

Shopify allows you to use line item properties . Add the following code where you want the UID field to appear:

eample


Once the customer inputs their UID and places an order, the Game UID will be displayed in the order details under the “Additional Details” section for that specific order.

will this be for a certain product or for all products?

all currrently, but if you want to display the Game UID field for certain products (or collections) only, you can wrap the form field in a conditional statement

exmaple

{% if product.handle == 'free-fire-diamonds' %}

{% endif %}

can you guide me through the steps of putting the code because I’m not sure where to put it. I want the customer to be able to write it just before he adds it to cart.

Hi @KarimAyman this is an advanced theme customization using either line-item-properties, or cart-attributes

per product/line-item https://community.shopify.com/topic/616503

per cart/order https://community.shopify.com/topic/613718

There’s also whether the info needs to persist on the customer as a tag or metafield, etc in which case either shopify-flow or usemechanic could be automated to do this.

If you need this customization then contact me for services
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Hi @KarimAyman ,

You can use the Easify Product Options app (with a free plan available) to add a custom field (text box or number field) to your product page where customers can enter their game UID number before adding the product to their cart and checking out. The UID information will then be included in the order details, making it easy for you to manage. For example: