Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
April 24, 2014, 03:24:45 am

Login with username, password and session length
Members
Total Members: 11197
Latest: besherh
Stats
Total Posts: 34816
Total Topics: 5839
Online Today: 80
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 52
Total: 52
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
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 1319 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: 11873


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
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: 11873


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

Updated files attached
Logged
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: 11873


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
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
[April 23, 2014, 12:14:06 pm]

[April 22, 2014, 11:06:21 am]

[April 17, 2014, 06:35:33 pm]

[April 17, 2014, 05:44:48 pm]

[April 17, 2014, 04:01:58 pm]

[April 15, 2014, 10:58:02 am]

[April 13, 2014, 11:12:24 am]

[April 11, 2014, 09:39:48 am]

[April 11, 2014, 08:48:03 am]

[April 10, 2014, 08:20:58 am]
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.201 seconds with 19 queries.