Shopify: Improve instruction display (#5752)

This commit is contained in:
d11n 2024-02-16 09:36:41 +01:00 committed by GitHub
parent 335f345ce3
commit c57e1cca25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,16 +61,17 @@
@if (shopifyCredsSet) @if (shopifyCredsSet)
{ {
<div class="alert alert-warning"> <div class="alert alert-warning">
<p> <h5 class="alert-heading">In Shopify, please do the following …</h5>
In Shopify please paste following script at <a href="@shopifyUrl/admin/settings/checkout#PolarisTextField1" target="_blank" class="fw-bold" rel="noreferrer noopener"> Settings &gt; Checkout &gt; Order Processing &gt; Additional Scripts</a> <ul>
</p> <li>
<kbd style="display: block; word-break: break-all;" class="bg-dark"> Add a payment method at <a href="@shopifyUrl/admin/settings/payments" class="alert-link fw-bold" target="_blank" rel="noreferrer noopener">Settings &gt; Payments &gt; Manual Payment Methods</a> with the name <strong>Bitcoin with BTCPay Server</strong>
@($"<script src='{Url.Action("ShopifyJavascript", "UIShopify", new { storeId = Context.GetRouteValue("storeId") }, Context.Request.Scheme)}'></script>") </li>
</kbd> <li>
Paste this script at <a href="@shopifyUrl/admin/settings/checkout#PolarisTextField1" class="fw-bold alert-link" target="_blank" rel="noreferrer noopener">Settings &gt; Checkout &gt; Order Processing &gt; Additional Scripts</a>:
<pre class="mt-2 mb-0 text-wrap">@($"<script src='{Url.Action("ShopifyJavascript", "UIShopify", new { storeId = Context.GetRouteValue("storeId") }, Context.Request.Scheme)}'></script>")</pre>
</li>
</ul>
</div> </div>
<p class="alert alert-warning">
In Shopify please add a payment method at <a target="_blank" href="@shopifyUrl/admin/settings/payments" class="fw-bold" rel="noreferrer noopener"> Settings &gt; Payments &gt; Manual Payment Methods</a> with the name <kbd class="bg-dark">Bitcoin with BTCPay Server</kbd>
</p>
<p class="alert alert-success"> <p class="alert alert-success">
Orders on <b>@Model.ShopName</b>.myshopify.com will be marked as paid on successful invoice payment. Orders on <b>@Model.ShopName</b>.myshopify.com will be marked as paid on successful invoice payment.
Started: @Model.IntegratedAt.Value.ToBrowserDate() Started: @Model.IntegratedAt.Value.ToBrowserDate()