[FIX] website_sale: fix tracking js

Dom has been changed by another commit
This commit is contained in:
Jeremy Kersten
2015-06-10 21:46:05 +02:00
parent fcff956c55
commit c4a6e504e3
@@ -37,10 +37,10 @@ $(document).ready(function () {
vpv("/stats/ecom/order_payment/" + method);
});
if ($(".oe_website_sale div.oe_cart div.oe_website_sale_tx_status").length) {
if ($(".oe_website_sale div.oe_website_sale_tx_status").length) {
track_ga('require', 'ecommerce');
var order_id = $(".oe_website_sale div.oe_cart div.oe_website_sale_tx_status").data("order-id");
var order_id = $(".oe_website_sale div.oe_website_sale_tx_status").data("order-id");
vpv("/stats/ecom/order_confirmed/" + order_id);
ajax.jsonRpc("/shop/tracking_last_order/").then(function(o) {