No Expiry on Listing

Discussion in 'Technical Support' started by freeze2, Nov 15, 2011.

  1. freeze2 Customer

    I'm considering using the 68C script for an inventory management system and was wondering if there is a way to over-ride the listing expiration. I see that you can set the expiry up to 10 years, which would be sufficient, though I would prefer to be able to have a no expiry option if easy to accomplish.

    Any thoughts would be great...thanks
  2. freeze2 Customer

    I guess this is not possible...?
  3. John Snyder Staff

    You would have to make some core file changes or edit your database and give it a date further in the future.
  4. freeze2 Customer

    Thanks John,

    I could definitely see this as a good option via the admin in a future release as there could be many uses for it.
  5. John Snyder Staff

    Yes, I agree. I see what can be done for the next major version. If you want to do a core file change I can point you in the right direction.
  6. seymourjames All Hands On Deck

    Basically my sites run as inventories - well publicly accessible. I just set the expiration date out to 10 years. You can even force the date in a core file so whatever you put into the admin panel or front end it gets ignored.
  7. freeze2 Customer

    Thanks John, for now I will leave things as is on this and just extend the expiration via the admin.
  8. seymourjames All Hands On Deck

    why not just change the core file setting for expiration as John proposes. I believe it is in orders.php
  9. freeze2 Customer

    What changes would I need to make to that file?
  10. Mike-N-Tosh Developer & Moderator

    Actually it isn't the Orders.php, it's the Listings.php.

    The function called, "setExpiration", however there is already a module call hook there in the appropriate spot that could be used instead, which would always be preferable then changing core.php files.

    At approximately line #959:
    ($modules->call_hook('bypass_expiration', $listingid)) ? $set_expiration = FALSE : FALSE;
  11. seymourjames All Hands On Deck

    So there is. So a straight forward change. Don't forget to document it if you do make that change.

Share This Page