What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

Bug Fixed 0 USD donation stated

I am surprised that have a donation amount shown.
Did you set a donation percentage but didn't not input a value ?

To only show Contact the member to complete this deal, you would need to edit the thread_view_type_xfa_fss template and replace the whole content by something like that:
Code:
<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>
 
it works!! - many thanks @Clement
.
There is another thing - the dialogue to contact the seller has the shipping amount drop down. It has the text xfa_rmmp_shipping instead of a phrase and I cannot find where to change this?

1770264280484.png
 
OK, I was digging around, and it seems there is an error in the phrases.xml file. I modified this line:

<phrase title="xfa_fss_shipping" version_id="903000090" version_string="3.0.0 RC1"><![CDATA[Shipping]]></phrase>

to read:

<phrase title="xfa_rmmp_shipping" version_id="903000090" version_string="3.0.0 RC1"><![CDATA[Shipping]]></phrase>

to match the placeholder text I was seeing above. Now the label for the shipping row reads correctly as "Shipping"

1770287934155.png
 

From bespoke add-on development to complex integrations and specialized enhancements, we offer a range of XenForo development services designed to help your community thrive.

Start discussing your needs
Back
Top
Cart