Skip to content

Fix gender filtering for shoes #2

@MinuraSilva

Description

@MinuraSilva

Currently cannot filter by gender correctly since adidas.ca is not consistent in specifying gender on the item page for shoes. This may lead to a scraped item not having a specified gender which makes it impossible to sort this item by gender.

Since I added both original gender size and opposite gender size to the same field (availability_page.available_sizes), it is also not possible to sort by gender by searching for the gender tag.

The best way to fix this problem is to determine which gender a shoe is by comparing shoe size to the sku (this is more complicate than expected because there are sometimes children's sizes (starting with K; e.g. K12) in the same shoe that is available for adults. Then add the size with gender prefix (e.g. W6, M9) to a field called "availability_page.available_sizes". Then convert these sizes to the opposite gender and add to a field called "availability_page.alternate_available_sizes".

Be sure to make the gender determiner robust to things like children's shoes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions