Support Forums

having a text price field

This is a discussion on having a text price field within the Customizations forums, part of the Developer Forums category; Hi all i've just set up my v4.1.6 Developer pages. I want to change the data type of the 'price' ...


Go Back   68 Classifieds Forums > Developer Forums > Customizations

Reply
 
Thread Tools Display Modes
Old 11-30-2009, 07:51 PM   #1
Junior Member
 
Join Date: Nov 2009
Posts: 11
Rep Power: 6
magicbus is on a distinguished road
Default having a text price field

Hi all

i've just set up my v4.1.6 Developer pages.

I want to change the data type of the 'price' field from decimal to text, and then let people write things like "offers", "�500" "swap for a red one" rather than a enter a fixed price in a fixed currency.

Then remove the price field in the search.

What else will I have to do? Has anyone else done this? I'm happy to muddle through rewriting bits as I go, but has anyone already done this? I think it should be quite simple if you know where all the relevant snippets are.

Thanks
magicbus is offline   Reply With Quote
Old 11-30-2009, 08:01 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 133
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Why not just globally hide the price field and instead create a text input extra field?
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 11-30-2009, 09:48 PM   #3
Junior Member
 
Join Date: Nov 2009
Posts: 11
Rep Power: 6
magicbus is on a distinguished road
Default

Hi Eric, thanks for your reply

Can you turn price off completely and stop it being shown? So far i've managed to stop a user having to provide it, yet it is still listed as �0.00 in quite a few places. Can it be even more turned off, or do I have to edit some templates?

thanks
magicbus is offline   Reply With Quote
Old 11-30-2009, 10:39 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 133
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Yes you can globally turn it off:
Checkout Settings - 68 Classifieds

Admin -> settings -> checkout settings:
Allow Price Field - Choose 'Yes' if you would like the member to be able to specify a price for his/her ad's item.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 12-21-2009, 12:05 PM   #5
Junior Member
 
Join Date: Nov 2009
Posts: 1
Rep Power: 0
contes is on a distinguished road
Default Hidden price field

I have turned off the the price field everywhere, but when I use the "Featured" option the ad comes up on the first page with price=0,00

What can I do to turn price completely off ?
contes is offline   Reply With Quote
Old 12-21-2009, 12:58 PM   #6
curmudgeon
 
Join Date: Mar 2006
Posts: 5,392
Rep Power: 135
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by contes
I have turned off the the price field everywhere, but when I use the "Featured" option the ad comes up on the first page with price=0,00

What can I do to turn price completely off ?
That display of featured listings is done by a plugin. You can alter theline of smarty code in the template calling the plugin to tell it not to show the price as outlined in the documentation.

Feature Listings Horizontal - 68 Classifieds
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 12-22-2009, 04:07 AM   #7
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,182
Rep Power: 78
seymourjames is a jewel in the rough
Default

What template are you using because if you are not using the default plugin, you need to edit the language file for the horizontal listings to put a blank in for 0.00. This will also resolve 0.00 on viewlisting and showlisting pages too.

As an aside, just so you do not forget, a side effect of turning pricing off is you will lose search and sort capability on price.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates and list your 68C site on ClassifiedCodes.com
seymourjames is offline   Reply With Quote
Reply

Tags
price , text

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Price field to show text guillopuig Customizations 4 11-10-2009 10:53 AM
Create a extra field just like the price field ? mirway7 Technical Support 3 10-12-2009 11:27 PM


All times are GMT -4. The time now is 04:33 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0