|
|
|
|
@ -33,7 +33,8 @@ |
|
|
|
|
{% if course %} |
|
|
|
|
id: +'{{ course.id }}', |
|
|
|
|
name: '{{ course.title }}', |
|
|
|
|
category: 'course', |
|
|
|
|
category: '{{ course.category.title }}/{{ course.age_str }}', |
|
|
|
|
brand: 'Lil.School/{{ course.author.get_full_name }}', |
|
|
|
|
quantity: 1, |
|
|
|
|
price: +'{{ course.price|default:0|floatformat:"0" }}', |
|
|
|
|
{% endif %} |
|
|
|
|
@ -41,7 +42,8 @@ |
|
|
|
|
{% if school %} |
|
|
|
|
id: +'{{ payment.package.id }}', |
|
|
|
|
name: 'Подписка с {{ payment.date_start|date:"j-m-Y" }} до {{ payment.date_end|date:"j-m-Y" }}', |
|
|
|
|
category: 'package', |
|
|
|
|
category: 'Подписка', |
|
|
|
|
brand: 'Lil.School', |
|
|
|
|
quantity: 1, |
|
|
|
|
price: +'{{ payment.amount|default:0|floatformat:"0" }}', |
|
|
|
|
{% endif %} |
|
|
|
|
@ -49,7 +51,8 @@ |
|
|
|
|
{% if camp %} |
|
|
|
|
id: +'{{ payment.package.id }}', |
|
|
|
|
name: 'Подписка с {{ payment.date_start|date:"j-m-Y" }} до {{ payment.date_end|date:"j-m-Y" }}', |
|
|
|
|
category: 'package', |
|
|
|
|
category: 'Подписка', |
|
|
|
|
brand: 'Lil.School', |
|
|
|
|
quantity: 1, |
|
|
|
|
price: +'{{ payment.amount|default:0|floatformat:"0" }}', |
|
|
|
|
{% endif %} |
|
|
|
|
@ -57,17 +60,12 @@ |
|
|
|
|
{% if gift_certificate %} |
|
|
|
|
id: +'{{ gift_certificate.id }}', |
|
|
|
|
name: 'Сертификат {{ gift_certificate.price }}', |
|
|
|
|
category: 'gift_certificate', |
|
|
|
|
category: 'Подарочный сертификат', |
|
|
|
|
brand: 'Lil.School', |
|
|
|
|
quantity: 1, |
|
|
|
|
price: +'{{ gift_certificate.price|default:0|floatformat:"0" }}', |
|
|
|
|
{% endif %} |
|
|
|
|
}; |
|
|
|
|
window.LIL_STORE.data.gtagTransaction = { |
|
|
|
|
transaction_id: +'{{ payment.id }}', |
|
|
|
|
value: '{{ payment.amount }}', |
|
|
|
|
checkout_step: 1, |
|
|
|
|
items: [window.LIL_STORE.data.gtagProduct], |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
<script type="text/javascript" src="{% static 'pay.js' %}"></script> |
|
|
|
|
{% endblock foot_js %} |
|
|
|
|
|