• I am using LearnPress wordpress plugin , i have set price 40$ of course but i want to set difference price while student re-purchase course , would you please tell me that how to do ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi mshpmathura,

    Thank you for reaching out!

    Currently, LearnPress does not have a built-in feature to set a different price for students who re-purchase a course.

    If you have any other questions, please don’t hesitate to ask.

    Best regards,
    Brianvu-tp

    Thread Starter mshpmathura

    (@mshpmathura)

    Is there any solution through hook when user re-purchase then it should display price $40 to $25 ,

    My path which display sale price on this page /lp-checkout/

    Please help us.

    Plugin Support brianvu-tp

    (@briantp)

    Hi mshpmathura,

    Thank you for your response!

    Currently, LearnPress does not have a built-in feature to change the price when a student re-purchases a course. However, you can explore the hook lp/cart/calculate_total, located in the calculate_totals function inside wp-content/plugins/learnpress/inc/cart/class-lp-cart.php . This hook allows you to recalculate the price at the /lp-checkout/ page when a student re-purchases a course.

    Regarding displaying the adjusted price, there are multiple places where the course price is shown across LearnPress, and they are spread out in different files. You may need to find the appropriate hooks in those areas.

    For example, if you want to update the price on the single course page, you can look into the hook learn-press/course/html-price, located in wp-content/plugins/learnpress/inc/TemplateHooks/Course/SingleCourseTemplate.php

    You can customize this in your child theme to ensure the updated price is displayed correctly.

    Hope this helps!

    Best regards,
    Brianvu-tp

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