Skip to content

Commit

Permalink
improve buy box
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Jul 24, 2024
1 parent ff955a8 commit 47c5126
Showing 1 changed file with 34 additions and 24 deletions.
58 changes: 34 additions & 24 deletions _layouts/store-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,38 +201,48 @@ <h4 class="mb-4">This plugin includes:</h4>
</small>
</div>

{% if isMultiPurchase != nil %}

{% if isMultiPurchase != nil and isFree %}
<div class="row align-items-center mb-3">
<p>
You can only access this free plugin with a valid email address as you must login to the licence manager for download.
</p>
</div>
{% endif %}

<div class="row align-items-center mb-3">
{% if isMultiPurchase != nil %}
<a class="btn btn-success btn-lg w-100 btn-buy" href="{{ settings.gumroad }}" target="_blank"><i class="{{ buyBtnIcon }} me-2"></i> {{ buyTitle }}</a>
<!--<a class="btn btn-success btn-lg w-100 btn-buy" href="{{ settings.lemonsqueezy }}" target="_blank"><i class="{{ buyBtnIcon }} me-2"></i> {{ buyTitle }}</a>-->
{% else %}
<a class="btn btn-success btn-lg w-100 btn-buy" href="{{ buyLink }}"><i class="{{ buyBtnIcon }} me-2"></i> {{ buyTitle }}</a>
{% endif %}
</div>

{% if isFree == false %}
<div class="row align-items-center mb-3 text-muted fs-sm">
<div class="col-auto">
{{ site.data[page.lang].translation.store-payment-methods }}
</div>
<div class="row align-items-center mb-3 text-muted fs-sm">
<div class="col-auto">
{{ site.data[page.lang].translation.store-payment-methods }}
</div>
<div class="col-auto ms-auto fs-lg">
<i class="bx bxl-paypal"></i>
<i class="bx bxl-google"></i>
<i class="bx bxl-apple"></i>
<i class="bx bxl-visa"></i>
<i class="bx bxl-mastercard"></i>
</div>
<div class="col-auto ms-auto fs-lg">
<i class="bx bxl-paypal"></i>
<i class="bx bxl-google"></i>
<i class="bx bxl-apple"></i>
<i class="bx bxl-visa"></i>
<i class="bx bxl-mastercard"></i>
</div>
</div>
{% endif %}

{% if is_ppp %}
<div class="row align-items-center text-muted fs-sm">
<div class="col-auto ms-auto">
<a href="{% link _landingpage/en/discount-codes.md %}" class="text-decoration-none text-muted">
* {{ site.data[page.lang].translation.purchase-power-parity }}
</a>
</div>
{% if is_ppp %}
<div class="row align-items-center text-muted fs-sm">
<div class="col-auto ms-auto">
<a href="{% link _landingpage/en/discount-codes.md %}" class="text-decoration-none text-muted">
* {{ site.data[page.lang].translation.purchase-power-parity }}
</a>
</div>
{% endif %}

{% else %}
<a class="btn btn-primary btn-lg shadow-primary btn-buy" href="{{ buyLink }}"><i class="{{ buyBtnIcon }} me-2"></i> {{ buyTitle }}</a>
</div>
{% endif %}

</div>
</div>
</div>
Expand Down

0 comments on commit 47c5126

Please sign in to comment.