From 4ebb882ff6f7e5e53744313ce2f5069f9b4fb552 Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Mon, 7 Sep 2015 14:56:25 +0200 Subject: [PATCH] Collect templates for Cartridge.shop --- .../accounts/account_profile_update.html | 7 + diggersdigest/templates/email/base.html | 6 +- .../templates/email/order_receipt.html | 13 ++ .../templates/email/order_receipt.txt | 27 +++ diggersdigest/templates/email/receipt.html | 6 + .../templates/email/receipt_rtl.html | 6 + diggersdigest/templates/pages/category.html | 91 ++++++++++ diggersdigest/templates/shop/base.html | 1 + .../templates/shop/billing_shipping.html | 49 ++++++ diggersdigest/templates/shop/cart.html | 113 +++++++++++++ diggersdigest/templates/shop/checkout.html | 83 +++++++++ diggersdigest/templates/shop/complete.html | 86 ++++++++++ .../templates/shop/confirmation.html | 80 +++++++++ .../shop/includes/order_details.html | 55 ++++++ .../shop/includes/order_details_rtl.html | 61 +++++++ .../templates/shop/includes/order_totals.html | 40 +++++ .../templates/shop/includes/order_totals.txt | 11 ++ .../shop/includes/payment_fields.html | 14 ++ .../templates/shop/includes/user_panel.html | 18 ++ .../templates/shop/order_history.html | 51 ++++++ .../templates/shop/order_invoice.html | 5 + .../templates/shop/order_invoice_pdf.html | 1 + diggersdigest/templates/shop/payment.html | 10 ++ diggersdigest/templates/shop/product.html | 159 ++++++++++++++++++ diggersdigest/templates/shop/wishlist.html | 46 +++++ 25 files changed, 1037 insertions(+), 2 deletions(-) create mode 100644 diggersdigest/templates/accounts/account_profile_update.html create mode 100644 diggersdigest/templates/email/order_receipt.html create mode 100644 diggersdigest/templates/email/order_receipt.txt create mode 100644 diggersdigest/templates/email/receipt.html create mode 100644 diggersdigest/templates/email/receipt_rtl.html create mode 100644 diggersdigest/templates/pages/category.html create mode 100644 diggersdigest/templates/shop/base.html create mode 100644 diggersdigest/templates/shop/billing_shipping.html create mode 100644 diggersdigest/templates/shop/cart.html create mode 100644 diggersdigest/templates/shop/checkout.html create mode 100644 diggersdigest/templates/shop/complete.html create mode 100644 diggersdigest/templates/shop/confirmation.html create mode 100644 diggersdigest/templates/shop/includes/order_details.html create mode 100644 diggersdigest/templates/shop/includes/order_details_rtl.html create mode 100644 diggersdigest/templates/shop/includes/order_totals.html create mode 100644 diggersdigest/templates/shop/includes/order_totals.txt create mode 100644 diggersdigest/templates/shop/includes/payment_fields.html create mode 100644 diggersdigest/templates/shop/includes/user_panel.html create mode 100644 diggersdigest/templates/shop/order_history.html create mode 100644 diggersdigest/templates/shop/order_invoice.html create mode 100644 diggersdigest/templates/shop/order_invoice_pdf.html create mode 100644 diggersdigest/templates/shop/payment.html create mode 100644 diggersdigest/templates/shop/product.html create mode 100644 diggersdigest/templates/shop/wishlist.html diff --git a/diggersdigest/templates/accounts/account_profile_update.html b/diggersdigest/templates/accounts/account_profile_update.html new file mode 100644 index 0000000..9ea1087 --- /dev/null +++ b/diggersdigest/templates/accounts/account_profile_update.html @@ -0,0 +1,7 @@ +{% extends "accounts/account_form.html" %} +{% load i18n %} + +{% block account_form_actions %} +{{ block.super }} +{% trans "View past orders" %} +{% endblock %} diff --git a/diggersdigest/templates/email/base.html b/diggersdigest/templates/email/base.html index 6030db4..ec4ad78 100644 --- a/diggersdigest/templates/email/base.html +++ b/diggersdigest/templates/email/base.html @@ -1,3 +1,5 @@ -{% block main %}{% endblock %} +{% load i18n %} +{% get_current_language_bidi as LANGUAGE_BIDI %} -
http://{{ request.get_host }} +{% block main %} +{% endblock %} diff --git a/diggersdigest/templates/email/order_receipt.html b/diggersdigest/templates/email/order_receipt.html new file mode 100644 index 0000000..5a25212 --- /dev/null +++ b/diggersdigest/templates/email/order_receipt.html @@ -0,0 +1,13 @@ +{% extends "email/base.html" %} +{% load i18n %} + + +{% block main %} + +{% if not LANGUAGE_BIDI %} + {% include "email/receipt.html" %} +{% else %} + {% include "email/receipt_rtl.html" %} +{% endif %} + +{% endblock %} diff --git a/diggersdigest/templates/email/order_receipt.txt b/diggersdigest/templates/email/order_receipt.txt new file mode 100644 index 0000000..f4e5e8b --- /dev/null +++ b/diggersdigest/templates/email/order_receipt.txt @@ -0,0 +1,27 @@ +{% extends "email/base.txt" %} +{% load shop_tags i18n %} + +{% block main %} +{% trans "Dear" %} {{ order.billing_detail_first_name }}, + +{% trans "Your order has been successful, details are below." %} + +{% trans "Order ID:" %} #{{ order.id }} + +{% trans "Billing Details:" %} +{% for field, value in order_billing_detail_fields %} +{{ field }}: {{ value }} +{% endfor %} + +{% trans "Shipping Details:" %} +{% for field, value in order_shipping_detail_fields %} +{{ field }}: {{ value }} +{% endfor %} + +{% trans "Items Ordered:" %} +{% for item in order_items %} +{{ item.quantity }} x {{ item.description }} {{ item.unit_price|currency }} {% trans "each" %} +{% endfor %} + +{% order_totals_text %} +{% endblock %} diff --git a/diggersdigest/templates/email/receipt.html b/diggersdigest/templates/email/receipt.html new file mode 100644 index 0000000..97709a9 --- /dev/null +++ b/diggersdigest/templates/email/receipt.html @@ -0,0 +1,6 @@ +{% load shop_tags i18n %} + +

