Pass order number closes #3038

This commit is contained in:
Mike Jolley 2013-04-29 15:22:33 +01:00
parent 4b87f933a4
commit 9888ca85a0
2 changed files with 8 additions and 7 deletions

View File

@ -197,14 +197,14 @@ class WC_Google_Analytics extends WC_Integration {
);
_gaq.push(['_addTrans',
'" . esc_js( $order_id ) . "', // order ID - required
'" . esc_js( $order->get_order_number() ) . "', // order ID - required
'" . esc_js( get_bloginfo( 'name' ) ) . "', // affiliation or store name
'" . esc_js( $order->get_total() ) . "', // total - required
'" . esc_js( $order->get_total_tax() ) . "', // tax
'" . esc_js( $order->get_shipping() ) . "', // shipping
'" . esc_js( $order->billing_city ) . "', // city
'" . esc_js( $order->billing_state ) . "', // state or province
'" . esc_js( $order->billing_country ) . "' // country
'" . esc_js( $order->get_total() ) . "', // total - required
'" . esc_js( $order->get_total_tax() ) . "', // tax
'" . esc_js( $order->get_shipping() ) . "', // shipping
'" . esc_js( $order->billing_city ) . "', // city
'" . esc_js( $order->billing_state ) . "', // state or province
'" . esc_js( $order->billing_country ) . "' // country
]);
";

View File

@ -176,6 +176,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Fix - Fix incorrect CSS class being output in product image gallery.
* Fix - Mijireh page slurp.
* Fix - woocommerce_downloadable_product_name filter fixes.
* Fix - Pass order number to google analytics, not id
* Localization - Netherlands, Hungarian, Taiwan, Italian, CZ, Spanish updates.
* Other minor fixes and localisation updates.