You are here:  » Moving pricing table next to picture in WP


Moving pricing table next to picture in WP

Submitted by jamie on Thu, 2017-01-05 15:02 in

Hi David,

Sorry for all the questions, I am migrating my PT site over to a wordpress based installation and am just having a few teething issues. I really appreciate the fantastic support you provide.

My last question!

In the HTML version of PT it was easy for me to go to products.php code and move the pricing table next to the picture, and put the product description below.

How can I achieve this in the WP code?

It doesnt look like this can be done in the settings within WP but instead needs to be changed within code, but it is less obvious exactly where to change this compared to the HMTL version.

If you could point me in the right direction I would be hugely grateful.

Cheers,
Jamie

Submitted by support on Thu, 2017-01-05 15:13

Hi Jamie,

In the plugin file pto_product.php, look for the following code beginning at line 507:

  if ($numRows && $prices)
  {
    $html .= pto_product_prices();
  }

...and REPLACE with:

  if ($numRows && $prices)
  {
    $html = str_replace("%PRICESTABLE%",pto_product_prices(),$html);
  }
  else
  {
    $html = str_replace("%PRICESTABLE%","",$html);
  }

Then, edit your Product / Main template (wp-admin > Settings > PriceTapestry.org) and insert the placeholder %PRICESTABLE% where you want the price comparison table to be rendered...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com