![]() |
Schedule Item Availability
This mod was done in x-cart pro 4.0.19. I believe it should work fine in x-cart gold 4.0.19 as well, but I haven't tested it. Once in place, the mod allows you to schedule item availability by start and end dates. Expired items behave in the same manner as a standard Disabled item (unavailable for viewing or ordering in the storefront). This mod adds 2 new fields to the xcart_products table. No warranty is expressed or implied. Make sure you backup your database and site files before attempting the mod. Special thanks to PhilJ for his suggestions and free mods!
That's it! I haven't tested my steps against a stock 4.0.19 installation, so your mileage may vary. If you want to add a calendar picker to the product admin fields, take a look at PhilJ's "Product Options Date/Time Picker" freebie mod. -Glen |
Re: Schedule Item Availability
Nice one Glen, I'll definitely try this one out :)
|
Re: Schedule Item Availability
This is very cool; is there anybody who has got this working for 4.1.3?
I've looked through the code but it appears that it's quite different in 4.0.19 compared to 4.1.3 :( |
Re: Schedule Item Availability
very nice, have anyone try it in v 4.1
|
Re: Schedule Item Availability
Is there a demo available for this at all?
|
Re: Schedule Item Availability
Sorry, no demo. Here is what the addition looks like on the Product Management screen in the admin (with PhilJ's date picker added):
http://www.hosthaste.com/schedule_mod.png |
Re: Schedule Item Availability
Quote:
|
Re: Schedule Item Availability
I liked this mod so I modified for my 4.1.8 xcart. Here's what I have:
Step 1: SQL patch Quote:
Step 2: Change /include/product_modify.php After Quote:
Add Quote:
Step 3: Open skin1/main/product_details.tpl and paste the following somewhere near the bottom (just above the Extra Fields works well). Quote:
Step 4: Open include/func/func.product.php and find Quote:
Replace with: Quote:
Step 5: Open include/search.php and find: Quote:
Replace with: Quote:
Hope this helps you 4.1 xcart babies. I make no promises that this code will work with your site; each environment is different and your code may function differently especially if it has already been moded. I can't provide any support for this mod. Install only if you have the resources to fix any problems that may occur. |
Re: Schedule Item Availability
Does anyone have sample code to put on the admin page?
I'm assuming thats missing because on the admin backend it doesn't ask me what dates I want. *EDIT TO ADD* I've uploaded that calender control...but I guessing that I need the code calls the calender for both of those fields (Start & Finish dates) Thanks! |
Re: Schedule Item Availability
hi there,
Just tried to put this mod into my 4.1.9 store and its not quite working. I looked in my database and the fields have been created ok in the product's table, however the start date and end date come through as 0 everytime.. is this a problem with my version? do you think if i put the values into the database myself (in unixtime i'm guessing) that it will work? Cheers, Pete. |
All times are GMT -8. The time now is 12:48 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.