Good morning David,
I hope you're well. I have a quick question. I'm using shortcodes to display price tables on blog pages. When no retailers have a price no table is displayed. Can you tell me how I can have a message displayed if there are no prices? Thanks.
Allan
Thanks for your help David, tested and working. My code highlighter pointed to a "; missing at the end.
Hello Allan,
Sure - in pto.php look for the following code at line 430:
$html .= pto_product(FALSE,TRUE,FALSE,FALSE);
...and REPLACE with:
$html .= pto_product(FALSE,TRUE,FALSE,FALSE);
if (!$html) $html .= "<p>Sorry, there are no prices to display.</p>";
Cheers,
David.
--
PriceTapestry.com