 | |  | | | Classifieds How do I...? Wondering how to do something in Classifieds? |
January 10th, 2010, 06:50 AM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2010
Posts: 4
| 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.
BUT, if I add another option or even change one of the existing ones (eg. I changed out the 90 day for a 20 day) I get a blank space on the dropdown menu of auction lengths, and if I select the blank space where my option should be, I get the default auction length of 15 days. If I change it back to the original number, it reappears and works as originally intended.
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.
|
| |
January 10th, 2010, 08:48 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
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.
|
| |
January 10th, 2010, 01:17 PM
|
#3 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2010
Posts: 4
|
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.
The other ones work ok, but not the one I added.
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?)
|
| |
January 10th, 2010, 01:23 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
Your telling me if you upload an ad and select a duration it is only set to 15?
|
| |
January 10th, 2010, 03:16 PM
|
#5 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2010
Posts: 4
|
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.
The above would still give me a 15 day auction, even though option value 15 isn't anywhere in the code.
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.
|
| |
January 11th, 2010, 09:43 AM
|
#6 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2010
Posts: 4
|
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.
to the list of options gives me a 15 day auction.
What about uploadproduct1 .. 4.tmpl, do those need to be modified as well?
|
| |
January 11th, 2010, 10:47 AM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
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.
|
| |
April 3rd, 2010, 11:57 PM
|
#8 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2009
Posts: 16
|
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 how do i make a 4, 5 or 6 day auction?
Last edited by 20KingSize; April 4th, 2010 at 12:09 AM.
|
| |
April 4th, 2010, 08:14 AM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
yes I posted my thoughts on that
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 04:35 AM. | |