{% load i18n pcart_core %}
{% capture as instance_pk silent %}{% randint 0 100 %}{% endcapture %}
{% if history %}
{% for item in history %}
{% save item.variant|default:item.product as product %}
{% include "catalog/includes/product_listing_item.html" with loop_index=forloop.counter %}
{% endfor %}