• Resolved Ramzii

    (@ramzii)


    Hi there, great plugin! Kudo’s to you, sir.

    We are using Woo Donations to generate a product that gets added to the cart. We would like your plugin to keep tags whenever that donation product gets purchased.

    As I understand from your FAQ and the topics here this an be achieved by using the sales id into your shortcode.

    The donation product has ID: 4109. But I feel like that’s not the number I’m looking for?

    I tried [thermometer raised=’sales id=”4109″‘]. but it the amount raised stays at 0.. what am I doing wrong?

    Thank you.

    Edit: or does it start counting from now on without calculating how many times the product has been bought before? ty

    • This topic was modified 1 year, 11 months ago by Ramzii.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author rhewlif

    (@henryp)

    Thanks!

    It depends what that shortcode from woo donations outputs. If it’s just a number then it should work. If the thermometer doesn’t recognise the output then it will display the default 0 value.

    In the latest plugin update 2.1.5 I have improved on the parsing of external shortcodes so that even if their output includes currency symbols then the thermometer should recognise the value to use. Perhaps try with the new update. If that doesn’t work then it would be useful to know what the woo donations shortcode outputs by itself.

    Thread Starter Ramzii

    (@ramzii)

    Hi Henry,

    Thanks for your quick reply! I can’t seem to locate the correct output of ID number needed to get this to work. It indeed defaults to 0€ because it cant recognize the output.

    What am I missing?

    [thermometer raised=’sales id=”4109″‘ target=5000].

    I’ve attached some screenshots, maybe you can point me in the right direction?

    Thanks so much.

    Screenshot 1: https://ibb.co/6tysWBF
    Screenshot 2: https://ibb.co/Kcn305F / URL: https://pastebin.com/upHU3Lsg

    Plugin Author rhewlif

    (@henryp)

    One issue I see is that the apostrophes should be single quote marks:

    [thermometer raised='sales id="4109"' target=5000 decsep=',']

    Based on the first screenshot, you will need to clarify the decsep too for the thermometer or in the thermometer settings since the comma decimal point is not standard.

    What does the shortode [sales id=”4109″] output normally if it wasn’t in the thermometer?

    Thread Starter Ramzii

    (@ramzii)

    • What does the shortode [sales id=”4109″] output normally if it wasn’t in the thermometer?

    Nothing. Just shows the text ”?[sales id=”4109″] “.

    I used your shortcode:

    [thermometer raised=’sales id=”4109″‘ target=5000 decsep=’,’]

    It results in the same €0 unfortunately.

    Plugin Author rhewlif

    (@henryp)

    Ah ok, I would contact the support for Woo Donations then to troubleshoot why that shortcode isn’t working..or what you need to use instead. The ‘sales id’ I quoted in this plugin’s FAQ was just a random example to illustrate how to implement shortcodes from other plugins.

    Once you have a working shortcode that can output a value/amount I can help if there’s further issues with the thermometer reading it.

    @ramzii I had this same issue, but didn’t realize that this was specifically to pull in from Woo Donations. However, I wrote my own code as I don’t use that plugin…only the normal WooCommerce plugin and wanted this to work.

    It works just fine. Just add your own shortcode and function to calculate your sales total.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can’t figure out the ‘sales id’’ is closed to new replies.