brotherton-erpnext/erpnext/templates/generators/item/item_configure.html
marination 8d389fd433 fix: Item Variant selection empty popup on website
- pass item_code instead of website item name to fetch attributes
2021-11-16 17:51:37 +05:30

21 lines
611 B
HTML

{% if shopping_cart and shopping_cart.cart_settings.enabled %}
{% set cart_settings = shopping_cart.cart_settings %}
<div class="mt-5 mb-6">
{% if cart_settings.enable_variants | int %}
<button class="btn btn-primary-light btn-configure font-md mr-2"
data-item-code="{{ doc.item_code }}"
data-item-name="{{ doc.web_item_name }}"
>
{{ _('Select Variant') }}
</button>
{% endif %}
{% if cart_settings.show_contact_us_button %}
{% include "templates/generators/item/item_inquiry.html" %}
{% endif %}
</div>
<script>
{% include "templates/generators/item/item_configure.js" %}
</script>
{% endif %}