{% trans "Dear" %} {{ order.billing_detail_first_name }},

+

{% trans "Your order has been successful, details are below." %}

+{% include "shop/includes/order_details.html" %} + diff --git a/diggersdigest/templates/email/receipt_rtl.html b/diggersdigest/templates/email/receipt_rtl.html new file mode 100644 index 0000000..19a007c --- /dev/null +++ b/diggersdigest/templates/email/receipt_rtl.html @@ -0,0 +1,6 @@ +{% load shop_tags i18n %} + +

,{% trans "Dear" %} {{ order.billing_detail_first_name }}

+

{% trans "Your order has been successful, details are below." %}

+{% include "shop/includes/order_details_rtl.html" %} + diff --git a/diggersdigest/templates/pages/category.html b/diggersdigest/templates/pages/category.html new file mode 100644 index 0000000..9a9cae4 --- /dev/null +++ b/diggersdigest/templates/pages/category.html @@ -0,0 +1,91 @@ +{% extends "pages/page.html" %} + +{% load mezzanine_tags shop_tags i18n %} +{% block body_id %}category{% endblock %} + +{% block main %}{{ block.super }} + +{% editable page.category.content %} +{{ page.category.content|safe }} +{% endeditable %} + +{% if child_categories %} +
+{% if settings.SHOP_CATEGORY_USE_FEATURED_IMAGE %} + {% for category in child_categories %} + + {% endfor %} +{% else %} + {% for category in child_categories %} + + {% endfor %} +{% endif %} +
+{% endif %} + +{% if products.paginator.count != 0 %} + +
+
+ + +
+
+ +
+{% for product in products.object_list %} + +{% endfor %} +
+ +{% pagination_for products %} + +{% endif %} + +{% endblock %} diff --git a/diggersdigest/templates/shop/base.html b/diggersdigest/templates/shop/base.html new file mode 100644 index 0000000..94d9808 --- /dev/null +++ b/diggersdigest/templates/shop/base.html @@ -0,0 +1 @@ +{% extends "base.html" %} diff --git a/diggersdigest/templates/shop/billing_shipping.html b/diggersdigest/templates/shop/billing_shipping.html new file mode 100644 index 0000000..c0b5464 --- /dev/null +++ b/diggersdigest/templates/shop/billing_shipping.html @@ -0,0 +1,49 @@ +{% extends "shop/checkout.html" %} +{% load staticfiles i18n mezzanine_tags %} + +{% block extra_head %} +{{ block.super }} + +{% endblock %} + +{% block fields %} +{% if request.cart.has_items %} +{% if not request.user.is_authenticated %} +{% ifinstalled mezzanine.accounts %} +

