OK, I've been looking a this tediously and from what I can tell:
'if(!empty($nggImage->alttext))
{
$output .= "<input type=\"hidden\" name=\"item_name\" value=\"$nggImage->alttext\" />";
}
else
{
$output .= "<input type=\"hidden\" name=\"item_name\" value=\"$ret_product->name\" />";
}'
This is returning the image alttext on the Paypal page.
Yet when I try to recall same in another function it doesn't work. What I'd like to do is place somewhere in:
'if($ret_product->custom_input == '1')
{
if(!empty($ret_product->custom_input_label))
$var_output .= $ret_product->custom_input_label.': <input type="text" name="custom_input" value="" class="eStore_text_input" />';
else
$var_output .= 'Instructions: <input type="text" name="custom_input" value="" class="eStore_text_input" />';
if ($line_break) $var_output .= '
';
else $var_output .= ' ';
}'
... how to do that??
Thanks :)