+ Reply to Thread
Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

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

  1. #21
    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?

  2. #22
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Yes, the problem is in using incorrect output (refer to my last post)

    Apply my solution and you'll see it

  3. #23
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    403
    I tried this fix and so something is not good because now it shows that the post date: 20/10/2020 Ad is active: 20/10/2020
    So I think it shows a bad date that way.

  4. #24
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Sorry,

    I've corrected my post with the solution

  5. #25
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    403
    That's good. Thanks

  6. #26
    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.

  7. #27
    Glad to see more users are engaging in fixing this issue.
    Last edited by Wei Hong; October 22, 2020 at 06:23 AM.

+ Reply to Thread