Hi David,
I'm using PT with wordpress and have amended the search box on wordpress to the same as the search box on PT however the results are then shown in the PT shop rather than within wordpress, what do I need to do to make the results come up within wordpress?
Cheers,
Darren
I am using the WP with PT plugin for my new site, Just wondering how can I change WP search box to PT search box?
Hi fstore,
Go to wp-admin > Appearance > Widgets and you can then remove the "Search" widget and replace it with the "PriceTapestry.org Search" widget!
Cheers,
David.
--
PriceTapestry.com
David
WP theme which I am using has search box on top aligned with menu instead of sidebar. See top right hand side ({link saved}).
SO I could not swap the search box in widgets area. I think i may have to update the searchform.php of the theme. which currently has the following code. I tried to update it with PT search code but it didn't work.
what I am looking for is the similar look of the existing box but result should be PT. can you guide please. thanks
Theme Code:
<form method="get" class="searchform" action="<?php echo home_url(); ?>/" onsubmit="this.submit();return false;">
<fieldset>
<input type="text" value="<?php _e('Search','pagelines');?>" name="s" class="searchfield" onfocus="if (this.value == '<?php _e('Search','pagelines');?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Search','pagelines');?>';}" />
<input type="image" class="submit btn" name="submit" src="<?php echo PL_IMAGES;?>/search-btn.png" alt="Go" />
</fieldset>
</form>
PT Search Code:
<div class='pto_search_form'>
<form method='GET' action='%ACTION%'>
<input type='text' size='35' name='pto_q' value='%PTO_Q%' />
<input type='submit' value='Search' />
<br />Search or browse by <a href='%MERCHANTBASEHREF%'>merchant</a>, <a href='%CATEGORYBASEHREF%'>category</a> or <a href='%BRANDBASEHREF%'>brand</a>
</form>
</div>
Hi fstore,
The only reason that wouldn't have worked is because the replacement code contains the placeholders that the PriceTapestry.org plugin uses to replace with the parameters from your configuration.
Assuming that the browse by merchant / category / brand links are not required (i.e. you just want a simple search box) instead of the above replacement, have a go with just;
<div class='pto_search_form'>
<form method='GET' action='/shopping'>
<input type='text' size='35' name='pto_q' />
<input type='submit' value='Search' />
</form>
</div>
The above is assuming that your wp-admin > Settings > PriceTapestry.org setting for the Container Permalink is using the default value of /shopping - if you are using something different simply replace as required...
Cheers,
David.
--
PriceTapestry.com
Thanks,
In my previous site, we enabled the grid view for search results. So i thought I could copy the following files from previous site into my new site (WP &PT -plugin enabled) but it had no effect. am I missing something else?
search.php
html/searchform.php
html/searchresults.php
Also now that i have the WP search box working i also need to remove the PT search box from search result page, please advise how could i do that too.
Many thanks
Hi fstore,
Plugin HTML generation is completely separate from the associated Price Tapestry installation HTML files; it's entirely derived from the wp-admin > Settings > PriceTapestry.org > HTML templates, so this is where changes would be required to create a grid view.
Start by checking out the HTML design forum at PriceTapestry.org, but bear with me and first thing tomorrow I'll work out an equivalent replacement for the search results HTML settings based on searchresultsGrid.php from a standalone Price Tapestry installation...
Cheers,
David.
--
PriceTapestry.com
Thanks David
Plugin HTML @ [wp-admin>Setting>PriceTapestry.org], is it read only? I tried making changes but after clicking save it reverted back to original code. Does it require changing permission on any files?
if i could change the html code and have an option to revert to default would be great.
What I am trying to achieve is;
Remove the PT search box from search page and anyother pages where it appears, because I am using WP searchbox to search products. which will display always on the top next to branding area.
Have a look at my site : {link saved}
WP search box at the top right hand side. it search PT products, and when search results are displayed, that page also contain a search box which is PT search box, this is the one I need to remove.
Regards
Hassan
Hello Hassan,
Make sure that you are using the Save button right at the end of the settings page - below the HTML templates as that is the only submit button that will save those settings - apologies for any inconvenience let me know if that wasn't the issue and I'll investigate further for you...
Cheers,
David.
--
PriceTapestry.com
Hi Darren,
What you need to do is create a container page within your WordPress site containing the external.php calling code on its own; for example:
<?php
$external_baseHREF = "http://www.example.com/comparison/";
$external_path = "/home/path/to/comparison/";
require($external_path."external.php");
?>
...and then simply adjust the action="" attribute of the form tag in your search form to be the URL of the above container page rather than /comparison/search.php.
Cheers,
David.