![]() |
How can I add a 20 day auction option? I'd have thought I could add / edit this bit of uploadproduct.tmpl in order to change the lengths of the auctions available. Code: Content visible to verified customers only.I even tried altering the default selected one to be the 20 day auction (simply changed option value="15" to "20") and that still defaults to the 15 day auction. Are these auction lengths coming from somewhere else? Is there another file I need to edit to add a 20 day auction option? What's the deal with uploadproduct 1,2,3 and 4? thanks in advance, this is driving me nuts. |
You have not added the appropriate language string in the languages so of course it is going to be blank. This would work Code: Content visible to verified customers only. |
That makes the 20 days option appear in the drop down list nicely, but when it is selected the auction still defaults to 15 days duration. Code: Content visible to verified customers only.Oddly the other ones default to 15 even if I change the option value (ie. if I change 15 to be 20, it's still 15 when the auction starts. So where is it getting 15 from?) |
Your telling me if you upload an ad and select a duration it is only set to 15? |
If I upload an auction and select my new 20 day duration, the resulting auction is only set to 15 days, yes. Seperately (ie. reverting back to standard template and trying something different) editing any of the standard durations will result in a new auction also being set to 15. For example: Code: Content visible to verified customers only.NB, in case it makes any difference, that these are auctions rather than straight ads. All I need is to be able to hardcode in a duration of my choice - my install isn't for user use, just for the admin (me) to run one auction. |
New install on the live server (I was testing on my dev server before) and the same problem persists. Adding Code: Content visible to verified customers only.What about uploadproduct1 .. 4.tmpl, do those need to be modified as well? |
Yes you need to modify all the templates you want. Unless you have altered something incorrectly I have tested the default duration functionaliity in the program and see no issues. |
i had the exact same issue with this, in the uploadproduct.php there is a missing array in the original file $checkduration = array("3", "7", "15", "30", "45", "60", "90"); if (!in_array("$duration", $checkduration)) { $duration = 15; because this array value is missing it treats it as 15 so the solution to your problem will have something to do with that, my guess is because "20" is not in the array its treating your 20 day auction like a 15 day auction. have a read of this thread it might help you out http://www.photopost.com/forum/class...y-auction.html |
yes I posted my thoughts on that |
| All times are GMT -5. The time now is 05:52 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0