• I use php code to display omnibus massage (do_action( ‘iworks_omnibus_wc_lowest_price_message’). It throws an error on 3.0 when product has changed price in last 30 days but it’s not on promotion/sale.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Marcin Pietrzak

    (@iworks)

    hi @net_runner

    Could you paste whole error/warning message?

    Thank you in advance.

    Marcin

    Thread Starter net_runner

    (@net_runner)

    That’s all:
    “Error: Unsupported operand types: string * float”

    Plugin Author Marcin Pietrzak

    (@iworks)

    I use php code to display omnibus massage (do_action( ‘iworks_omnibus_wc_lowest_price_message’). It throws an error on 3.0 when product has changed price in last 30 days but it’s not on promotion/sale.

    @net_runner

    Ok, next question: could you paste your code? I can’t reproduce it.

    Marcin

    Thread Starter net_runner

    (@net_runner)

    <div class="brxe-pqqhcg brxe-div">Error: Unsupported operand types: string * float</div>

    If i change the price to display without tax it doesn’t show the error anymore, but shows the wrong price:

    <p class="iworks-omnibus" data-iwo-version="3.0.0" data-iwo-price="2890" data-iwo-timestamp="1707251640" data-iwo-user_id="2" data-iwo-price_regular="2890" data-iwo-price_sale="" data-iwo-from="1705417421" data-iwo-diff-in-days="15" data-iwo-human_timestamp="2024-02-06T20:34:00+00:00" data-iwo-days="30" data-iwo-human_from="2024-01-16T15:03:41+00:00" data-iwo-product_id="1710">Previous lowest price (from 30 days): <span class="woocommerce-Price-amount amount"><bdi>0,00&nbsp;<span class="woocommerce-Price-currencySymbol">€</span></bdi></span>.</p>

    There is not problem on the product page itself, but it appears on listing, when injected via:

    <?php
    do_action( 'iworks_omnibus_wc_lowest_price_message' );
    ?>

    The product page:

    Plugin Author Marcin Pietrzak

    (@iworks)

    Hi @net_runner

    I try to reproduce, but I can’t.

    Maybe 3.0.1 fixes it. Could you update & re-check?

    Thank you in advance.

    Marcin

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Product without promo price error: Unsupported operand types’ is closed to new replies.