• Is it possible to localize (i18n) with the _n() method to manage singular or plural forms in the [alg_wc_product_ppq_table] shortcodes?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @micabal,

    Thanks for reaching out.

    I have escalated this with our development team. They will back to you as soon as possible.

    Kind regards.

    Plugin Author Algoritmika

    (@algoritmika)

    Hi @micabal,

    Sorry for the late reply.

    Please update the plugin to the latest v3.3.3 – now you can do it with a small PHP snippet:

    add_filter( 'alg_wc_product_wholesale_pricing_table_heading_format', function ( $heading_format, $next_price_level_num, $product_id, $price_level ) {
        return _n( 'from %level_min_qty% piece', 'from %level_min_qty% pieces', $price_level['quantity'] );
    }, 10, 4 );

    P.S. I’ve also added a new attribute to the [alg_wc_product_ppq_table] shortcode – heading_format_singular:

    [alg_wc_product_ppq_table heading_format="from %level_min_qty% pieces" heading_format_singular="from %level_min_qty% piece"]

    I hope this helps. Please let me know if you have any questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘i18n with alg_wc_product_ppq_table ?’ is closed to new replies.