• Resolved samlutostanski

    (@samlutostanski)


    Hi,

    I have just installed the plugin and have need some help with a couple of things please.

    1. In your description of the plugin it says that the plugin can adopt the theme’s style for a button, but this doesnt seem to work i just get the grey default button styling?

    2. I am using the Elementor drag and drop editor, but cant see how to add a Direct Stripe button onto a page? (and then style it using the theme style button as per question above)

    3. Is it possible to use an existing button i have on a page and add the link to a payment from the direct stripe button settings/id from the plugin?

    thanks
    sam

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter samlutostanski

    (@samlutostanski)

    Hi again Nico 🙂

    I have run some tests and working with strip on making sure everything is done correctly. which from their side it is.

    But i have got a trial period set at the start of each subscription in stripe. and they said that i need to add a parameter into the plugin to activate the trial period at the start of the subscription purchase.

    the parameter is: Trial_from_plan = true

    where do i put that in the plugin please?

    thanks

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @samlutostanski,

    The trial_from_plan parameter is not a feature of Direct Stripe (DS was created with a different way of handling subscriptions in stripe…)

    This is an option I will definitely add although I can’t promise when…

    In the meantime, the ‘direct_stripe_subscription_data’ filter hook can be used to use the plan’s trial period.

    I created a gist example that can be installed as a plugin in WordPress. The line 14 needs to be edited to target a precise button and/or plan. In the case you want to apply this parameter to all Direct Stripe buttons, delete lines 14,15,16.

    I hope that can help.

    Best wishes,

    Nico

    https://gist.github.com/New0/9044c5e50732883342f844c5b7fb7b85

    Thread Starter samlutostanski

    (@samlutostanski)

    Ok thanks i will try this and delete the 3 lines as you suggested. but i have never used a filter hook before, please can you explain where i need to add this code? do i just download the zip file and upload as a new plugin and then its done? how do i delete those 3 lines?

    thanks

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @samlutostanski,

    I edited the code to target all buttons.

    In order to use it :
    – Go to https://gist.github.com/New0/9044c5e50732883342f844c5b7fb7b85
    – Click “Download zip” button
    – Go to your WordPress dashboard -> Plugins -> Add
    – Click the Upload plugin button and select the zip file from your computer
    – Install and activate

    Let me know how that goes.

    Best wishes,

    Nicolas

    Thread Starter samlutostanski

    (@samlutostanski)

    yes that worked perfectly thanks again!

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Adding a button with Elementor’ is closed to new replies.