Title: Purchase value
Last modified: April 28, 2019

---

# Purchase value

 *  [jere2013](https://wordpress.org/support/users/jere2013/)
 * (@jere2013)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/purchase-value/)
 * Hello,
 * I would like to know how to add the woocommerce purchase value in my custom event
   settings please.
 * I tried to add this code in the Value Field, but it doesn’t work: <?php echo 
   $order->get_order_total(); ?>
 * Thank you for your help

Viewing 1 replies (of 1 total)

 *  Plugin Author [Antonino Scarfì](https://wordpress.org/support/users/antoscarface/)
 * (@antoscarface)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/purchase-value/#post-11568886)
 * Hi,
 * that should be the right piece of code to get the order total, but we should 
   check the context where you use that code.
 * What is the problem exactly? Where are you using it?

Viewing 1 replies (of 1 total)

The topic ‘Purchase value’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pixel-caffeine_e2ce0c.svg)
 * [Pixel Caffeine](https://wordpress.org/plugins/pixel-caffeine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pixel-caffeine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pixel-caffeine/)
 * [Active Topics](https://wordpress.org/support/plugin/pixel-caffeine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pixel-caffeine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pixel-caffeine/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Antonino Scarfì](https://wordpress.org/support/users/antoscarface/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/purchase-value/#post-11568886)
 * Status: not resolved