GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Variables
field-product-html.php File Reference

Go to the source code of this file.

Variables

 $display_value = $gravityview->display_value
 
if(''==$display_value) $entry = $gravityview->entry->as_entry()
 
if(! isset( $gravityview)||empty( $gravityview->template)) $field_id = $gravityview->field->ID
 The default product field output template. More...
 
 $value = $gravityview->value
 See if there are any values in the product array GF provides. More...
 

Variable Documentation

◆ $display_value

$display_value = $gravityview->display_value

Definition at line 16 of file field-product-html.php.

◆ $entry

if (''==$display_value) $entry = $gravityview->entry->as_entry()

Definition at line 20 of file field-product-html.php.

◆ $field_id

if (! isset($gravityview)||empty($gravityview->template)) $field_id = $gravityview->field->ID

The default product field output template.

$gravityview

Since
2.0

Definition at line 14 of file field-product-html.php.

◆ $value

$value = $gravityview->value

See if there are any values in the product array GF provides.

(product name, quantity, price)

If not, Gravity Forms displays a useless string (", Qty: , Price:") instead of an empty value. This prevents the "Hide empty fields" setting from working.

Since
1.12

Definition at line 15 of file field-product-html.php.