{"id":16685319,"url":"https://github.com/wadaboa/woo-num-slider","last_synced_at":"2025-07-11T16:15:00.288Z","repository":{"id":87170695,"uuid":"253768143","full_name":"Wadaboa/woo-num-slider","owner":"Wadaboa","description":"A simple widget to filter Woocommerce products by a numeric attribute using a slider","archived":false,"fork":false,"pushed_at":"2021-07-02T20:30:22.000Z","size":225,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T01:37:53.251Z","etag":null,"topics":["attribute","filter","numeric","slider","widget","woocommerce","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Wadaboa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://www.paypal.me/wadaboa"]}},"created_at":"2020-04-07T11:04:13.000Z","updated_at":"2024-12-12T11:33:36.000Z","dependencies_parsed_at":"2023-03-11T23:31:24.343Z","dependency_job_id":null,"html_url":"https://github.com/Wadaboa/woo-num-slider","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Wadaboa/woo-num-slider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wadaboa%2Fwoo-num-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wadaboa%2Fwoo-num-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wadaboa%2Fwoo-num-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wadaboa%2Fwoo-num-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wadaboa","download_url":"https://codeload.github.com/Wadaboa/woo-num-slider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wadaboa%2Fwoo-num-slider/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264851081,"owners_count":23673234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attribute","filter","numeric","slider","widget","woocommerce","wordpress"],"created_at":"2024-10-12T14:46:58.178Z","updated_at":"2025-07-11T16:15:00.267Z","avatar_url":"https://github.com/Wadaboa.png","language":"PHP","funding_links":["https://www.paypal.me/wadaboa"],"categories":[],"sub_categories":[],"readme":"# Woocommerce Numeric Slider\n\nThis repository contains a **Wordpress plugin**, which is a simple widget to filter **Woocommerce** products by a numeric attribute using a slider.\n\n_What does it mean?_\\\nWhen you are working with Woocommerce, you can define some product's _attributes_ and their associated _values_. These values are always stored as _text_, even though they could be _numeric_ types (`int` or `float`). This kind of storage issue makes it difficult to filter products by an attribute, when its values are all numeric. To solve this issue, this plugin provides a simple widget (just like the Woocommerce default ones), which can be used to address this problem.\n\n## Installation\n\n1. [Download the plugin](https://github.com/Wadaboa/woo-num-slider/archive/master.zip) from the provided link or from the _Releases_ page\n2. Upload the plugin to `/wp-content/plugins/` or use the WordPress plugin uploader\n3. Activate the plugin\n\n## Usage\n\nTo use the widget, open your Wordpress admin page, go to **Aspect**, then **Widgets**. Here you have to find the **Woocommerce Numeric Slider** widget and add it to the area of your choice (usually the shop sidebar). Once you added the widget, you will be prompted by this kind of interface:\n\n![Widget Form](img/widget-form.png)\n\nIn here, you have to select the attribute you want to use to filter the products and you can also give a name to the widget, which will appear on top of the slider on your website. Once you saved your edits to the **Woocommerce Numeric Slider** widget, you can visit your website and you should find a filter like the following:\n\n![Widget UI](img/widget-ui.png)\n\n## Features\n\n- It lets you filter Woocommerce products by a numeric attribute, using a `from` - `to` slider\n- It lets you choose the attribute you want to filter with on the widget page (no need to get you hands dirty with code)\n- It uses the same styles as the **Filter Products by Price** Woocommerce widget, so it should be compatible with most available themes (FYI, the slider has been extensively tested with the **ShopIsle** theme)\n- You can include more than one filter on the same page to filter by different attributes\n\n**NOTE**: If you want to filter products using more than one `Woocommerce Numeric Slider`, consider the `Query type` option in the widgets configuration. By setting the option to `OR` for each and every widget, you'll obtain a disjunctive query, while setting the option to `AND` (the default value) will give a conjunctive result.\n\n## References\n\nMy inspiration comes from the following resources:\n\n- [`WooCommerce Attribute Range Filter`](https://github.com/anttiviljami/woocommerce-attribute-range-filter)\n- [`Filter Products by Price`](https://github.com/woocommerce/woocommerce/blob/master/includes/widgets/class-wc-widget-price-filter.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwadaboa%2Fwoo-num-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwadaboa%2Fwoo-num-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwadaboa%2Fwoo-num-slider/lists"}