![]() |
alternative for "SOLD" button
Hi,
I want to replace the "remove" button in "userbrowselistings" with a button which change the status of the ad (from "Y" to "Z" for example). The ad with "Z" status would still be displayed (not searchable and not present in showlistings) but with the mention "this ad has been desactivated by its owner", in order to keep it referenced in Google and to prove that the service is efficient. I have the idea, but don't know how to do, could you please help me ? regards, Pascal |
Hi,
I did something like this in ver 3.10 to stamp an image as SOLD. Worked well but it was a big mod, I'll dig out the code and show you what I did. Sorry meant to post it ages ago but been hectic... Mully |
I'm interested
I would be very interested in your code as well.
|
Hi there,
Sorry big post this so spread across threads... Ok so the first change I did for this was to modify the userbrowselistings.tpl.phpp file to reflect the new buttons I wanted in my case these were Sold and Relist. Sold marked an item as Sold stamping a banner across it whie Relist allowed the user to re-advertise it if the sale fell through without having to resubmit the pictures. Here's the code I added @ the top; PHP Code:
PHP Code:
**Continued in next reply |
PHP Code:
PHP Code:
PHP Code:
|
I'm not going to go through it all as I don't remember it fully and tbh you'll need to get familiar with it yourself if implementing it.
The last big things to note was the inclusion of the litestamp.php file, I had modified this to suit my own needs, here's the code I ended up with. PHP Code:
|
Final things to note about this implementation were that I modified the class_products table to include a col called `status` which I populated with either `S` for sold or `A` for active I then used this info when deciding whether to enable the Sold button in the userbrowse listings template or not. I have included the images I used for stamping aswell.
Although this implementation was a big change there were several things I liked about it, for instance your stamps would resize to match the supplied photos so never got skewed or stretched, all the main image file types were supported but litestamp. I would avoid adding a col to the db if doing it again as ths made it too complicated and I also think there is an issue deleting all photos, as in order to relist without resubmitting a copy of the original photo was made. Hope is of use to you all, bear in mind I did do this for V3 as of yet haven't implemented for v4 although thinking about it.... Mully http://www.ebuyni.com/photos/SOLD_wmclear.jpg http://www.ebuyni.com/thumbs/small_SOLD_wmclear.jpg |
Coolio dude !!!
Is great for people to have option to do this if they choose, dunno when I would have gotten around to upgrading it. One thought on the extra field for SOLD status, might be best in another table linked to the listing id. This keeps it isolated like in the module scenario and leaves you safer for any db upgrades etc going forward. :D |
| All times are GMT -4. The time now is 03:38 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0