# [customer_units]

## Displays the number of WooCommerce products purchased by the current logged in user Shortcode: [customer_units]

Variables accepted:

• singular: word to use when output is 1. Example `singular="time"`.
• plural: word to use when output higher than 1. Example `plural="times"`.
• animation: animate the stats counter. Default is `animation="false"`.
• multiplier: Multiply the output by any number. Example `multiplier="3.5"`
• hide_bellow: hide the shortcode output if the shortcode value is smaller than the one specified. Example `hide_bellow="10"` -> If the original output is bellow 10, then shortcode output is hidden.
• value_bellow: substitute the shortcode output with a certain number if the shortcode value is smaller than the one specified. Example `value_bellow="10,45"` -> output “45” if the original value is under “10”.
• random(X,Y): Choose a random number between X and Y, to be used inside another variable. Example `value_bellow="10,random(10,30)"` -> If the original output is bellow 10, then substitute with a random number between 10 and 30.

Tip

This shortcode might be useful to show right after the customer makes a purchase, which you can do like this:

1. Install code snippets: https://wordpress.org/plugins/code-snippets/
2. Make a snippet, Name it whatever you want, then add this code:

// add text to the thank you page

You have help donating `[customer_units singular="liter" plural="liters" animation="true" multiplier="3"]` of clean water to a poor village!
{"ft_lang_label":"__label__en","ft_lang_prob":0.69424313,"math_prob":0.86582285,"size":2040,"snap":"2019-43-2019-47","text_gpt3_token_len":494,"char_repetition_ratio":0.11935167,"word_repetition_ratio":0.108843535,"special_character_ratio":0.25588235,"punctuation_ratio":0.14673913,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9667885,"pos_list":[0,1,2],"im_url_duplicate_count":[null,7,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-17T11:12:12Z\",\"WARC-Record-ID\":\"<urn:uuid:91413855-7fb7-49f2-b956-0460f54fa86b>\",\"Content-Length\":\"169561\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5708dfb0-f54d-42e4-806f-44bfa2a29a8f>\",\"WARC-Concurrent-To\":\"<urn:uuid:73ada9ae-d991-409b-834c-6c466d5e15ad>\",\"WARC-IP-Address\":\"104.26.9.144\",\"WARC-Target-URI\":\"https://shopitpress.com/docs/sip-social-proof-woocommerce/add-on/customer_units/\",\"WARC-Payload-Digest\":\"sha1:RSNIS5QGYKF5GB5VSDIEWPMVZ6X5UVSJ\",\"WARC-Block-Digest\":\"sha1:267TUAJQPBRIUJ2XE7I3BWLEFLNFVGW6\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496668910.63_warc_CC-MAIN-20191117091944-20191117115944-00134.warc.gz\"}"}