PDA

View Full Version : Few questions about shopwindow and API


sourchocolate
19-11-08, 15:25
hello,

I have a few questions about results returned by API:

- "sort by relevancy" and "sort by popularity" - what are the definitions of these options?

- how can I increase number of categories/merchants shown in "refine by filters" (more than 10)

- I have my own categories and want to map AW categories to my ones (for example AW "Books-Audio Books", "Books-Books", "Books-Magazine Subscriptions" would be just "Books").
-> How would I display then all items from "Books-Audio Books", "Books-Books", "Books-Magazine Subscriptions" categories in one query?
-> How can I change refine by filters to show my categories?

Any help would be appreciated.
thanks

Andy
19-11-08, 16:08
sort by relevancy: does exactly what it says on the tin. Think of google, but with less employees and investment. Its pretty good though, alot better than it was in V1
sort by popularity: different tin. All sales are logged obviously, those that sell are ranked by popularity. The more they sell, the more popular they are. Either that or it's just a list of products with higher profit margins for merchants. It depends on who controls the list.

I have my own categories and want to map AW categories to my ones

You can change the category names in the array around line 53 in constants.inc.php.
To be honest, it'd probably be easier to change your own category structure than to mess too much with the SW one.

Thats all I can help you with, but I hope ti gets you started.

sourchocolate
19-11-08, 16:16
sort by relevancy: does exactly what it says on the tin. Think of google, but with less employees and investment. Its pretty good though, alot better than it was in V1
sort by popularity: different tin. All sales are logged obviously, those that sell are ranked by popularity. The more they sell, the more popular they are. Either that or it's just a list of products with higher profit margins for merchants. It depends on who controls the list.


So obviously "Product A" from "Merchant A" can be more popular than "Product A" from "Merchant B" but does the same apply to relevancy? Can the same product be more relevant depending which merchant they come from?

Also, can you confirm that one product will be returned twice if offered by two different merchants (assuming both merchants have exactly the same name for one product)? Is there a way of getting results based on products only rather than product-merchant combination (which produces duplicates)?

Also - how can I increase number of categories/merchants shown in "refine by filters" (more than 10)

Thanks!

authcode
19-11-08, 17:23
So obviously "Product A" from "Merchant A" can be more popular than "Product A" from "Merchant B" but does the same apply to relevancy? Can the same product be more relevant depending which merchant they come from?

I would say yes and no. "Product A" would be returned from both merchants but if they have exactly the same relevancy (however that's calculated) then the order they appear in relative to each other would be random I guess. I'm not sure what the tie-breaker would be in a relevancy draw, perhaps date added, or popularity? But I doubt the merchant is a factor unless SW staff take back-handers ;)

Also, can you confirm that one product will be returned twice if offered by two different merchants (assuming both merchants have exactly the same name for one product)?

Yes. This functionality is essential for some sites e.g. price comparison.

Is there a way of getting results based on products only rather than product-merchant combination (which produces duplicates)?

No. You would have to filter the results yourself, or block competing merchants, which could get complicated.

how can I increase number of categories/merchants shown in "refine by filters" (more than 10)

Sorry, don't know the answer to that one. :)

Hope I've been of some help. My answers are obviously guesses based on experience, I'd be happy to be corrected.

GeorgeGaz
19-11-08, 17:49
Hello,

Relevancy will only appear when a search term has been entered.
The more relevant the product title or description is when matched to the search term, the higher it will rank in the results.

Cheers

authcode
19-11-08, 17:53
Hello,

Relevancy will only appear when a search term has been entered.
The more relevant the product title or description is when matched to the search term, the higher it will rank in the results.

Cheers

So if two merchants have identical products (only differing by their product IDs) what would be the deciding factor in ranking one above the other? Or is it random at that point?

GeorgeGaz
19-11-08, 18:12
Hello authcode,

I believe this would then go down to popularity as to who would prevail :)

Cheers