Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
September 02, 2014, 01:52:32 pm

Login with username, password and session length
Members
Total Members: 11338
Latest: maxx123
Stats
Total Posts: 35413
Total Topics: 5930
Online Today: 86
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 64
Total: 65
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Best way to remove decimal from item price in listing submission?  (Read 1458 times)
bellboy
Newbie
*
Offline Offline

Posts: 11


View Profile
« on: April 01, 2012, 11:38:01 pm »

I plan to use Japanese Yen as the sole currency with SMF Classifieds and as such I would like to remove the decimal from the price of items in listings submitted by users.

For example:

Current - 100.00 JPY
Desired - 100 JPY

How can I best achieve this? Many thanks.

ps - I would also like to remove the option for users to select different currencies from the drop down menu when creating and ad but I guess the only way to do this is by editing the .php file, correct?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 12114


View Profile
« Reply #1 on: April 02, 2012, 09:31:04 am »

Attach your Classifieds.template.php from your themes/default folder and you Classifieds.php from the Sources folder can make the changes for you.
Logged

Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.
bellboy
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #2 on: April 03, 2012, 02:06:10 am »

Sure, here they are. Thank you.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 12114


View Profile
« Reply #3 on: April 03, 2012, 12:33:24 pm »

Updated files attached
Logged

Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.
bellboy
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #4 on: April 03, 2012, 06:54:41 pm »

Thank you so very much for your update. I am sorry to bother you but I was wondering if it might be possible to remove the items in the attached screenshots? I do not plan to use any bidding functionality only for users to message sellers when they want to purchase something.

Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 12114


View Profile
« Reply #5 on: April 03, 2012, 10:26:11 pm »

When you edit a category use the    "No Price/No Bidding" option and that will get the same affect.
Logged

Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.
bellboy
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #6 on: April 04, 2012, 12:48:57 am »

When you edit a category use the    "No Price/No Bidding" option and that will get the same affect.

Yes, I tried that initially but then the "price" field disappears which is by design but not what I was hoping for. I suppose I could do that and then simply create a custom field with "price" but it that might be a little counter intuitive.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 12:44:26 pm]

[Today at 02:38:57 am]

[Today at 01:01:23 am]

[September 01, 2014, 09:03:35 am]

[August 31, 2014, 09:40:44 pm]

[August 31, 2014, 05:06:49 pm]

[August 30, 2014, 10:02:54 pm]

[August 30, 2014, 01:12:42 pm]

[August 29, 2014, 02:23:21 pm]

[August 28, 2014, 11:01:47 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.19 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.217 seconds with 18 queries.