You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a proposal to add a product metadata/variant type that lets customers input text on the Single Product Page. This would enable selling customizable products where customers can provide custom text when ordering.
Example: I'm selling t-shirts and want customers to order with their own text during checkout.
Is it possible to implement this feature?
The text was updated successfully, but these errors were encountered:
pdanysz
changed the title
Feature: Support for custom input custom variants
Feature: Support for custom input / product variants
Nov 8, 2024
This is actually more challenging than I initially thought. From both UX/UI perspective, as well as technical difficulties.
Let's consider a scenario where I add the same item (a t-shirt) to my cart 5 times. Now, should the interface only show a single "custom field" or 5 of them? The latter means the UI could quickly become cluttered. And that's only assuming a single item has only one "custom field". What if there's more?
The other problem with this is that Stripe metadata is a simple set of key-value tuples. If we allow multiple "custom field" and multiple answers when the same product is added to the cart many times, we might have trouble saving it in cart's/order's metadata.
My initial thought was we could save customField_${productId}: ${value}, but that doesn't cover multiple products nor multiple questions.
I'm currently thinking of customField${fieldIndex}_${productId}${productIndex}: ${value}, but that seems to be somewhat brittle. The ordering of Stripe metadata fields is not guaranteed. What if it changes? Answer indexes won't match the questions!
I'd appreciate any help, thoughts, use-cases, etc. Maybe I'm thinking too big, and something much simpler would suffice.
Here's a proposal to add a product metadata/variant type that lets customers input text on the Single Product Page. This would enable selling customizable products where customers can provide custom text when ordering.
Example: I'm selling t-shirts and want customers to order with their own text during checkout.
Is it possible to implement this feature?
The text was updated successfully, but these errors were encountered: