Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@benclark
Created June 4, 2013 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benclark/5706405 to your computer and use it in GitHub Desktop.
Save benclark/5706405 to your computer and use it in GitHub Desktop.
<?php
if ($order_id = db_result(db_query("SELECT order_id FROM {fundraiser_webform_order} WHERE sid = %d", $_GET['sid']))) {
$order = uc_order_load($order_id);
$order_total = isset($order->order_total) ? $order->order_total : 0;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment