impress-org / givewp-snippet-library

A collection of code snippets to enhance or expand on the free Give WordPress Donation Plugin.
https://givewp.com
140 stars 90 forks source link

Add a way to display custom fields to the bottom of the donation receipt shortcode output #22

Closed DevinWalker closed 6 years ago

DevinWalker commented 7 years ago

@Benunc commented on Fri Jan 20 2017

Issue Overview

If a donation has custom field data, we should provide a way to display that on the shortcode output.

Expected Behavior

If you add custom field data with Form Field Manager, you should be able to add additional table cells to the bottom of the shortcode output with that data in them.

Current Behavior

Currently it's not possible to add that data to the shortcode output.

Possible Solution

Add an action or filter to the bottom of https://github.com/WordImpress/Give/blob/master/includes/admin/shortcodes/shortcode-give-receipt.php#L98 so that additional fields can be added there.

Todos


@DevinWalker commented on Fri Jan 20 2017

You can add them using the following action: https://github.com/WordImpress/Give/blob/master/templates/shortcode-receipt.php#L242

This is probably better as A) a snippet and b) an issue on FFM.

ravinderk commented 6 years ago

@DevinWalker Can we close this in favor of https://github.com/WordImpress/Give/issues/2801