<xf:extends template="thread_view" />
<xf:pageaction>
<xf:if is="{$thread.type_data.quantity} == 0">
<span class="button is-disabled">{{ phrase('xfa_fss_sold') }} - {{ phrase('xfa_fss_out_of_stock') }}</span>
<xf:elseif is="{$thread.xfa_fss_status} == 'forsale'" />
<xf:if is="$forum.canBuySale()">
<xf:if is="{$forum.type_config.allow_external_sale} && {$thread.type_data.external_url}">
<xf:button href="{$thread.type_data.external_url}" class="button--cta" icon="purchase">
{{ phrase('xfa_fss_buy_now_for_x', {'price':{$thread.type_data.price}, 'currency': {$thread.type_data.currency|to_upper}}) }}
</xf:button>
<xf:else />
<xf:button href="{{ link('threads/forum-sale-purchase', $thread) }}" overlay="true" class="button--cta" icon="purchase">
Contact the member to complete this deal
</xf:button>
</xf:if>
<xf:else />
<span class="button is-disabled">Contact the member to complete this deal<br />{{ phrase('xfa_fss_dont_have_permission_purchase') }}</span>
</xf:if>
<xf:elseif is="{$thread.xfa_fss_status} == 'expired'" />
<span class="button is-disabled">{{ phrase('xfa_fss_expired') }}</span>
<xf:elseif is="{$thread.xfa_fss_status} == 'onhold'" />
<span class="button is-disabled">
Contact the member to complete this deal
</span>
<xf:else />
<span class="button is-disabled">
Contact the member to complete this deal
</span>
</xf:if>
</xf:pageaction>

From bespoke add-on development to complex integrations and specialized enhancements, we offer a range of