Dynamic pricing
-
Hey!
We’ve been using this plugin for a while now and it’s been working great. On our old Website we used to have a Simple Pay form that used the old shortcode and the amount attribute to set the price. We used to set the price like this because we needed it to be dynamic and change according to get variables. On our new website, we’re trying to to something similar but the shortcode has changed and it’s no longer possible to use the amount attribute.
We tried adding a form with a fixed amount and then adding this code to our functions.php:
add_filter( 'simpay_form_4021_amount', 'simpay_custom_amount' ); function simpay_custom_amount() { return 4000; }
Unfortunately it doesn’t seem to work. Could you tell us what’s wrong with our code or tell us if there is a better way to get a dynamic price. The ID is correct and the return value is like this for testing purpose. It will be a variable later
- The topic ‘Dynamic pricing’ is closed to new replies.