Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 24, 2013, 10:49:17 am

Login with username, password and session length
Members
Total Members: 10768
Latest: CayoTTe
Stats
Total Posts: 32395
Total Topics: 5480
Online Today: 57
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 2
Guests: 45
Total: 47
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
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 902 times)
bellboy
Inline PM Customer
*****
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: 11003


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
bellboy
Inline PM Customer
*****
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: 11003


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

Updated files attached
Logged
bellboy
Inline PM Customer
*****
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: 11003


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
bellboy
Inline PM Customer
*****
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
[May 23, 2013, 08:29:56 pm]

[May 23, 2013, 04:50:21 am]

[May 22, 2013, 10:03:30 pm]

[May 22, 2013, 03:00:09 pm]

[May 22, 2013, 03:03:31 am]

[May 21, 2013, 03:27:16 pm]

[May 21, 2013, 02:11:10 pm]

[May 21, 2013, 01:18:58 pm]

[May 21, 2013, 12:22:02 am]

[May 21, 2013, 12:20:41 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | 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.127 seconds with 19 queries.