{% extends "base.html" %} {% load static %} {# This template renders an interactive configurator for custom rugs. It presents select elements for each option type available on the product. When the form is submitted, it recalculates the total price based on the base price of the product and the selected options' price modifiers. In a full implementation, this could be enhanced with client‑side JavaScript to update the price instantly without a page reload and to preview the selected options using images. For now, server‑side rendering keeps the logic simple and accessible. #} {% block title %}Configure {{ product.name }} — KiwiCrib{% endblock %} {% block content %}
Base price: ${{ product.base_price }} per {{ product.unit }}
{% if total_price %}Total price: ${{ total_price }}
This estimate includes the base price of ${{ product.base_price }} and your selected options. Final pricing may vary with installation and delivery.