The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Custom Field in description

Johnny4BJohnny4B Member
in Help edited July 2013

Need to add a custom field in the cart description, looked through the docs and don't see an example

Currently product set up Automatic HMAC

<form action=""; method="post" accept-charset="utf-8">
<input type="hidden" name="name" value="Strawberry Soak Off" />
<input type="hidden" name="price" value="18.90" />
<input type="hidden" name="code" value="GelPot23" />
<input type="hidden" name="category" value="gel_pots" />
<div class="quant">
<select name="quantity">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<input id="searchSubmit" type="submit" value="add to cart" class="bay" />
</div><!-- .sort -->

In the Cart this will display

Strawberry Soak Off
Code: GelPot23
Category: gel_pots

We would like to add a custom message in the cart - like

Strawberry Soak Off
Code: GelPot23
Category: gel_pots
Special: Free Training

So we have added this to the field

<input type="hidden" name="special" value="Free Training" />

It displays fine, just want to insure that this will not mess with any validation



  • fc_adamfc_adam FoxyCart Team

    If you have automatic hashing, it should hash your extra input just like any other input. If it's adding to the cart as you'd expect, then it's working just fine.
Sign In or Register to comment.