Skip to content

Commit

Permalink
fix: place order not working
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure committed Dec 16, 2024
1 parent d77ae22 commit 9e1d3fb
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 14 deletions.
10 changes: 0 additions & 10 deletions webshop/templates/includes/cart/cart_payment_summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,6 @@ <h6>
</tr>
</table>
{% endif %}

{% if cart_settings.enable_checkout %}
<button class="btn btn-primary btn-place-order font-md w-100" type="button">
{{ _('Place Order') }}
</button>
{% else %}
<button class="btn btn-primary btn-request-for-quotation font-md w-100" type="button">
{{ _('Request for Quote') }}
</button>
{% endif %}
</div>
</div>

Expand Down
13 changes: 13 additions & 0 deletions webshop/templates/includes/cart/place_order.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div class="card h-100">
<div class="card-body p-0">
{% if cart_settings.enable_checkout %}
<button class="btn btn-primary btn-place-order font-md w-100" type="button">
{{ _("Place Order") }}
</button>
{% else %}
<button class="btn btn-primary btn-request-for-quotation font-md w-100" type="button">
{{ _("Request for Quote") }}
</button>
{% endif %}
</div>
</div>
10 changes: 8 additions & 2 deletions webshop/templates/pages/cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,14 @@ <h5>{{ _("Terms and Conditions") }}</h5>
</div>
{% endif %}

<div class="mb-3 frappe-card p-5 payment-summary">
{% include "templates/includes/cart/cart_payment_summary.html" %}
<div class="mb-3 frappe-card p-5">
<div class="payment-summary">
{% include "templates/includes/cart/cart_payment_summary.html" %}
</div>

<div class="place-order">
{% include "templates/includes/cart/place_order.html" %}
</div>
</div>

{% include "templates/includes/cart/cart_address.html" %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"hide_variants",
"enable_variants",
"show_price",
"login_required_to_view_products",
"column_break_9",
"login_required_to_view_products",
"show_stock_availability",
"show_quantity_in_website",
"allow_items_not_in_stock",
Expand Down Expand Up @@ -378,7 +378,7 @@
"index_web_pages_for_search": 1,
"issingle": 1,
"links": [],
"modified": "2024-11-05 13:31:46.657592",
"modified": "2024-12-16 16:22:51.445190",
"modified_by": "Administrator",
"module": "Webshop",
"name": "Webshop Settings",
Expand All @@ -393,6 +393,10 @@
"role": "System Manager",
"share": 1,
"write": 1
},
{
"read": 1,
"role": "All"
}
],
"sort_field": "modified",
Expand Down

0 comments on commit 9e1d3fb

Please sign in to comment.