Programmaically add a product
-
I would like customers to enter at what time of day they want some food delivered and at what address.
I could create two products and using variations, have text fields the user should enter.
If I insert them so the user can “add to cart” it looks correct on checkout allowing the person to enter text…
This means above solution would be great if I could automatically / programmatically add them to the order upon checkout, e.g:
“Delivery to address: xyz”
“Delivery at time:”How do I do that? I am pondering if it is possible to simulate the POST mechanism used when a user clicks “add to cart”, but I have problems getting it to work
- The topic ‘Programmaically add a product’ is closed to new replies.