I have a Magento shop in which my client wants to sell personalized gift items. For example a pencil with the customer's girlfriend name.
In the product page i managed to show in the form product_addtocart_form
some fields like this one:
<input type="text" value="" id="gift_name" name="gift_name">
Now I have an observer that when the user does the checkout (checkout_type_onepage_save_order_after
) it should get that custom field value but I can't figure out how.
I tried something like Mage::app()->getFrontController()->getRequest()->getParam('gift_name');
but didn't work out.
I think that this parameter is being passed to the form just like the quantity, but how can I retrieve it?