• how can I vary the price/charge amount based on a quantity. I want to sell tickets for an event and just need user to select number of desired tickets and then charge for the qty*tix price.
    is it possible?

    also, I noticed a note about filters and actions, are these documented anywhere or do we need to look at the source code?

    thank you.

    Frank.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @fdecicco,

    It is not possible, is the short answer.

    Now for a longer version, Direct stripe was not aimed at manipulating items like a cart would.

    I am working on a version 2 with filtered functions, but I don’t know when I will be ready.

    We can imagine it would allow you to filter the shortcode amount argument to multiply it by a custom input number…

    Right now there are actions :
    * direct_stripe_before_form
    * direct_stripe_after_data_fields
    * direct_stripe_after_script_tag
    * direct_stripe_after_form
    * direct_stripe_before_success_redirection
    * direct_stripe_before_error_redirection

    The last two pass $chargeID $post_id $button_id and soon $user_id

    Best regards

    Thread Starter fdecicco

    (@fdecicco)

    Thank you Nicolas. I appreciate your prompt reply.

    I figured this would not be possible with a shortcode that places a button but wanted to give it a try in case you had some fancy filter. ??

    What is interesting is that no such plugin exists, neither on WordPress nor CodeCanyon or anywhere else. I checked many of them and they all do the same thing.

    The alternatives seem to be to use full woocommerce, use add-on to form builder plugin such as gravity, ninja etc. for about $200 or just custom code it which is rather simple and I have already done but don’t really like to implement for clients for long term maintenance reasons.

    your solutions when available will fill a huge void and the form builder plugin vendors might not appreciate it. (Just joking)

    Thank you again.

    Frank.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘price based on quantity’ is closed to new replies.