Forum
Shop price is 0.00
Hi All
Im trying to set the message TBC when a price is 0.00 or not set
ive tried the below but it says TBC even if a price is set
<perch:if !exists="price">
<span>TBC</span>
<perch:else />
<perch:if exists="on_sale">
<span class="sale-price"><perch:shop id="sale_price" type="shop_currency_value" label="Price" size="m" min="0" step="any" /></span>
<span class="price-was"><perch:shop id="price" type="shop_currency_value" label="Price" size="m" min="0" step="any" /></span>
<perch:else />
<perch:shop id="price" type="shop_currency_value" label="Price" size="m" min="0" step="any" />
</perch:if>
</perch:if>
Hi,
I don't think you can do
!exists
- trynot-exists
instead, so:That still shows the price rather than TBC
What is the value of
price
inperch:showall
?nothing
Try
so now i have
and shows the price at 0.00 still
Have you tried
or
Neither of them work
Still show the price at £0.00
Has it changed from
0.00
to£0.00
?The £ is automatically put their by perch
in the admin area the price field is empty
but displays as £0.00 on the front end
i just need it to be TBC (or other message) so customers dont get confused with it being a free product
Ok, let me test a few things.
Thanks :)
Was there a fix for this
i could always have another checkbox to hide the price
I've not yet had a chance to investigate.
I would be interested in a proper solution for this too. Until then, I'm also using the checkbox workaround.