Andre_B
(Andre B)
July 24, 2021, 4:41pm
1
Is there a way to list the options prices of products in the notification email?
At the moment all options are being added up to one product price, and you can’t see the individual options pricing.
That makes it somewhat complicated and intransparent when the recipient can’t see how much was charged for specific options.
chrishajer
(Chris (Gravity Forms))
July 25, 2021, 2:36am
2
Hi Andre. That is not currently a feature of Gravity Forms. If you would like to suggest that for inclusion in the future, I recommend adding that to our product roadmap. Click the blue in the lower left on this page to add a note for our product team:
https://www.gravityforms.com/gravity-forms-roadmap/
For now, you can work around this by suppressing the product table at the bottom of the email using the gform_display_product_pricing filter:
Then the fields will all be output inline like regular fields, rather than summarized. If you need anything else, please let us know.
david
(David (Gravity Wiz))
October 26, 2022, 3:01pm
4
Was DM’d with a reference to this topic and curious if Gravity Wiz had a solution. We do.
Here’s the snippet:
<?php
add_filter( 'gpecf_order_sumary_markup', 'get_custom_order_summary_markup', 10, 6 );
function get_custom_order_summary_markup( $markup, $order, $form, $entry, $order_summary, $labels ) {
ob_start();
?>
<table class="gpecf-order-summary" cellspacing="0" width="100%" style="<?php gp_ecommerce_fields()->style( '.order-summary' ); ?>">
<thead>
<tr>
<th scope="col" style="<?php gp_ecommerce_fields()->style( '.order-summary/thead/th.column-1' ); ?>"><?php echo $labels['product']; ?></th>
<th scope="col" style="<?php gp_ecommerce_fields()->style( '.order-summary/thead/th.column-2' ); ?>"><?php echo $labels['quantity']; ?></th>
<th scope="col" style="<?php gp_ecommerce_fields()->style( '.order-summary/thead/th.column-3' ); ?>"><?php echo $labels['unit_price']; ?></th>
<th scope="col" style="<?php gp_ecommerce_fields()->style( '.order-summary/thead/th.column-4' ); ?>"><?php echo $labels['price']; ?></th>
</tr>
</thead>
<tbody>
<?php
foreach ( $order['products'] as $product ) :
if ( empty( $product['name'] ) || gp_ecommerce_fields()->is_ecommerce_product( $product ) ) {
continue;
This file has been truncated. show original
And here’s the result:
This does require GP eCommerce Fields .
1 Like