Results 1 to 10 of 18

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Posts
    5
    Plugin Contributions
    0

    Default Product expiration date

    I have the most current version of ZenCart installed with no "add-ons" currently. I am using Windows XP.

    I am NOT a website developer but I can generally move around and change things when necessary. However, I have NO experience with add-ons and coding and I cannot figure out how to get my products to have an expiration date.

    Every product I will have listed will expire on a certain date. I need to add that date (have it visable to the customer) and have them automatically removed about a week before the expiration date.

    If anyone out there can help me with this it would be greatly appreciated.

    Thanks!

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Product expiration date

    Make products featured or specials...you can then set expiry date, and add date, when this will happen, in product description

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

    Default Re: Product expiration date

    If you could add an expiration date ... why would you want the Product removed a week before the expiration date?

    Or, do you mean remove the "display of the expiration date" a week before ...

    You have me a bit confused on what you want to do with this 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
    Feb 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Product expiration date

    Quote Originally Posted by Ajeh View Post
    If you could add an expiration date ... why would you want the Product removed a week before the expiration date?

    Or, do you mean remove the "display of the expiration date" a week before ...

    You have me a bit confused on what you want to do with this expiration date ...
    My products "actually" expire, all of them. So, I couldn't ship something out withing a week or so of the expiration date, it wouldn't get there in time. So I would like to add a product field, i guess, for expiration date. I guess I could manually take them off the site when the time comes. If that makes it easier, I'm not sure.

    If I used the "featured/sales" in Zen I would literally have to enter hundreds/thousands of products twice I believe. I have that feature turned off right now because I have no product images to display at all. I don't think that is the best option for me.

    If anyone has alot of experience with zen card/coding, I would be happy to let them into my admin for whatever is necessary (via private message of course). I have been spending months on something I know someone with experience could do quite quickly.

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

    Default Re: Product expiration date

    If you were to add to the products table a field such as:
    expiry_date

    as a datetime field you could use that to control this ...

    I suggest the field:
    expiry_date

    as that is a good name for future upgrades ...
    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
    Feb 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Product expiration date

    I'm not that advanced of a user, I'm not sure how to do that.

  7. #7
    Join Date
    Jul 2010
    Posts
    33
    Plugin Contributions
    0

    Default Re: Product expiration date

    Quote Originally Posted by misty View Post
    Make products featured or specials...you can then set expiry date, and add date, when this will happen, in product description
    Is this possible? or is it just the Featured or Special "status" that expires. We want to use Salemaker to setup a dated sales/discount scheme, and have the product removed from user access at the end of a preset time period.
    Linux (Shared Host) | Apache 2.2.19 | MySQL 5.1.56 | PHP 5.2.17 | Zen Cart 1.3.9h

  8. #8
    Join Date
    May 2010
    Posts
    44
    Plugin Contributions
    0

    Default Re: Product expiration date

    As a PHP developer I can assure you it is not simple at all.

    off the top of my head you would need..

    1) add a field in your database for expiry date in the products table
    2) add as field box into your admin page to update the field in the database (need to add the string to the mysql query so it gets added)
    3) create a php file on your server somewhere that looks at every product in your listing and says is expiry date > 1 week away if yes delete row if not move onto next row to check.'
    4) a CRON script that runs the php script above every 24 hours.

    With PHP you can't simply say "make this happen at this time" php only runs when called upon there fore you need a process like cron to actually go and execute script regularly.

    You will not achieve this unless you have at least intermediate knowledge of PHP and SQL

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

    Default Re: Product expiration date

    NOTE: do keep in mind that the new field name of:
    expiry_date

    in the products table as a type: datetime

    will be compatible with future upgrades to Zen Cart ...
    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!

  10. #10
    Join Date
    Jul 2010
    Posts
    33
    Plugin Contributions
    0

    Default Re: Product expiration date

    Thanx guys.

    Quote Originally Posted by flamer View Post
    As a PHP developer I can assure you it is not simple at all.
    With PHP you can't simply say "make this happen at this time" php only runs when called upon there fore you need a process like cron to actually go and execute script regularly.
    You will not achieve this unless you have at least intermediate knowledge of PHP and SQL
    Was thinking about the same sort of procedure, myself. Thanx for the forethought and the warning, it's much appreciated.

    Quote Originally Posted by Ajeh View Post
    NOTE: do keep in mind that the new field name of:
    expiry_date
    in the products table as a type: datetime
    will be compatible with future upgrades to Zen Cart ...
    Thanx for the heads_up, I had noticed your comment on this earlier in the thread.

    For the meantime, as our beginning needs will prob be more modest, I figured a daily sql sweep on a datetime field would suffice. For which 'expiry_date' is just perfect. Nothing like having a lil routine to run with morning coffee & a bagel. <Smile>

    It was the comment on using the 'Feature'/'Special' expiry date fields, how they work, & how much using using either of them, for this, limits things you can do later with your store, that had perked my curiosity.
    Linux (Shared Host) | Apache 2.2.19 | MySQL 5.1.56 | PHP 5.2.17 | Zen Cart 1.3.9h

 

 

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. Add product expiration date
    By mige in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 2 Dec 2008, 02:52 AM

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