You are here:  » Need some help with external items

Support Forum



Need some help with external items

Submitted by hutchinsonm on Sat, 2011-01-29 01:14 in

David,

I currently have my site setup but it is not using PT. I would like to start to move everything over to PT but I am not sure all the pieces I would need to do that. Would you mind providing me some idea as to what I might need to get this done?

Here is a page from my site that you can take a look at and you will see all the items that I am looking to incorporate into a page.

{link saved}

Thanks

Matt

Submitted by support on Sat, 2011-01-29 09:46

Hi Matt,

I see that your current site has price, category and merchant filters in the sidebar, and just yesterday I posted to code to add this to a Price Tapestry site. You can download the file SidebarFilters.zip from the download extras. The .zip contains a replacement search.php and html/searchresults.php that will result in a look very close to what you have now.

In terms of the categorisation; when your site is running Price Tapestry with clean URLs enabled ($config_useRewrite = TRUE at line 8 in your config.php and .htaccess in place) the equivalent page for your Babies and Kids page would be:

http://www.example.com/category/Babies-and-Kids/

That's assuming a valid category of "Babies and Kids" set-up in your site; and you can of course use Category Mapping to achieve this, by mapping each of your merchant's categories that you want to come under the Babies and Kids category. More details here...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by hutchinsonm on Sat, 2011-01-29 20:24

David,

Thanks so much. Also wanted to ask if this will work for the external.php? Can you please provide me the script to run the external.php or the link to the post? I need the actual code to do it. If you have take a look at my site I am going to be using that design for most of my site.

Thanks

Matt

Submitted by support on Sun, 2011-01-30 09:02

Hi Matt,

The best way to re-create your site that I saw from your link would be as a dedicated Price Tapestry installation - it provides almost exactly what you're looking for with very little modification. To try and shoe horn that into Wordpress running as your main site with the external scripts I don't think would lead to satisfactory results - not least of which you may have just seen in my reply to Al regarding clean URLs, that unfortunately just isn't possible via the external scripts. If you plan to incorporate blog content with your site, don't forget that it is straight forward to take any existing .html "look and feel" and from that make an equivalent html/header.php and html/footer.php for use with Price Tapestry...

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

Cheers,
David.
--
PriceTapestry.com

Submitted by hutchinsonm on Wed, 2011-02-09 03:56

David,

I have gotten the instruction previously from you but I am interested in using Joomla. If you can recommend a better way to do within Joomla, let me know.

Thanks

matt

Submitted by support on Wed, 2011-02-09 10:02

Hi Matt,

As with Wordpress I would always recommend installation alongside rather than attempting a tight integration - after all Price Tapestry is effectively a CMS just as Wordpress / Joomla - so there will always be conflict over control of the URL, meta tags etc.

Having said that, the external scripts are designed for use within any external website on which you can run snippets of PHP, so let's say you have Price Tapestry installed into a sub-directory of your website, and with your theme following the same look and feel as described above, you can still pull search results and specific product price comparison tables into your top level site - full details and downloads in the following thread...

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

Cheers,
David.
--
PriceTapestry.com

Submitted by hutchinsonm on Thu, 2011-02-10 23:25

Hi David,

Thanks for all the help. Another question for you. Is there a way to use the side bar filters with the external scripts?

Thanks

Matt

Submitted by hutchinsonm on Thu, 2011-02-10 23:40

David,

Can I used the searchexternal.php to search in a specific category?

Thanks

Matt

Submitted by hutchinsonm on Thu, 2011-02-10 23:56

David,

Can you please take a look at my site and let me know if what I am asking is possible? Please go to {link saved} then down the left hand side of my site you will see:

Price Range
Categories
Manufacturer
Stores

Is there any way to apply a filter that will automatically populate that information similar to what I have?

Thanks

matt

Submitted by support on Fri, 2011-02-11 09:31

Hi Matt,

Re: sidebar filters in external scripts, yes I can add support for that if you would like to email me your external.php and html/searchresults.php I'll have a go at that for you.

searchexternal.php can be made to search a specific category - in your call code simply use:

$_GET["q"] = "category:Category Name";

Cheers,
David.
--
PriceTapestry.com

Submitted by support on Fri, 2011-02-11 09:33

Hi again,

Regarding the right-hand filters - that is essentially the functionality provided by the sidebar filters mod; but with all filter options being displayed in a list rather than in a drop-down box.

Just to make sure things don't get too confused - do you want to do this for the same html/searchresults.php that you would be sending me regarding filters in external.php from above? Let me know in your email if so and as well as making it work with external.php i'll convert it to the list version also...

Cheers,
David.
--
PriceTapestry.com

Submitted by hutchinsonm on Fri, 2011-02-11 16:08

David,

Thanks so much. I will get the files to right away. Also the "$_GET["q"]" that you provided, does it matter where I put that at within the searchexternal.php?

Thanks

Matt

Submitted by support on Fri, 2011-02-11 16:14

Hi Matt,

It doesn't go within searchExternal.php itself, but rather within the calling code; for example:

<?php
  $common_path 
"/path/to/pricetapestry/";
  
$common_baseHREF "http://www.example.com/pricetapestry/";
  
$_GET["q"] = "category:Category Name";
  require(
$common_path."serachExternal.php");
?>

Cheers,
David.
--
PriceTapestry.com

Submitted by hutchinsonm on Fri, 2011-02-11 16:20

Oh - got it.

Thanks so much.

Matt

Submitted by hutchinsonm on Fri, 2011-02-18 15:32

Hi David,

I got the external.php working and all per your instruction. The formating is a little off but I can take care of that but there is no pagination at the bottom of the page.

Also, the filters you wrote for me to publish the vendors names and such, how do I use that with my external.php?

Thanks

Matt

Submitted by support on Sat, 2011-02-19 10:03

Hi Matt,

Could you recap for me the vendor name modification that you're referring to and I'll check out how to integrate that with external.php for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by hutchinsonm on Sat, 2011-02-19 23:56

Hi David,

Sure - you created a filter for me that instead of a drop down for the merchant, it actually listed the merchant.

You can see an example of your handy work here:

{link saved}

But if you go to here, its not there;

{link saved}

Thanks

Matt

Submitted by support on Sun, 2011-02-20 08:46

Thanks Matt,

Could you email me your external.php and html/searchresults.php and also the calling code that you are using on flowers_and_plants2.php and I'll check it out for you...

Cheers,
David.
--
PriceTapestry.com