+{% url "login" as login_url %} +{% url "signup" as signup_url %} +{% with request.path as next %} +{% blocktrans %} +If you have an existing account or would like to create one, please +log in or +sign up. +{% endblocktrans %} +{% endwith %} +

+{% endifinstalled %} +{% endif %} + +{% errors_for form %} + +
+ {% trans "Billing Details" %} + {% fields_for form.billing_detail_fields %} +
+ +
+ {% trans "Delivery Details" %} + {% fields_for form.same_billing_shipping_field %} +
{% fields_for form.shipping_detail_fields %}
+ {% fields_for form.additional_instructions_field %} + {% fields_for form.remember_field %} +
+ +{% if not settings.SHOP_CHECKOUT_STEPS_SPLIT and settings.SHOP_PAYMENT_STEP_ENABLED %} +{% include "shop/includes/payment_fields.html" %} +{% endif %} + +{% fields_for form.other_fields %} + +{% endif %} +{% endblock %} diff --git a/diggersdigest/templates/shop/cart.html b/diggersdigest/templates/shop/cart.html new file mode 100644 index 0000000..2a81743 --- /dev/null +++ b/diggersdigest/templates/shop/cart.html @@ -0,0 +1,113 @@ +{% extends "shop/base.html" %} +{% load mezzanine_tags shop_tags i18n %} + +{% block meta_title %}{% trans "Your Cart" %}{% endblock %} +{% block title %}{% trans "Your Cart" %}{% endblock %} +{% block body_id %}cart{% endblock %} + +{% block breadcrumb_menu %} +{{ block.super }} +
  • {% trans "Your Cart" %}
  • +{% endblock %} + +{% block main %} +{% if cart_formset.forms %} +
    +{% csrf_token %} +{% if cart_formset.errors %} +{% for error in cart_formset.errors %} +{% if error.values.0 %}{{ error.values.0 }}{% endif %} +{% endfor %} +{% endif %} +{{ cart_formset.management_form }} + + + + + + + + + + + + {% for form in cart_formset.forms %} + {% with form.instance as item %} + + + + + + + + + {% endwith %} + {% endfor %} + + + + + +
    {% trans "Item" %}{% trans "Unit Price" %}{% trans "Qty" %}{% trans "Price" %}{% trans "Remove?" %}
    + {{ form.id }} + {% if item.image %} + + {{ item.description }} + + {% endif %} + + {{ item.description }} + {{ item.unit_price|currency }}{{ form.quantity }}{{ item.total_price|currency }}{{ form.DELETE }}
    {% order_totals %} 
    + + +
    + +{% if discount_form %} +
    + {% fields_for discount_form %} + +
    +{% endif %} + +{% if settings.SHOP_USE_UPSELL_PRODUCTS %} +{% with request.cart.upsell_products as upsell_products %} +{% if upsell_products %} +

    {% trans "You may also like:" %}

    +
    + {% for product in upsell_products %} + + {% endfor %} +
    +{% endif %} +{% endwith %} +{% endif %} + +{% else %} +

    {% trans "Your Cart is empty." %}

    +{% endif %} +{% endblock %} diff --git a/diggersdigest/templates/shop/checkout.html b/diggersdigest/templates/shop/checkout.html new file mode 100644 index 0000000..554c601 --- /dev/null +++ b/diggersdigest/templates/shop/checkout.html @@ -0,0 +1,83 @@ +{% extends "shop/base.html" %} +{% load shop_tags mezzanine_tags i18n %} + +{% block meta_title %}{% trans "Checkout" %} - {{ step_title }}{% endblock %} +{% block title %}{% trans "Checkout" %} - {% trans "Step" %} {{ step }} {% trans "of" %} {{ steps|length }}{% endblock %} +{% block body_id %}checkout{% endblock %} + +{% block extra_head %} + +{% endblock %} + +{% block breadcrumb_menu %} +{% for step in steps %} +
  • + {% if step.title == step_title %} + {{ step.title }} + {% else %} + {{ step.title }} + {% endif %} +
  • +{% endfor %} +
  • {% trans "Complete" %}
  • +{% endblock %} + +{% block main %} + +{% block before-form %}{% endblock %} +
    +
    + {% csrf_token %} + + {% block fields %}{% endblock %} + + {% block nav-buttons %} + {% if request.cart.has_items %} +
    + + {% if not CHECKOUT_STEP_FIRST %} + + {% endif %} +
    + {% else %} +

    {% trans "Your cart is empty." %}

    +

    {% trans "This may be due to your session timing out after a period of inactivity." %}

    +

    {% trans "We apologize for the inconvenience." %}

    +
    +

    {% trans "Continue Shopping" %}

    + {% endif %} + {% endblock %} + +
    + +{% if request.cart.has_items %} +
    +
    +
    +
      + {% for item in request.cart %} +
    • + {% if item.image %} + {{ item.description }} + {% endif %} +
      + {{ item.quantity }} x {{ item.description }} + {{ item.total_price|currency }} +
      +
    • + {% endfor %} +
    + {% order_totals %} +
    + {% trans "Edit Cart" %} +
    +
    +
    +{% endif %} + +{% block after-form %}{% endblock %} +
    +{% endblock %} diff --git a/diggersdigest/templates/shop/complete.html b/diggersdigest/templates/shop/complete.html new file mode 100644 index 0000000..e341e6d --- /dev/null +++ b/diggersdigest/templates/shop/complete.html @@ -0,0 +1,86 @@ +{% extends "shop/base.html" %} +{% load i18n %} + +{% block body_id %}complete{% endblock %} + +{% block meta_title %}{% trans "Order Complete" %}{% endblock %} + +{% block extra_head %} +{{ block.super }} +{% if settings.GOOGLE_ANALYTICS_ID %} + +{% endif %} +{% endblock %} + +{% block title %}{% trans "Order Complete" %}{% endblock %} + +{% block breadcrumb_menu %} +{% for step in steps %} +
  • {{ step.title }}
  • +{% endfor %} +
  • {% trans "Complete" %}
  • +{% endblock %} + + +{% block main %} +

    {% trans "Thank you for shopping with us, your order is complete." %}

    +

    {% trans "We've sent you a receipt via email." %}

    +

    {% trans "You can also view your invoice using one of the links below." %}

    +
    +
    + {% csrf_token %} + {% if has_pdf %} + {% trans "Download PDF invoice" %} + {% endif %} + {% trans "View invoice in your browser" %} + +
    +{% endblock %} diff --git a/diggersdigest/templates/shop/confirmation.html b/diggersdigest/templates/shop/confirmation.html new file mode 100644 index 0000000..b87ee60 --- /dev/null +++ b/diggersdigest/templates/shop/confirmation.html @@ -0,0 +1,80 @@ +{% extends "shop/checkout.html" %} +{% load i18n shop_tags %} + +{% block fields %} +{% if request.cart.has_items %} + +
    +
    +
    +

    {% trans "Billing Details" %}

    +
      + + {% for field, value in form.billing_detail_fields.values %} +
    • {{ value }}
    • + {% endfor %} + +
    +
    +
    +
    + +
    +
    +
    +

    {% trans "Shipping Details" %}

    +
      + + {% for field, value in form.shipping_detail_fields.values %} +
    • {{ value }}
    • + {% endfor %} + + {% for field, value in form.additional_instructions_field.values %} +
    • {{ value }}
    • + {% endfor %} + +
    +
    +
    +
    +{% if settings.SHOP_PAYMENT_STEP_ENABLED %} +{% comment %} +
    +
    +
    +
    +

    {% trans "Payment Details" %}

    +
      + + {% for field, value in form.card_name_field.values %} +
    • {{ value }}
    • + {% endfor %} + + {% for field, value in form.card_type_field.values %} +
    • {{ value }}
    • + {% endfor %} + +
    • + {% with form.card_expiry_fields.values as expiry_fields %} + {% with expiry_fields.next as month_field %} + {{ month_field.1 }}/{{ expiry_fields.next.1 }} + {% endwith %} + {% endwith %} +
    • + + {% for field, value in form.card_fields.values %} +
    • {{ value }}
    • + {% endfor %} + +
    +
    +
    +
    +{% endcomment %} +{% endif %} +
    + +{% for field in form %}{{ field }}{% endfor %} + +{% endif %} +{% endblock %} diff --git a/diggersdigest/templates/shop/includes/order_details.html b/diggersdigest/templates/shop/includes/order_details.html new file mode 100644 index 0000000..b6aa60a --- /dev/null +++ b/diggersdigest/templates/shop/includes/order_details.html @@ -0,0 +1,55 @@ +{% load shop_tags i18n %} + +

    {{ settings.SITE_TITLE }}

    + + + + + + +
    {% trans "Order ID:" %} {{ order.id }}{{ order.time }}
    + +

    {% trans "Your Details" %}

    + + + + + + + + + +
    {% trans "Billing Details" %}{% trans "Shipping Details" %}
    + + {% for field, value in order_billing_detail_fields %} + + {% endfor %} +
    {{ field }}:   {{ value }}
    +
    + + {% for field, value in order_shipping_detail_fields %} + + {% endfor %} +
    {{ field }}:   {{ value }}
    +
    + +

    {% trans "Items Ordered" %}

    + + + + + + + + {% for item in order.items.all %} + + + + + + + {% endfor %} + + + +
    {% trans "Item" %}{% trans "Unit Price" %}{% trans "Qty" %}{% trans "Price" %}
    {{ item.description }}{{ item.unit_price|currency }}{{ item.quantity }}{{ item.total_price|currency }}
    {% order_totals %}
    diff --git a/diggersdigest/templates/shop/includes/order_details_rtl.html b/diggersdigest/templates/shop/includes/order_details_rtl.html new file mode 100644 index 0000000..e1760a1 --- /dev/null +++ b/diggersdigest/templates/shop/includes/order_details_rtl.html @@ -0,0 +1,61 @@ +{% load shop_tags i18n %} + +

    {{ settings.SITE_TITLE }}

    + + + + + + +
    {{ order.time }}{% trans "Order ID:" %} {{ order.id }}
    + +

    {% trans "Your Details" %}

    + + + + + + + + + +
    {% trans "Billing Details" %}{% trans "Shipping Details" %}
    + + {% for field, value in order_billing_detail_fields %} + + {% endfor %} +
    {{ value }}    : {{ field }}
    +
    + + {% for field, value in order_shipping_detail_fields %} + + {% endfor %} +
    {{ value }}    : {{ field }}
    +
    + +

    {% trans "Items Ordered" %}

    + + + + + + + + + + + {% for item in order.items.all %} + + + + + + + + + + {% endfor %} + + + +
    {% trans "Price" %}{% trans "Qty" %}{% trans "Unit Price" %}{% trans "Item" %}
    {{ item.total_price|currency }}{{ item.quantity }}{{ item.unit_price|currency }}{{ item.description }}
    {% order_totals %}
    diff --git a/diggersdigest/templates/shop/includes/order_totals.html b/diggersdigest/templates/shop/includes/order_totals.html new file mode 100644 index 0000000..ffe3cf4 --- /dev/null +++ b/diggersdigest/templates/shop/includes/order_totals.html @@ -0,0 +1,40 @@ +{% load shop_tags i18n %} +
    + {% if discount_total or shipping_total %} +
    {{ item_total|currency }}
    + {% endif %} + {% if discount_total %} +
    + {{ discount_total|currency }} +
    + {% endif %} + {% if shipping_type or shipping_total %} +
    + {{ shipping_total|currency }} +
    + {% endif %} + {% if tax_total %} +
    + {{ tax_total|currency }} +
    + {% endif %} +
    {{ order_total|currency }}
    +
    diff --git a/diggersdigest/templates/shop/includes/order_totals.txt b/diggersdigest/templates/shop/includes/order_totals.txt new file mode 100644 index 0000000..fdbb3a8 --- /dev/null +++ b/diggersdigest/templates/shop/includes/order_totals.txt @@ -0,0 +1,11 @@ +{% load shop_tags i18n %}{% if discount_total or shipping_total %} +{% trans "Sub total" %}: {{ item_total|currency }} +{% endif %}{% if discount_total %} +{% if discount_type %}{{ discount_type }}{% else %}{% trans "Discount" %}{% endif %}: {{ discount_total|currency }} +{% endif %}{% if shipping_type or shipping_total %} +{% if shipping_type %}{{ shipping_type }}{% else %}{% trans "Shipping" %}{% endif %}: {{ shipping_total|currency }} +{% endif %} {% if tax_total %} +{% if tax_type %}{{ tax_type }}{% else %}{% trans "Tax" %}{% endif %}: {{ tax_total|currency }} +{% endif %}{% trans "Total" %}: {{ order_total|currency }} + + diff --git a/diggersdigest/templates/shop/includes/payment_fields.html b/diggersdigest/templates/shop/includes/payment_fields.html new file mode 100644 index 0000000..238a97d --- /dev/null +++ b/diggersdigest/templates/shop/includes/payment_fields.html @@ -0,0 +1,14 @@ +{% load i18n mezzanine_tags %} +
    + {% trans "Payment Details" %} + {% fields_for form.card_name_field %} + {% fields_for form.card_type_field %} + {% with form.card_expiry_fields as card_expiry_fields %} +
    + + {% fields_for card_expiry_fields %} +
    +
    + {% endwith %} + {% fields_for form.card_fields %} +
    diff --git a/diggersdigest/templates/shop/includes/user_panel.html b/diggersdigest/templates/shop/includes/user_panel.html new file mode 100644 index 0000000..db8f64c --- /dev/null +++ b/diggersdigest/templates/shop/includes/user_panel.html @@ -0,0 +1,18 @@ +{% load i18n shop_tags mezzanine_tags %} +{% spaceless %} + + +{% blocktrans count request.cart.total_quantity as cart_quantity %}1 item{% plural %}{{ cart_quantity }} items{% endblocktrans %} +{% trans "in cart" %}: +{{ request.cart.total_price|currency }}
    +{% if request.cart.total_quantity != 0 %} + + {% if request.session.order.step %}{% trans "Return to Checkout" %}{% else %}{% trans "Go to Checkout" %}{% endif %} +
    +{% endif %} +{% if settings.SHOP_USE_WISHLIST %} + + +{% blocktrans count request.wishlist|length as wishlist_count %}Wishlist contains 1 item{% plural %} Wishlist contains {{ wishlist_count }} items{% endblocktrans %} +{% endif %} +{% endspaceless %} diff --git a/diggersdigest/templates/shop/order_history.html b/diggersdigest/templates/shop/order_history.html new file mode 100644 index 0000000..cb319e0 --- /dev/null +++ b/diggersdigest/templates/shop/order_history.html @@ -0,0 +1,51 @@ +{% extends "shop/base.html" %} +{% load mezzanine_tags shop_tags i18n %} + +{% block meta_title %}{% trans "Order History" %}{% endblock %} +{% block title %}{% trans "Order History" %}{% endblock %} + +{% block breadcrumb_menu %} +{{ block.super }} +
  • {% trans "Order History" %}
  • +{% endblock %} + +{% block main %} + +{% if orders %} + + + + + + + + + + + {% for order in orders.object_list %} + + + + + + + + {% endfor %} + +
    ID{% trans "Date" %}{% trans "Qty" %}{% trans "Paid" %} 
    {{ order.id }}{{ order.time|date:"SHORT_DATE_FORMAT" }}{{ order.quantity_total }}{{ order.total|currency }} +
    + {% csrf_token %} + {% if has_pdf %} + {% trans "Download PDF" %} + {% endif %} + {% trans "View invoice" %} + +
    +
    +{% pagination_for orders %} + +{% else %} +

    {% trans "You have not ordered anything from us yet." %}

    +{% endif %} + +{% endblock %} diff --git a/diggersdigest/templates/shop/order_invoice.html b/diggersdigest/templates/shop/order_invoice.html new file mode 100644 index 0000000..5dcda6c --- /dev/null +++ b/diggersdigest/templates/shop/order_invoice.html @@ -0,0 +1,5 @@ +{% if not LANGUAGE_BIDI %} + {% include "shop/includes/order_details.html" %} +{% else %} + {% include "shop/includes/order_details_rtl.html" %} +{% endif %} diff --git a/diggersdigest/templates/shop/order_invoice_pdf.html b/diggersdigest/templates/shop/order_invoice_pdf.html new file mode 100644 index 0000000..da6b04f --- /dev/null +++ b/diggersdigest/templates/shop/order_invoice_pdf.html @@ -0,0 +1 @@ +{% extends "shop/order_invoice.html" %} diff --git a/diggersdigest/templates/shop/payment.html b/diggersdigest/templates/shop/payment.html new file mode 100644 index 0000000..6be458e --- /dev/null +++ b/diggersdigest/templates/shop/payment.html @@ -0,0 +1,10 @@ +{% extends "shop/checkout.html" %} +{% load i18n mezzanine_tags %} + +{% block fields %} +{% if request.cart.has_items %} +{% errors_for form %} +{% include "shop/includes/payment_fields.html" %} +{% fields_for form.other_fields %} +{% endif %} +{% endblock %} diff --git a/diggersdigest/templates/shop/product.html b/diggersdigest/templates/shop/product.html new file mode 100644 index 0000000..4ef715d --- /dev/null +++ b/diggersdigest/templates/shop/product.html @@ -0,0 +1,159 @@ +{% extends "shop/base.html" %} +{% load staticfiles mezzanine_tags shop_tags rating_tags i18n %} + +{% block meta_title %}{{ product.meta_title }}{% endblock %} +{% block body_id %}category{% endblock %} + +{% block meta_keywords %}{% metablock %} +{% for keyword in product.keywords.all %} + {% if not forloop.first %}, {% endif %} + {{ keyword }} +{% endfor %} +{% endmetablock %}{% endblock %} + +{% block meta_description %}{% metablock %} +{{ product.description }} +{% endmetablock %}{% endblock %} + +{% block extra_css %} +{{ block.super }} + +{% endblock %} + +{% block extra_js %} +{{ block.super }} + + +{% endblock %} + +{% block extra_head %} +{{ block.super }} + + +{% endblock %} + +{% block breadcrumb_menu %} +{{ block.super }} +
  • {{ product.title }}
  • +{% endblock %} + +{% block title %} +{% editable product.title %}{{ product.title }}{% endeditable %} +{% endblock %} + +{% block main %} + +{% if images %} +{% spaceless %} + + +{% if images|length != 1 %} + +{% endif %} + +{% endspaceless %} +{% endif %} + +{% editable product.content %} +{{ product.content|richtext_filters|safe }} +{% endeditable %} + +{% if product.available and has_available_variations %} + + +{% errors_for add_product_form %} + +
    + {% fields_for add_product_form %} +
    + + {% if settings.SHOP_USE_WISHLIST %} + + {% endif %} +
    +
    +{% else %} +

    {% trans "This product is currently unavailable." %}

    +{% endif %} + +{% if settings.SHOP_USE_RATINGS %} +
    +
    {% rating_for product %}
    +
    +{% endif %} + +{% if settings.SHOP_USE_RELATED_PRODUCTS and related_products %} +

    {% trans "Related Products" %}

    + +{% endif %} + +{% endblock %} diff --git a/diggersdigest/templates/shop/wishlist.html b/diggersdigest/templates/shop/wishlist.html new file mode 100644 index 0000000..fefde92 --- /dev/null +++ b/diggersdigest/templates/shop/wishlist.html @@ -0,0 +1,46 @@ +{% extends "shop/base.html" %} +{% load mezzanine_tags shop_tags i18n %} + +{% block meta_title %}{% trans "Your Wishlist" %}{% endblock %} +{% block title %}{% trans "Your Wishlist" %}{% endblock %} + +{% block breadcrumb_menu %} +{{ block.super }} +
  • {% trans "Your Wishlist" %}
  • +{% endblock %} + +{% block main %} +{% if error %}{{ error }}{% endif %} +{% if request.wishlist %} + + {% for item in wishlist_items %} + + + + + + {% endfor %} +
    + {% if item.image %} + {{ item }} + {% else %} +   + {% endif %} + + {{ item }} + +
    + {{ item.unit_price|currency }} + {% csrf_token %} + + + + +
    +
    +{% else %} +

    {% trans "Your wishlist is empty." %}

    +
    +

    {% trans "Continue Shopping" %}

    +{% endif %} +{% endblock %} -- 2.39.5