| 开发者 | motylanogha |
|---|---|
| 更新时间 | 2026年10月23日 22:48 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[elektilo] shortcode. Shoppers answer a short series of single-choice questions and are shown one recommended product, with its image, price and a button straight to the product page. A simple product also gets WooCommerce's own add-to-cart button on the card.
Elektilo is developed in the open. The code, and a place to report bugs or request features, live at github.com/wppoland/plogins-finder.
You define the questions and options, then map every answer combination to a product. A "Generate combinations" button builds the map for you from your steps, so you only pick a product for each path. Set a step to "Any" in a row and that one row covers every answer to it, so a quiz where only some answers matter needs far fewer rows.
Documentation and links
elektilo text domain, and a elektilo.pot template ships in /languages. Deleting the plugin removes its options.
How it works
The quiz is rendered server-side (so it can be cached with the page) and advanced entirely client-side, no round-trip between steps. Only the final recommendation is fetched, from a same-origin REST request to your own site, and rendered fresh so price and stock are current. The CSS and JavaScript are enqueued only on pages that contain the [elektilo] shortcode.
/wp-content/plugins/elektilo, or install via Plugins > Add New.[elektilo] shortcode.Yes. Elektilo requires an active WooCommerce installation.
No. The plugin's own front-end script is vanilla JavaScript with no jQuery dependency.
Anywhere the [elektilo] shortcode can go, a page, a post, or a page-builder Raw HTML / shortcode block.
As many steps as you like, each with as many single-choice options as you like. Two or three short steps convert best.
The shopper sees one recommended product, its image, optional price, an optional headline and description, and a button to the product page. For a simple product in stock there is also an add-to-cart button, which adds it without leaving the page where WooCommerce AJAX add-to-cart is enabled; variable products keep only the link, as the variation is chosen on the product page. If no combination matches, or the mapped product is unavailable, your fallback product is shown.
Yes. The recommendation is fetched live over REST on each request and is never cached, so price and stock reflect your store at that moment.
Yes. Network activate it or activate it on individual sites; each site keeps its own settings.
[elektilo]. It used to be [finder], a tag generic enough that any other plugin could claim it first. This is the last release in which it could change without breaking existing pages, because the plugin has not been published yet.