{"id":7711,"date":"2021-02-06T13:36:48","date_gmt":"2021-02-06T12:36:48","guid":{"rendered":"https:\/\/www.welaunch.io\/en\/?post_type=faq&#038;p=7711"},"modified":"2021-02-06T13:37:05","modified_gmt":"2021-02-06T12:37:05","slug":"text-variables-dark-pattern","status":"publish","type":"faq","link":"https:\/\/www.welaunch.io\/en\/knowledge-base\/faq\/text-variables-dark-pattern\/","title":{"rendered":"Text Variables to use in Dark Pattern Plugin"},"content":{"rendered":"<p>Our WooCommerce dark pattern plugin offers multiple variables, that you can use in the setting text fields. Example in before \/ after countdown texts or in the left stock bar. The full list of variables:<\/p>\n<ul>\n<li>{{stockQuantity}} = Current Stock Quantity<\/li>\n<li>{{currentlyViewing}} = Current people viewing the product<\/li>\n<li>{{productsSold}} = Amount of Products sold<\/li>\n<li>{{stockQuantityText}} = Current Stock Quantity Text with HTML element for automatic changing numbers<\/li>\n<li>{{stockQuantityMax}} =&gt; Max Quantity (based on sold products + current stock)<\/li>\n<li>{{stockQuantityMaxText}} =&gt; Max Quantity Text with HTML element for automatic changing numbers<\/li>\n<li>{{productsSoldPercentage}} =&gt; Percentage of how many products were sold \/ max Quantity<\/li>\n<li>{{stockLeftPercentage}} =&gt; Percentage of left stock based on max Quantity<\/li>\n<li>{{regularPrice}} =&gt; Regular Price (formatted)<\/li>\n<li>{{salePrice}} =&gt; Sale Price (formatted)<\/li>\n<li>{{savedAmount}} =&gt; Saved Amount (formatted)<\/li>\n<li>{{savedPercentage}} =&gt; Percentage how much is saved on this Product<\/li>\n<\/ul>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","product_cat":[],"class_list":["post-7711","faq","type-faq","status-publish","hentry","faq_topics-dark-pattern"],"_links":{"self":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/7711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/comments?post=7711"}],"version-history":[{"count":2,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/7711\/revisions"}],"predecessor-version":[{"id":7713,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/7711\/revisions\/7713"}],"wp:attachment":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/media?parent=7711"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/product_cat?post=7711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}