Skip to content

Commit

Permalink
fix: show the payment button based on the webshop checkout configurat…
Browse files Browse the repository at this point in the history
…ion (#253)

(cherry picked from commit fa7c702)
  • Loading branch information
Bhavan23 authored and mergify[bot] committed Feb 19, 2025
1 parent bfc2613 commit 698e289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webshop/templates/pages/order.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h3 class="m-0">{{ doc.name }}</h3>
<div class="form-column col-sm-6">
<div class="page-header-actions-block" data-html-block="header-actions">
<p>
{% if doc.doctype != "Sales Invoice" or doc.outstanding_amount > 0 %}
{% if enabled_checkout and (doc.doctype != "Sales Invoice" or doc.outstanding_amount > 0) %}
<a href="/api/method/erpnext.accounts.doctype.payment_request.payment_request.make_payment_request?dn={{ doc.name }}&dt={{ doc.doctype }}&submit_doc=1&order_type=Shopping Cart"
class="btn btn-primary btn-sm" id="pay-for-order">
{{ _("Pay") }} {{doc.get_formatted("grand_total") }}
Expand Down

0 comments on commit 698e289

Please sign in to comment.