You are here:  » does not compare anything

Support Forum



does not compare anything

Submitted by tammy on Sat, 2009-03-21 21:18 in

Is there any way to get more similar products to compare??
I have seen somebody have posted similar question but I have not got a solution for myself
David, I hope you can help me with this. I can add a field or two in db myself, but I have a trouble going through each php files that need to be changed without messing the whole script up. Could you possibly email me the files that I need for this? Other than that, I'm ready to launch my site. (It just need to compare something!) :D

Thanks in advance

Submitted by support on Mon, 2009-03-23 11:29

Hello Tammy,

First and foremost; have you been using Product Mapping to tie together identical products from different merchant where they both use different product names?

Several users have found the helper.php script in the following thread useful for finding duplicate products with different names...

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

With regards to adding more fields, this can help in the case of an SKU field if the majority of your feeds have SKU data (but this is rare) - in which can you can use the instructions in the following thread to add the new field:

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

...and then the instructions in the following thread to actually make the comparison use the SKU field in addition to (and preference to) product name:

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

Of course, if you have any problems with any implementation feel free to email me any files you have modified and i'll take a look for you!

Cheers,
David.

Submitted by tammy on Wed, 2009-03-25 17:04

David,
how do you do that with 100,000+ of products?

Submitted by support on Wed, 2009-03-25 17:12

Hi Tammy,

It's not practical on huge sites i'm afraid.

Do a sufficient number of your feeds have product ID / SKU data available in order for you to tie up products that way?

Cheers,
David.

Submitted by tammy on Thu, 2009-03-26 00:03

No, not all,nor most of them, but there's some. Especially those I want to compare the Most.

btw, if I want a certain text show at the particular category, what would be the php code? I would like to put the code in my footer.
Thank you.

Submitted by support on Thu, 2009-03-26 08:37

Hi Tammy,

You can add the following PHP into html/footer.php to add specific text for certain categories:

<?php
if ($parts[0]=="category")
{
  switch(
$parts[1])
  {
    case 
"Some Category":
      print 
"<p>Enter text to display for Some Category here!</p>";
      break;
    case 
"Some Other Category":
      print 
"<p>Enter text to display for Some Other Category here!</p>";
      break;
  }
}
?>

etc. you can keep adding case sections (case / print / break) for as many categories as you like! the same technique can be used for merchants or brands - instead of

if ($parts[0]=="category")

...just use:

if ($parts[0]=="merchant")

or
if ($parts[0]=="brand")

Regarding the product comparison by SKU; do you want to have a look at adding that mod? If you do, check out the links in my previous reply and then let me know if you need any help with the changes - feel free to email me any files you need assistance with...

Cheers,
David.

Submitted by tammy on Sun, 2009-03-29 16:43

Thank you David
Sorry I wasn't cleaar. How do I do this with 20 categories? :)

Thanks in advance

Submitted by support on Sun, 2009-03-29 17:53

Hi Tammy,

You can add as many categories as you want to the switch statement, just add copies of these lines:

    case "Some Other Category":
      print "<p>Enter text to display for Some Other Category here!</p>";
      break;

(but sorry if I mis-understand too!)

Cheers,
David.