Preserve Pricing Logic At Time of Submission
Plugins that provide editing functionality (like Entry Blocks and GravityView) will allow you to modify previously selected products. If you make changes to your Conditional Pricing rules, the original price will be lost when the entry is loaded for editing.
This snippet saves the current pricing logic when the entry is created and then restores it when the entry is loaded for editing.
Note: We do not recommend this approach if you have more than a hundred or so pricing rules.
Instructions
See “Where do I put snippets?” in our documentation for installation instructions.
Code
Filename: gpcp-save-pricing-logic-to-entry.php