• Resolved Webfolio Webdesign

    (@webreneszansz)


    Hi,

    I had to rollback the plugon on this page until the previous version of 4.9., because of in case of the 4.9.1., the onsale class was missing at the minority of the sales products, therefore, tha Sales badget was also missing, however the sales prices were correct.

    Please be so kind and fox the issue.

    Thank you very much!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author algol.plus

    (@algolplus)

    hello

    Please submit system report as new ticket to https://algolplus.freshdesk.com/

    use >WooCommerce>Pricing Rules>Tools to get this report.

    thanks, Alex

    Plugin Support thisisirene

    (@thisisirene)

    Good day, @webreneszansz!

    Could you, please, try to insert this code into the functions.php of your theme and if it doesn’t help, then send us our JSON system report to the help desk?

    add_filter( 'woocommerce_variation_prices', function($prices_array, $product, $for_display ){
    global $post;
    if(!is_shop() AND !is_product_category() AND !is_product() AND !is_product_taxonomy() AND
    !(isset($post) && $post->post_type === 'product') )
    return $prices_array;
    $processedProduct = adp_functions()->calculateProduct($product, 1);
    if(! $processedProduct instanceof \ADP\BaseVersion\Includes\PriceDisplay\ProcessedVariableProduct )
    return $prices_array;

    $new_prices_array = array("price"=>[],"regular_price"=>[],"sale_price"=>[]);
    foreach($processedProduct->getChildren() as $variation){
    $idx = $variation->getProduct()->get_id();
    $new_prices_array['price'][$idx] = $variation->getPrice();
    $new_prices_array['sale_price'][$idx] = $variation->getPrice();
    $new_prices_array['regular_price'][$idx] = $variation->getOriginalPrice();
    }
    return $new_prices_array;
    },10,3);
    Plugin Author algol.plus

    (@algolplus)

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.