Skip to content
Let's talk about your project
Make your own Pokè

Make your own Pokè

CHF 199

Create the “Create your poké” page: the customer selects the size, then the ingredients from the Product Add-ons group; the first ingredients are included in the price, the others are paid separately. Price calculated on the server, added to the cart without reloading the page. Shortcode [make_your_own_poke] or Elementor widget.

SKU: make-your-own-poke Category:

Description

Make your own Pokè allows your customers to compose their own dish directly on the site: they choose the size, then the ingredients; the first ones are included in the price, the others are paid separately. The total updates instantly and the dish goes to the cart without reloading the page.

What it does

  • Size selection: the products of a shop category (e.g. Poké Kids, M, L, XL) displayed as touchable cards.
  • Ingredients: the WooCommerce Product Add‑ons groups assigned to the category (Base, Proteins, Toppings, Sauces, etc…).
  • Double portions: in the groups you choose (by default Proteins) the customer can take the same ingredient twice with «− 1 +» (e.g. salmon ×2); the extra portion counts as an ingredient and appears on the receipt as «Salmon – 2nd portion»
  • Options «Without …»: “Without protein”, “Without topping” and similar are free and, if selected, turn off the other ingredients of the group.
  • Included in the price: the first ingredients of each group are free, the others are paid; the number is read from the group description or set in Settings.
  • Mandatory choices and limits: minimum and maximum per group, as you set them in Product Add‑ons.
  • Live price and server price: the browser shows the total, the server recalculates it in the cart.
  • Cart and order: the chosen ingredients remain in the cart and appear in the order.

Where to set

  • Shortcode [make_your_own_poke] on a page, or the «Create your poké» Elementor widget.
  • Settings → Make your own Pokè: configurator categories and included ingredients per group.

Requires WooCommerce and WooCommerce Product Add‑ons.

Versions

Changelog

Perpetual license: you pay once only, no annual fee.

  • WordPress 6.5 or later
  • PHP 7.4 or newer
  1. 1.3.1Latest version
    Fixed
    • Options “Without …” (“Without protein”, “Without topping”…): now they are free (previously they showed and charged the extra price, e.g. + 4.00 CHF), they do not occupy an included slot and, if selected, turn off the other ingredients of the group; choosing a real ingredient “Without …” removes it. In the cart a “Without …” line that arrived together with other ingredients is discarded. Recognized by the name (senza, nessuno, niente, no, without, ohne, kein, sans, aucun), filter brtw_is_none_option.
    • The price of the group's extra is taken from the first true option, not from «Without …».
  2. 1.3.0
    Added
    • Double portions: in the set groups (by default «Proteins», up to 2 portions) next to the chosen ingredient appears «− 1 +». The extra portion counts as an ingredient: it is included in the inclusives or paid as an extra with the same rule. In the cart, in the order and on the receipt it is its own line, «Proteins: Salmon – 2nd portion». Request from Little Inka customers («I can’t add extra salmon»).
    • Settings → Make your own Pokè: column «Portions per ingredient» per group (1 = only once, maximum 5); filter brtw_max_portions.
    Fixed
    • Order of choices in the cart: «salmon» no longer gets confused with «salmon-spicy» (it matched the first ingredient whose name started with the same text).
  3. 1.2.0
    Added
    • Shortcode [make_your_own_poke categoria="crea-la-tua-poke" per_pagina="4" orderby="price" ordine="ASC"]: the configurator works with any theme, without Elementor. The markup is located in brtw_render_configurator($args) (src/configurator.php), also used by the widget.
    • Settings Page → «Make your own Pokè»: choice for category name «size» and table of ingredient groups with the number of inclusions read from the description, the extra price and the «Force to» column for exceptions (e.g. TOPPING = 1, as the production code did). Option brtw_settings (categorie, inclusi).
    • Functions for theme and plugin: brtw_included_count($gruppo, $prodotto) (second number of the description, exceptions from the option, filter brtw_included_count), brtw_configurator_categories() (filter brtw_configurator_categories), brtw_product_addon_groups($prodotto), brtw_included_label(), brtw_render_configurator().
    • Changing the size no longer reloads the page: the render prints the add‑on groups for each size (a block data-product per product) and the script shows the selected one; choices already made switch to the new size when the ingredient exists.
    • Add to cart with the standard WooCommerce endpoint wc-ajax=add_to_cart and the fields addon-<prodotto>-<gruppo> of Product Add‑ons: updated cart fragments, «Added to cart» notice with link, or redirect if WooCommerce is set that way. Without JavaScript the form is submitted to the product’s permalink.
    • Dashboard notice if WooCommerce or Product Add‑ons are missing; header Requires Plugins: woocommerce, woocommerce-product-addons.
    Changed
    • Server‑side price rebuilt (src/helper.php): recognizes the configurator products from the configured categories (no longer from the WPML slugs written in the code); compares the groups with the field_name that Product Add-ons saves in the cart (<id prodotto>-<id gruppo>) , not by position; discounts the first N ingredients of each group in the order the customer selected them (also with price «per quantity»); recalculates the price from zero at each step, so it does not accumulate; does nothing if the cart has no configurator products.
    • The module sends the ingredients in the order of selection and the plugin reorders cart_item['addons'] accordingly (woocommerce_add_cart_item_data).
    • The Elementor widget loads only if Elementor is active (did_action('elementor/loaded')) , calls brtw_render_configurator() and adjusts the colors with the variables --brtw-*; corrected order_by → orderby e ase → ASC; texts in Italian.
    • JavaScript rewritten without jQuery and without console.log: total displayed on screen with the same rule as the server (included for free, then extra), counter «N of 2 included», minimum and maximum limits of the group, mandatory Base validation before sending.
    • Neutral and lightweight CSS: structure, states and variables --brtw-* with defaults that the theme overrides; removed the set colours (#26a9ac, #CB6672…) and the fixed total box; on mobile the summary is sticky at the bottom.
    • CSS and JS are enqueued only where there's the shortcode, the widget or the render function, with BRTW_VERSION (never time()).
    Removed
    • Endpoint admin-ajax wc_brtw_product_addons_cart (returned only the cart URL), brtw_print, printbr, ?print-dev, extract() e i print_r in the render.
    • Files never included: src/woocommerce/class-brtw-product-addons-cart.php, the duplicate src/elementor/class.brtw.elementor.php, the folder templates/addons/.
    Security
    • All configurator output is escaped; the shortcode and settings input is sanitized; the settings page uses Settings API with capability manage_options.
  4. 1.1.2
    Fixed
    • «"Base" is a required field» when adding the poke to the cart. Product Add-ons 8.4 calls the fields addon-<prodotto>-<numero> (e.g. addon-1912186493-0) and no longer addon-<prodotto>-<nome>-<numero>: the configurator sent the choices with the old name, Product Add-ons didn’t see them and rejected the Base. Now the widget takes the field names directly from Product Add-ons (matched by group name), with the old name only as a fallback.
  5. 1.1.1
    Added
    • Standard updater ticinoWEB (includes/tw-release-updater.php + Update URI): the plugin now updates from Dashboard → Updates from the release repo, without uploading zip manually.
    • installation as mu-plugin), so sites receive the new versions from Dashboard → Updates.assets/icon-128x128.png, icon-256x256.png, icon.svg), so the gray pin no longer appears in updates.
    • Tab «Version Details» (docs/release-details/) with description, FAQ and banner.
    Changed
    • Description: rewritten in Italian for non‑technical clients; added Requires PHP.
    • No change to the configurator's behavior.
ticinoWEB Assistant Online