• Hi, with reference to the recent updated version, how can I calculate and display the total price based on quantity input on the product page? For example when the user inputs 100 qty, I would like to display the total amount based on the price rules for qty 100 for the selected variation.

    Or otherwise can you tell me where the variation tier pricing rules are stored? Like which php file, so that I can use the variable/array in my childtheme’s function.php

    Thanks.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Soft79

    (@josk79)

    $rules = SOFT79_WCPR()->controller->get_valid_rules_for( $product );

    gets the available rules for the product. Will be an array. For each you can:

    $bulk_rules = $rule->get_bulk_rules();

    to get the info you need.

    Hey there,

    I am after the same thing as the OP but am unsure how or where I should apply your answer… could you possibly explain further for me 🙂

    • This reply was modified 5 years, 7 months ago by kiaraaliano.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calculate and display variation price on Single Product page’ is closed to new replies.