You are here:  » inserting onto a page

Support Forum



inserting onto a page

Submitted by paullas on Tue, 2008-10-14 10:33 in

hi

i am wondering if anyone can help me or let me know how i can put the PT onto an existing page on my website.

thanks

paul

Submitted by support on Tue, 2008-10-14 10:34

Hi Paul,

I posted some information and scripts to help do this recently; have a look at:

http://www.pricetapestry.com/node/2289

Cheers,
David.

Submitted by paullas on Tue, 2008-10-14 12:19

hi

thanks, i am trying to add it also so i can put products from merchants on there own pages.

for example if you look at
http://www.directdiscount.co.uk/retailers/prezzybox/

i would like to display all products from prezzybox on that page showing the first 20 then have a more button to display more? is this possible, also showing thumbnails on the left of the products.

thanks
paul

Submitted by support on Tue, 2008-10-14 12:23

Hi Paul,

You would be able to do exactly that using the searchExternal.php script as described in the other thread. You can do this using the query "merchant:prezzybox", as follows:

<?php
  $common_baseHREF 
"http://www.example.com/pricetapestry/";
  
$common_path "/path/to/pricetapestry/";
  
$_GET["q"] = "merchant:prezzybox";
  require(
$common_path."searchExternal.php");
?>

(see the instructions in the other thread for working out $common_path if you're not sure what that should be on your server).

Then, the link to display more can simply link to page 2 of the search results, using code like this:

<a href='http://www.example.com/pricetapestry/search.php?q=merchant:prezzybox&page=2'>More Products...</a>

Hope this helps!

Cheers,
David.

Submitted by paullas on Tue, 2008-10-14 12:57

ok it now displays the products http://www.directdiscount.co.uk/retailers/prezzybox/ but when you click more information it isnt displaying them on the page ? and i loosing the plot here :) sorry

Submitted by support on Tue, 2008-10-14 13:01

Hi Paul,

Getting close....!

It just looks like $common_baseHREF is wrong - it needs to point to the Price Tapestry installation, not the page where you have added the code:

$common_baseHREF = "http://www.example.com/pricetapestry/";

That should be all it is. If you're still not sure - if you could email me the page you have added the code to; and the URL of your Price Tapestry installation i'll check it out for you...

Cheers,
David.

Submitted by paullas on Tue, 2008-10-14 14:01

what email address do i send it to david as i have it as suggested above

Submitted by support on Tue, 2008-10-14 14:03

Hi Paul,

Use the address on this page....

Cheers,
David.

Submitted by paullas on Tue, 2008-10-14 15:45

email sent with thanks