You are here:  » custom individual content

Support Forum



custom individual content

Submitted by paullas on Thu, 2008-09-11 14:44 in

hi

sorry for all questions but i find this script outstanding as a domain developer.

Is there a way to add more custom content to individual products.

example: if you look at

http://www.directdiscount.co.uk/product/Pyramat-Game-Bag-21.html

is there a way i can add ore text or information just to that page

and the same here

http://www.directdiscount.co.uk/product/NCsoft-Game-Time-Card-30-Days-2-x-15-Days.html

is there a way to add custom info to this page.

thanks again

paul

Submitted by support on Fri, 2008-09-12 08:39

Hi Paul,

There's a very easy way to do this that several users have implemented across various different parts of the site - for example to show merchant coupons, extra descriptions etc.

All you need to do, is create a folder in your main Price Tapestry folder, called something like "custom". In that folder, create HTML files containing the content you want to add to your product pages, with a filename that EXACTLY matches the the product name - with .html on the end - for example:

/custom/Pyramat Game Bag 21.html

Then, in products.php, you can simply add the following code at the point at which you want to pull in your custom content:

$filename = "custom/".$q.".html";
if (file_exists($filename))
{
  require($filename);
}

If, for example, you wanted to insert your custom content after the main product info but before the price comparison table, insert the above code ABOVE the following line:

if (isset($prices)) require("html/prices.php");

Cheers,
David.

Submitted by paullas on Fri, 2008-09-12 12:41

bloody brilliant, thanks david your a star...