![]() |
Can't edit price(FIXED) I encounter a problem. When I post an ad and edit it after that, the price becomes ZERO (Best Offer). I can't seem to change the price at all!! I also notice that once I go into editproduct.php, the price will become ZERO. At first I thought my modified templates are causing the problem, but after I use the original files the problem persist. Any Idea???? http://www.singaporeexpats.com/classifieds It will be great if someone go into my site and place an ad then edit it and see ............. Please note that all template files and language files are original from 2.41. |
In editproduct.php find this line and add the text in bold typecast($_POST, array('price' => STRING, 'rating' => STRING, 'title' => STRING, 'keywords' => STRING, 'desc' => STRING, 'extra1' => STRING, |
Thanks alot! That solves the problem :) Another observation, I find that if I do not include this line: <input type="file" name="theimage[]"> in the uploadproduct.tmpl, after I submit the ad, instead of seeing Successful uploading the ad", it will go back to: Step 1 of 3 Choose the type of ad you want to place: Any tips ? |
Sorry ... another issue ... In http://www.singaporeexpats.com/class...howmembers.php "Views", "Comments" and "Space Used" does not show anything .... |
showmembers.tmpl should only contain member name and number of ads that I see so the template should be this Code: Content visible to verified customers only. |
Thanks!!!! How about this: I find that if I do not include this line: <input type="file" name="theimage[]"> in the uploadproduct.tmpl, after I submit the ad, instead of seeing Successful uploading the ad", it will go back to: Step 1 of 3 Choose the type of ad you want to place: |
I dont quite follow here nor would I think this be a bug cause in uploadproduct.tmpl there is this if ( $Globals['usegd'] != -1 ) { echo<<<PPPRINT </td> </tr> <tr> <td class="{$Style['tddetails']}">{$Globals['pp_lang']['productname']}:</span></td> <td class="{$Style['tddetails']}"><input type="file" name="theimage[]"><br /> <input type="file" name="theimage[]"><br /> <input type="file" name="theimage[]"></td> </tr> PPPRINT; } |
If I remove this code: if ( $Globals['usegd'] != -1 ) { echo<<<PPPRINT </td> </tr> <tr> <td class="{$Style['tddetails']}">{$Globals['pp_lang']['productname']}:</span></td> <td class="{$Style['tddetails']}"><input type="file" name="theimage[]"><br /> <input type="file" name="theimage[]"><br /> <input type="file" name="theimage[]"></td> </tr> PPPRINT; } It wouldn't work any more ... |
Of course it wont. Look at the other uploadproduct files to see how it works. You still need to have an input tag in there for theimage just hidden <input type="hidden" name="theimage" value="" /> |
| All times are GMT -5. The time now is 04:26 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0