Checkout to One or Several Products
Checkout to One or Several Products and Set the Quantity
Add One or Several Products to the Cart
Add One or Several Products to the Cart and Set the Quantity
Checkout to a Plan
Add Pre-filled Value for Extra Field
If you would like to have a value appear in one of the extra fields automatically when a customer opens the Checkout, you can add a URL parameter in the URL bar in theextra_fields attribute as a key/value combination. It is important to use the lowercased name of the extra field as the key in the extra_fields attribute.
Be aware that this still allows the customer to remove or edit the value on the Checkout form itself. You can potentially hide the field via custom JS or CSS if you do not want your customer to see or edit the field directly in the user interface.
Example: