For certain products in my ubercart catalog, I need to show a legal disclaimer before actually adding them to the cart. I was thinking to use hook_uc_add_to_cart for this, because it allows me to return a message in the result array :
I could return a html enriched message holding the anchor to the final cart addition, in case the legal notice is read and confirmed.
For example : How do I translate this submit input form to a query string like alternative ?
<input class="node-add-to-cart form-submit" type="submit" id="edit-submit-144" name="op" value="Add to cart">
As an alternative I could ask the 'shopper' to hit this submit a second time as confirmation.
Then: To bypass the hook a second time, I could add a confirmed Boolean into the
$data array which is returning into this hook as 3th parameter.
If I add this Boolean into the $data as a new key->value pair, will it be available again in the next submission ?