[SOLVED] Sale price dosent work

Home – SaaS Forums Support questions WooPrice Calculator (Pro) [SOLVED] Sale price dosent work

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7222
    john morten
    Participant

    When adding sale price to a product the “base price” in the calculator gets the regualar price. is this a bug?

    #7223
    john morten
    Participant

    I changed the public function code in the ecommercehelper.php and this looks to work.
    Now it works on sale price , and also on variable products.:)

    from

    public function getProductArrayFromWooCommerce($product){
    return array(
    ‘id’ => $product->get_id(),
    ‘name’ => $product->get_title(),
    ‘price’ => $product->get_regular_price(),
    );
    }

    too

    public function getProductArrayFromWooCommerce($product){
    return array(
    ‘id’ => $product->get_id(),
    ‘name’ => $product->get_title(),
    ‘price’ => $product->get_price(),
    );
    }

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