chris2403 Posted January 23, 2009 Posted January 23, 2009 is there any way i can add the lead time of a product to the bottom of the description. basically i need a script that will add x number of business days to todays date, ive got half way there but it went over the number of days in a month so i had to scrap it. cheers chris
burt Posted January 23, 2009 Posted January 23, 2009 here is a start for you: echo date("M d Y", strtotime("+10 days"));
chris2403 Posted January 23, 2009 Author Posted January 23, 2009 thanks but is there any way it could be done within the description that you input in the admin area for each product as it varies for each one
burt Posted January 23, 2009 Posted January 23, 2009 You could probably make a function to do this, but it's not all that straightforward unless you are decent with php. Why not just add that directly to the product_info.php code either before or after the end of the description.
chris2403 Posted January 23, 2009 Author Posted January 23, 2009 because its not the same for each product. i guess ill have to leave it for now and come back to it at a later date. cheers anyway
burt Posted January 23, 2009 Posted January 23, 2009 wsell, that's hardly a stumbling block, if you give up so easily, you aint got much hope with oscommerce ;) 5 minutes work to add in an extra database column containing the number of days lead time.
chris2403 Posted January 23, 2009 Author Posted January 23, 2009 no need to get on your high horse like that :rolleyes: it was just a little idea i had.
wex Posted January 23, 2009 Posted January 23, 2009 Add the column to "products". Add the input field in Add_product / Edit_product Add burt's code snippet. Done! Seems simple enough, eh? :) Also you could add the "delivery time" to manafacturer if thats what depends the delivery time, then you would only have to fill it in once for every manafacturer.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.