Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2007
    Posts
    4
    Plugin Contributions
    0

    bug Add product expiration date

    My products are workshops and I need to filter out past workshops from product listings. I need something very similar to featured products, almost exactly the same. Has anybody done this? How can I completely duplicate the feature products ? Well
    1. I need to create a table like featured products,lets say product_exp.
    2. Make it available in the admin product pages for data entry.
    3. Then all queries(or those I use such, as featured products etc.. ) queries have to filter out expired products.
    Is there any workaround or easier way to do this?

    Thank you for your suggestions! Mige

  2. #2
    Join Date
    Mar 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Add product expiration date

    Well, I have not seen any replies but meanwhile, I figured out I could use the field 'product_date_available' in reverse, that means in my product listings I exclude products (in my case workshops) that have become available. Which "select queries" and functions do I need to change? I would appreciate if somebody with better knowledge of the code could point me towards the right direction. Mige

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Add product expiration date

    The product_date_available actually has a purpose in Zen Cart already and you will need to disable its current use and re-write it to work in your method ... which is actually harder, I would think ...

    You would be better off building in a new field for the product_expires_date or have the code customized for you ...

    If you look at where the products_date_available is in the Admin for where to put the code, you can also look at the products_price_manager for how to manage multiple dates on the same page for adding/editing etc.

    Now, you would have a field that you can check similar to the Featured, Specials and Sales where when a customer hits your site for the first time, the Products are updated to automatically move out of stock on their expiration date ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Mar 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Add product expiration date

    Thank you! for pointing me towards the right direction. Here is what I understand, I should:
    Create an additional table similar to featured.
    Make start_date, end_date fields available through 'products_price_manager.php', to be set.
    I am not sure how the product_status update is going to happen. I am assuming this is not happening through a database trigger? I don't have a clear grasp of 'products_price_manager.php' code. May I ask for some code segment suggestions?
    One more thing I haven't touched any code other than in the include files how do I create an override system in admin area?
    Thanks again! Mige

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Add product expiration date

    You could use either a new table or the products table that is up to you ...

    If you are following Featured for tracking the code just do a search in the Developer's Tool Kit for the word:
    featured

    And that should locate all language, variables, constants, functions etc. etc. etc. that is used ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Mar 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Add product expiration date

    I justed wanted to understand for a future Zen Cart upgrade what, adding extra fields to the products table, entails? Let's say I added the fields to the end of the products table, I won't be affecting any of the existing functions in Zen Cart? (of course other than anything that lays fields into in tabular format)

    Let's assume Zen Cart upgrade has added new fields, I incorporate these new fields into my product table and keep what I have, I should be fine using the upgrade?

    as far as the updates go, I am still not clear, how does the updates happen after the first user accesses the database on the day of the expiration of a workshop? Thanks!

  7. #7
    Join Date
    Nov 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: Add product expiration date

    So has there been any development in this area? I too am building a ticket sales system and I can't find any way to make the dates that have passed become inactive or automatically deleted. Using the featured product method for this is not an option for me because i'm using that designation for an "On Stage Tonight" side box.

    I've edited the database to include an extra field of "product_date_expiration" but i've had a very difficult time making this a usable field in the admin add product page - not to mention that making the field do what i want it to do is way over my head.

    any suggestions? help please....

    mx

  8. #8
    Join Date
    Mar 2007
    Posts
    40
    Plugin Contributions
    0

    Default Re: Add product expiration date

    No, there hasn't been any uppdates on this. I couldn't figure it out and for us it didn't matter as much.

 

 

Similar Threads

  1. Sales or Specials with Time and Date (instead of date only) Expiration
    By townsend2009 in forum Setting Up Specials and SaleMaker
    Replies: 3
    Last Post: 29 Jan 2015, 07:56 PM
  2. Product Expiration Date in Google Feed
    By Quiltconsignment in forum All Other Contributions/Addons
    Replies: 20
    Last Post: 8 Nov 2012, 07:35 AM
  3. Product expiration date
    By MCHESHIER1 in forum Setting Up Categories, Products, Attributes
    Replies: 17
    Last Post: 9 Sep 2011, 11:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg