You are here:  » product feature comparison php or plugin recommendation?


product feature comparison php or plugin recommendation?

Submitted by denz on Wed, 2013-01-30 00:13 in

Hi David and Hi forum : )

may anybody have a recommendation for a php class or plugin to compare and filter products by there features?

I don't want to use a static table. the user should select for example: LED TV and filter the results by attributes like size, warranty and so on.

Submitted by support on Wed, 2013-01-30 08:37

Hi Denz,

I don't know of anything specific i'm afraid, but don't forget that it's straight forward to add custom fields to your Price Tapestry database, which can then be displayed on the product page / price comparison table as required...

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

Cheers,
David.
--
PriceTapestry.com

Submitted by Bakalinge on Wed, 2013-01-30 10:56

Hi Denz,

I used jQuery Tablesorter to do that : http://tablesorter.com/
Works great with PT and pretty easy to use

Cheers

Bak

Submitted by support on Wed, 2013-01-30 11:00

Thanks, Bak!

Cheers,
David.
--
PriceTapestry.com

Submitted by denz on Thu, 2013-01-31 16:16

thank you for the suggestion, but I look forward to filter the results not such sort them.

david, do you offer also custom coding?

Submitted by support on Fri, 2013-02-01 10:23

Hello denz,

If it would be practical for you to manage the custom fields manually, the new fields could be added as custom fields in the usual way and then Product Mapping extended by adding override fields for your custom fields as described in this thread. With that in place (let me know if you're not sure of any of the changes of course), simple filtering on your custom fields on the product page would be straight forward.

I'm afraid I don't have any availability for custom development at this time but if that situation changes in the near future I will certainly let you know...

All the best,
David.
--
PriceTapestry.com

Submitted by stonecold111 on Thu, 2013-08-15 05:20

Hi,

I downloaded tabelsorter and followed this guide jQuery Tablesorter pathway problem. But I can't get it to work on the search result page. Here's what I changed in the before,each fields:

Before:

<div class='pto_search'>
<table id="YourTableName">
<thead>
<tr>
<th>Cover</th>
<th>Title</th>
<th>Price</th>
</tr>
</thead><code>
Each
<code><tbody>
<tr>
<td>
%IF_IMAGE%<img class='pto_search_image' src='%IMAGE_URL%' />%ENDIF_IMAGE%
</td>
<td>
<p class='pto_search_name'><a href='%PRODUCT_URL%'>%PRODUCT_NAME%</a></p>
%IF_DESCRIPTION%<p class='pto_search_description'>%DESCRIPTION%</p>%ENDIF_DESCRIPTION%
</td>
<td class='pto_search_price'>
%IF_COMPARED%
  from</em> %PRICE%
  <br />
  <a href='%PRODUCT_URL%'>Compare Prices</a>
%ELSE_COMPARED%
  %PRICE%
  <br />
  <a href='%PRODUCT_URL%'>More Information</a>
%ENDIF_COMPARED%
</td>
</tr>

After
</tbody></table></div>

I can only make the Cover,Title,Price show up, but the awesome functions of the plugin are nowhere to be seen.

Do I need to install other things to get jQuerysorter to work?

Submitted by stonecold111 on Thu, 2013-08-15 05:28

I've used a wordpress plugin called "Easy Table", can I use that instead if tablesorter doesn't work out?

Submitted by support on Thu, 2013-08-15 08:29

Hi,

I may be because your pages are not yet including jquery-latest.js and jquery.tablesorter.js - easiest way to check if you're not sure is to view a page on your site and then use your browser's View > Source menu to view the page HTML. On the View Source page, search the text (CTRL+F) for "jquery" and check for the includes.

If not, they will need to be added to your theme's header before any plugins that require JQuery will work. Obtain the correct versions of the files for the plugin that you are using and upload to a convenient place on your server - for example in a new folder called "js", and then edit your theme's header which you should be able to either directly via the files in wp-content/themes/yourtheme/ where you may find a file called header.php - there's no standard way of doing it - or if made available your theme might have a field on its configuration page where you can add headers... and include:

<script type='text/JavaScript' src='/js/jquery-latest.min.js'></script>
<script type='text/JavaScript' src='/js/jquery.tablesorter.js'></script>

...that might be all it is...but check the plugin documentation first as it may already include steps to include the required .js and may just need enabling perhaps...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by stonecold111 on Thu, 2013-08-15 10:03

It isn't working even though the theme already has a js folder, but nevermind because it seemed to drag down the loading speed when I added the codes to the header. Can I use "Easy Table" with your plugin instead?

Submitted by support on Thu, 2013-08-15 10:08

Hi,

EasyTable works by letting you create tables by inserting simple CSV data in post body's so I don't think that would work I'm afraid; but i've done something very recently so let me check this out on my test server and i'll follow up by email for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by stonecold111 on Thu, 2013-08-15 12:25

Ok, thank you!

Submitted by stonecold111 on Thu, 2013-08-15 18:39

I finally managed to install table-sorter!

It has another plugin for pagination called tablesorter.pager I went a step further and tried to install it, but no luck. Do you think this kind of plugin could be implemented with Price Tapestry?

Submitted by support on Fri, 2013-08-16 09:07

Hi,

Sounds good! Pagination is actually quite tightly built-in to the script so I would recommend trying to replace the default system but bear in mind that you have full control over the "look and feel" of the standard pagination via the Search / Navigation template (/wp-admin/ > Settings > PriceTapestry.org) and its corresponding styling via the class definition pto_search_navigation in wp-content/plugins/pto/resources/pto.php.

Cheers,
David.
--
PriceTapestry.com