Просмотр исходного кода

Handle products without a category in GA subission

Without this change, the category is "None"
master
David Winterbottom 12 лет назад
Родитель
Сommit
b5790aaac8
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      oscar/templates/oscar/partials/google_analytics_transaction.html

+ 1
- 1
oscar/templates/oscar/partials/google_analytics_transaction.html Просмотреть файл

@@ -15,7 +15,7 @@ _gaq.push(['_addTrans',
15 15
         '{{ order.number }}',
16 16
         '{{ line.partner_sku|escapejs }}',
17 17
         '{{ line.title|escapejs }}',
18
-        '{{ line.category|escapejs }}',
18
+        '{{ line.category|default:"Uncategorised"|escapejs }}',
19 19
         '{{ line.unit_price_incl_tax }}',
20 20
         '{{ line.quantity }}']);
21 21
 {% endfor %}

Загрузка…
Отмена
Сохранить