Skip to content

Commit

Permalink
Make ship price contact configurable in base settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Gott committed Apr 3, 2022
1 parent 0600a64 commit 391fffe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,3 +414,5 @@
},
},
}

PRICE_CONTACT_INFO = env.str("PRICE_CONTACT_INFO", "")
1 change: 1 addition & 0 deletions goosetools/core/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ def setting_vars(request):
"SITE_NAME": settings.SITE_NAME,
"LOGIN_URL": settings.LOGIN_URL,
"tenant": request.tenant,
"PRICE_CONTACT_INFO": settings.PRICE_CONTACT_INFO,
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h6>Follow this GIF:</h6>
<span>You are paying with ISK so you must enter the below price into the "I'll pay" section of the contract.</span>
<blockquote>{{ ship_order.price }}</blockquote>
{% else %}
<span class="red-text">You are paying with ISK however {{ SITE_NAME }} was unable to find a valid price for the ship. Please ping @KrisWolfe#5428 on discord before making the contract.</span>
<span class="red-text">You are paying with ISK however {{ SITE_NAME }} was unable to find a valid price for the ship. {{ PRICE_CONTACT_INFO }}</span>
{% endif %}
{% endif %}
{% if ship_order.blocked_until %}
Expand Down Expand Up @@ -60,7 +60,7 @@ <h6>Follow this GIF:</h6>
price into the "I'll pay" section of the contract.
<blockquote>{{ ship_order.price }}</blockquote>
{% else %}
<span class="red-text">You are paying with ISK however {{ SITE_NAME }} was unable to find a valid price for the order. Please ping @KrisWolfe#5428 on discord before making the contract.</span>
<span class="red-text">You are paying with ISK however {{ SITE_NAME }} was unable to find a valid price for the order. {{ PRICE_CONTACT_INFO }}</span>
{% endif %}
</li>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h3>Place An Order</h3>
display += ` <br/> EGGS PRICE: ${numberWithCommas(selected_ship_data.eggs_price)}`
}
} else if (paid_method) {
display += ` <h5 class='orange-text'>WARNING</h5> <br/> Unable to lookup a valid price for this ship from Wal Marx. Please ping @KrisWolfe#5428 to get a price on discord first.
display += ` <h5 class='orange-text'>WARNING</h5> <br/> Unable to lookup a valid price for this ship from Wal Marx. {{ PRICE_CONTACT_INFO }}
If you place this order now without a valid price the industry team will manually price your ship later on.`
}
if (current_payment === "srp") {
Expand Down

0 comments on commit 391fffe

Please sign in to comment.