Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Arunas Liuiza

    (@ideag)

    Hi,

    Yes, most of the settings can be overwritten in the shortcode via arguments like title, text, icon, price, for, etc.

    Thread Starter yosmc

    (@yosmc)

    Sounds fantastic, but how? ?? Couldn’t find documentation, neither on WordPress nor in the readme nor in the plugin itself.

    Plugin Author Arunas Liuiza

    (@ideag)

    Along the lines of this example:

    [coffee title="Custom title" text="custom text" price="5"]

    Thread Starter yosmc

    (@yosmc)

    Got it – works like a charm.

    Some minor issues/ideas for the Paypal end:
    – It would be great if you could add Paypal’s “charset” variable to the tinyCoffee configuration. Paypal tries to be clever about this, but as usual when they do that, they fail, so certain special characters for foreign countries will otherwise arrive scrambled at Paypal.
    – It would also be great if Paypal variables could be changed via the shortcode – at least “payment text” would definitely be useful.
    – Finally, if the default callback page would be the last page accessed and not the homepage, that would be brilliant.

    Thanks again!

    Plugin Author Arunas Liuiza

    (@ideag)

    It would be great if you could add Paypal’s “charset” variable to the tinyCoffee configuration

    Added this to my todo for the next release.

    It would also be great if Paypal variables could be changed via the shortcode – at least “payment text” would definitely be useful.

    You can modify payment text via paypal_text attribute in shortcode. paypal_email and paypal_currency work too.

    Finally, if the default callback page would be the last page accessed and not the homepage, that would be brilliant.

    You can modify callback urls via success/callback_success and cancel/callback_cancel attributes in shortcode.

    If you know your way around WordPress filters, you can also use tinycoffee_options filter to modify all available options for any instance of tinyCoffee, be it shortcode, widget, modal or template tag.

    Thread Starter yosmc

    (@yosmc)

    Great! Is there also a way to set success/callback_success and cancel/callback_cancel to “SELF”? So obviously, the URL can be set manually, which should work reasonably well for all purposes, but if this was automatic, it would save some work and also make sure nothing breaks if an article or page is renamed/relocated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Customized shortcode?’ is closed to new replies.