| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Schedule Item Availability | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS |
|||||||
#2
|
|||||||
|
|||||||
Re: Schedule Item Availability
Nice one Glen, I'll definitely try this one out
__________________
xcartmods.co.uk |
|||||||
#3
|
|||||||||
|
|||||||||
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
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ----------------------------------------------------------------------------------------------------------------------------------------- Looking for the best dutch language pack? 4.1.x - 4.6.x compatibel, native speaker translation! More info |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: Schedule Item Availability
very nice, have anyone try it in v 4.1
__________________
Web Design Web Design and Custom X-Cart Projects http://www.dataviking.com Mention the forums for discounts! x-cart Version 4.1.8 |
|||||||||
#5
|
|||||||
|
|||||||
Re: Schedule Item Availability
Is there a demo available for this at all?
__________________
XCART GOLD 4.0.12 PHP 4.3.9 MySQL Server 4.0.22-nt MySQL Client 3.23.49 Web Server Microsoft-IIS/6.0 |
|||||||
#6
|
|||||||
|
|||||||
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
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS |
|||||||
#7
|
|||||||
|
|||||||
Re: Schedule Item Availability
Quote:
__________________
YINIA.com ---- version 4.1 using Mac OS X |
|||||||
#8
|
||||||||
|
||||||||
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.
__________________
X-Cart Gold v 4.1.10 PHP 5.2.4 MySQL 5.0.45 standard Apache/2.2.6 OS - Linux |
||||||||
#9
|
|||||||
|
|||||||
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!
__________________
X-Cart - 4.1.7 PRO PHP - 4.4.4 MySQL 5.0.27 Apache 1.3.37 Linux |
|||||||
#10
|
|||||||
|
|||||||
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. |
|||||||
|
|||
X-Cart forums © 2001-2020
|