Hi David,
I have merchant that uses membership subscription payment method, instead of price per product and would like to change the wording for this specific merchant, like instead of "Buy Now" to "Monthly Membership Fee"
Below is what i was playing around with but I ust can't get it right.
<th align='center' id='MerchantBG' width="180"><?php if ($product["merchant"]=="MerchantName"): ?>Membership price<?php else ?> Buy Now price<?php endif ?></th>
Thanks in advance.
Rod
Hi Rod,
It looks close; I think you just need the : and ; on the end of else and endif, for example:
<th align='center' id='MerchantBG' width="180"><?php if ($product["merchant"]=="MerchantName"): ?>Membership price<?php else: ?> Buy Now price<?php endif; ?></th>
Alternatively, an "assertion" is a neat structure for this kind of thing, for example:
<th align='center' id='MerchantBG' width="180">
<td>
<?php print ($product["merchant"]=="MerchantName"?"Membership Price":"Buy Now Price"); ?>
<td>
</th>
I think there should be TD tags in there also rather than having text immediately after TR, so i've added those in the above...
Cheers,
David.