+ Reply to Thread
Results 1 to 10 of 27

Thread: CRITICAL PLAN BUG: incorrect calculation and featured status removed if renew regular

Hybrid View

  1. #1
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,201
    Quote Originally Posted by Graham Jupp View Post
    Hi Rudi, thanks for working on this one. Can you describe the outcome of your temp solution and why is would only be considered as such?
    Hello,

    The simplicity of this solution is that the script calculates and saves duration of different packages correctly, see screenshot Screen Shot 2020-10-20 at 3.23.46 PM.png

    but displays it incorrectly due to the additional calculation in rlListings.class.php > getMyListings()

    this code should be improved in the next update so that it wouldn't affect the "Active Till" date

    for now, it's enough to change a piece of code in the .tpl file
    Last edited by Rudi; October 20, 2020 at 09:46 AM.

  2. #2
    Quote Originally Posted by Rudi View Post
    Hello,

    The simplicity of this solution is that the script calculates and saves duration of different packages correctly, see screenshot Attachment 3908

    but displays it incorrectly due to the additional calculation in rlListings.class.php > getMyListings()

    this code should be improved in the next update so that it wouldn't affect the "Active Till" date

    for now, it's enough to change a piece of code in the .tpl file
    So Rudi,

    Please correct me if I was wrong. You're saying that all the calculation is correct, only the display is not?
    So let go back to my test for example:

    Step 6. Apply plan: 3-day
    7 Feb - Incorrect. Should be 9 Feb. ( 6 + 3 = 9 )
    Meaning that after 7 Feb, the listing is still active until 9 Feb?

  3. #3
    Quote Originally Posted by Rudi View Post
    Here is a temporary and simple solution regarding the problem with RENEWING LISTING WITH DIFFERENT DURATION PLAN:

    go to templates > tpl > blocks > my_listing.tpl:

    find:
    Code:
    Only registered members can view the code.
    and replace with:
    Code:
    Only registered members can view the code.
    I think, the problem is not here.

    Quote Originally Posted by Rudi View Post
    Hello,

    The simplicity of this solution is that the script calculates and saves duration of different packages correctly, see screenshot

    but displays it incorrectly due to the additional calculation in rlListings.class.php > getMyListings()

    this code should be improved in the next update so that it wouldn't affect the "Active Till" date

    for now, it's enough to change a piece of code in the .tpl file
    The point is: When you upgrade/update a listing, it adds NEW listing period to pay date, while it should add OLD listing period to it.

+ Reply to Thread