• Hi

    My apologies if this is covered elsewhere – I couldn’t find it.
    Is there any way to get the payment amount from a derived field in an input form? The field contents will change according to varoius options chosen, and is stored as a meta field.

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, can you provide an example of what you are trying to achieve.

    Thank you

    Thread Starter petebm

    (@petebm)

    Hi
    Thanks very much for your response, & sorry for the late reply.

    I’d like people to be able to fill in a membership application (created in Ultimate Member) and then pay the correct membership fee at the end. That fee, however, will depend on which options they’ve selected as they’ve filled in the form (eg postal version of a magazine or downloaded), and will be stored as, say, total_fee. I’d therefore like the wsps checkout form to use that total_fee as the cart total rather than whatever it uses currently (sorry if I should know what that is).

    Is that possible?
    I hope that’s clearer
    Thanks

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, thank you for providing more information. I have submitted a message to the developers to investigate further your issue/request.

    Kind regards

    Plugin Author mra13

    (@mra13)

    You can call the following function from your custom code to create an “add to cart” button with the custom amount value that you pass to this function:

    print_wp_cart_button_for_product($product_name, $price)

    So for example, the following PHP code will output an add to cart button:

    
    echo print_wp_cart_button_for_product("Membership Fee", "29.95");
    
    • This reply was modified 5 years, 5 months ago by mra13.
    Thread Starter petebm

    (@petebm)

    Hi @mra13

    That’s great; my coding skills are minimal (restricted to adding snippets & custom css that other people like yourself have kindly suggested), but I’m sure I can use this to solve my problem. The only reason it may not be ideal is that it relies on the applicant clicking on the right fee button, rather than being automatically forwarded to the correct payment screen after they’ve filled in the form.

    Many thanks for your help – posted an appropriate review.

    You do know that the makers of the Simple PayPal shopping cart – SELL a plugin called WP eMember plugin for $59.95 that does exactly what you want it to do. https://www.tipsandtricks-hq.com/wordpress-emember-easy-to-use-wordpress-membership-plugin-1706 It has a one time purchase fee with free upgrades for life, and you can use it on as many sites as you want to.

    Thread Starter petebm

    (@petebm)

    Thank you @peonypink; that’s got to be worth a second look!

    @petebm You are most welcome!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Pass meta field contents to payment amount’ is closed to new replies.