• Resolved proqd69

    (@proqd69)


    Since 3.20.6 two prices are shown at variable products, after choosing a variable option. Second price is always “0,00”

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Dennis

    (@vdwoocommercesupport)

    Hi,

    could you provide us with a link where the error occurs? I was not able to reproduce the issue.

    Best,
    Dennis

    Thread Starter proqd69

    (@proqd69)

    Hello Dennis.

    Unfortunaltey i am not able to send you a link, as we downgraded to 3.20.5 because of the error.
    Pictures have been attached.

    It is somehow strange:
    The error always accures in the beginning (first choosing of options). At a later time it disappears.
    We did not see that yesterday. But anyway… the problem is always there after get back to the article.

    Plugin Contributor Dennis

    (@vdwoocommercesupport)

    Hi,

    as far as I can see you are not using unit prices for this product? Are there any “orphan” settings regarding unit prices for this particular product (e.g. a unit has been selected)? Could you set up a staging environment for testing purposes? I’d like to dig deeper into this.

    Best,
    Dennis

    Thread Starter proqd69

    (@proqd69)

    Hey Dennis.
    I do have another website to show you the error.
    https://www.lasergaze.de/shop/projektionsmedien/lasergewebe/lasergaze-weiss/
    I updated to 3.20.6
    Right now the site runs with the error.
    Let me know, if i need to downgrade this site again.

    Plugin Contributor Dennis

    (@vdwoocommercesupport)

    Hi,

    thank you! I was able to reproduce the issue and will release a patch update in the next hour. Thanks for reporting!

    Best,
    Dennis

    Thread Starter proqd69

    (@proqd69)

    Hey Dennis.
    Are you able to delete the screenshots i sent?!

    For variable products that differ in price due to a specific attribute, for example, I receive the following warning since 3.20.6:

    PHP Warning: Undefined array key "regular" in /…/wp-content/plugins/woocommerce-germanized/includes/class-wc-gzd-ajax.php on line 385; PHP message: PHP Warning: Undefined array key "sale" in /…/wp-content/plugins/woocommerce-germanized/includes/class-wc-gzd-ajax.php on line 385'

    • This reply was modified 1 month, 2 weeks ago by Dominik.
    Plugin Contributor Dennis

    (@vdwoocommercesupport)

    @proqd69 No, unfortunately not – you’ll need to ask a moderator of the WP forums.

    @elexpress that’s a follow-up issue which will be solved with the 3.20.7 update which is on it’s way.

    Best,
    Dennis

    @vdwoocommercesupport I also had an error with unnecessary slashes for a product without unit prices.

    <p class="wc-gzd-additional-info price price-unit smaller variation_modified variation_gzd_modified" aria-hidden="true" data-o_content="" style="display: block;"> <del></del> <ins></ins> /  </p>

    I temporarily solved this in my functions.php:

    add_filter('woocommerce_gzd_formatted_unit_price', 'my_cleanup_empty_gzd_unit_price_html', 10, 4);
    function my_cleanup_empty_gzd_unit_price_html($html, $price, $unit_base, $unit)
    {
    $plain_price = trim(wp_strip_all_tags((string) $price));

    if ('' === $plain_price) {
    return '';
    }

    return $html;
    }

    Could this also be relevant for the fix? I added it here because it was about price displays/handling of variable products in the identical version, and I thought it fit well in the context :). Thanks for the quick response!

    • This reply was modified 1 month, 2 weeks ago by Dominik.
    Plugin Contributor Dennis

    (@vdwoocommercesupport)

    Hi @elexpress,

    yes, that was part of the bug actually. It is fixed in 3.20.7.

    Best,
    Dennis

Viewing 10 replies - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.