• After updating to 5.0 and updating to PP business account, the shortcode for showing options in the dropdown stops working (only showing the last option of 6 previously defined ones). For now I have rolled back the update until a fix is available.

    Thanks for any pointers

    Rob

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author mra13

    (@mra13)

    Hi Rob, Can you please provide (copy and paste) the shortcode that you are using?

    Thread Starter Rob de Cleen

    (@rdc2701)

    Hi, thanks for getting back to me so soon:

    Here is the shortcode:

    [wp_paypal_payment_box email="[email protected]" options="Jordaan & Western Islands Tour with MforAmsterdam: |Plantage & Jewish Quarter Tour with MforAmsterdam:|Rijksmuseum Tour with MforAmsterdam:|Grachtengordel Tour with MforAmsterdam:|Finance & Trade Tour with MforAmsterdam:|Nieuwmarkt & Old City Center Tour with MforAmsterdam:|Custom Private Tour with MforAmsterdam:|Corporate Outing with MforAmsterdam:|Rijksmuseum Ticket Booking by MforAmsterdam:" currency="EUR" other_amount_label="Amount" other_amount=true country_code="US" reference="Email Address" reference_placeholder="Your email address"]

    All is fine with v 4.9, even with 5.0 initially, but after changing to the new API the dropdowns stop functioning as before.

    link to the dropdown page (v4.9):

    https://mforamsterdam.com/info/payment-info/

    Thanks for your time and help!

    krutzy

    (@krutzy)

    I am having a similar issue with this short code:

    [wp_paypal_payment_box email=”[email protected]” options=”Regular Membership:30.00|Family Membership:40.00|August-October Regular:15.00|August-October Family:20.00″? reference=”Your Callsign and Last Name (Required)” return=”https://www.w4va.org/thank-you/”%5D

    The “reference=” is not showing like it should. It just shows a colon “:”.

    • This reply was modified 8 months ago by krutzy. Reason: More detail
    Plugin Author mra13

    (@mra13)

    @rob, Your shortcode looks to be malformed slightly. It is missing the amount values in there. After the colon, there should be an amount value. The following is an example of how the “options” parameter of the shortcode should contain the amount values.

    [wp_paypal_payment_box options=”T-Shirt Payment:15.50|Ticket Payment:30.00|Membership Payment:47.95″]

    Please check the following documentation for details on how to use the shortcode then you can format it correctly and test again:

    https://www.tipsandtricks-hq.com/wordpress-easy-paypal-payment-or-donation-accept-plugin-120

    Plugin Author mra13

    (@mra13)

    @krutzy, There was an issue with the “reference” field in the new version. I have applied a fix for it and released a new version. You can try the new version and let me know how it goes.

    krutzy

    (@krutzy)

    That fixed it – thank you!

    Thread Starter Rob de Cleen

    (@rdc2701)

    Hi mra13,

    No it’s not a malformed shortcode, the price was in this case omitted on purpose (as it’s a variable amount, depending on other choices). That’s why the “other” amount exists in that shortcode. This was a solution to not have to run a full ecommerce suite.

    Regardless, this shortcode functioned perfectly and without any errors in v 4.9, so let me rephrase the question then:

    why does v. 5 and new PP API restrict the dropdown options? And can it be fixed to work like 4.9?

    Thread Starter Rob de Cleen

    (@rdc2701)

    Just to clarify after test with 5.0.1:

    Adding price does nothing to fix my original issue. I have 9 options, but with the new version 5.0.1 and the new API only the last 3 dropdown options are visible, the preceding 6 options from the dropdown don’t show…

    Plugin Author mra13

    (@mra13)

    Hi Rob, The shortcode that you previously shared with me certainly won’t work with the new version of the plugin since it is not how the shortcode is supposed to work (our documentation shows exactly how the shortcode needs to have price values in there). In the previous version, you were using it in a way that worked for you since the other PayPal form didn’t create an error for it even though the syntax was not correct (according to our documentation).

    If the shortcode is not according to what we say on our documentation, it won’t work on the new version.

    Another option is for you to use our following plugin which is more robust and has more functionality for accepting payments. You can use both of these plugins side by side on the same site without any issues:

    https://www.ads-software.com/plugins/wp-express-checkout/

    You can set it up on your site, then use the following feature to see if this works better for you:

    https://wp-express-checkout.com/creating-product-with-variations/

    If that doesn’t work, you can delete the plugin.

    Thread Starter Rob de Cleen

    (@rdc2701)

    Hi mra13,

    I appreciate the time you took for the answer, but I have to say I am also a bit surpised by it. Like I mentioned in my last message about this issue, I took your answer about missing price being the reason quite seriously and ran an extensive test with 9 options and with price added: it made no difference, the behavior of the dropdown options is not what it should be: they still do not show all of them.

    I will check WP Express Checkout as well, but the issue reported by me is something you should check in _this_ plugin.

    Please try it out yourself and see how the dropdown only shows option 8, 4 and 9 (in that strange order!)

    [wp_paypal_payment_box email="[email protected]" options="Tour 1:€35|Tour2:€35|Tour3:€35|Tour 4:€45|Tour 5:€35|Tour 6:€35|Tour 7:€35|Tour 8:€35|Tour 9:€25,50" currency="EUR" other_amount_label="Below please enter the total for number of participants or as agreed. Amount:" other_amount=true country_code="US" reference="Email Address" reference_placeholder="Your email address"]

    When restricting the options to only 6 (to exclude 9 options being the reason) it only show options 6 and 4 in the dropdown.

    So no, the behavior does NOT come from missing price info. There seems to be something wrong here with the internal logic. Thanks for your time and efforts!

    • This reply was modified 8 months ago by Rob de Cleen. Reason: added additonal info
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘dropdown options disappear with 5.0’ is closed to new replies.