You are here:  » Shortcodes with no prices

Support Forum



Shortcodes with no prices

Submitted by allanch on Mon, 2013-12-16 09:04 in

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

Submitted by support on Mon, 2013-12-16 09:28

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

Submitted by allanch on Mon, 2013-12-16 10:10

Thanks for your help David, tested and working. My code highlighter pointed to a "; missing at the end.