Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11753
Latest: sc4rlett74
New This Month: 16
New This Week: 0
New Today: 0
Stats
Total Posts: 37036
Total Topics: 6519
Most Online Today: 49
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 36
Total: 36

Author Topic: Best way to remove decimal from item price in listing submission?  (Read 2224 times)

0 Members and 1 Guest are viewing this topic.

Offline bellboy

  • Newbie
  • *
  • Posts: 11
    • View Profile
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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 13675
    • View Profile
Re: Best way to remove decimal from item price in listing submission?
« Reply #1 on: April 02, 2012, 08: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.
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline bellboy

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Best way to remove decimal from item price in listing submission?
« Reply #2 on: April 03, 2012, 01:06:10 am »
Sure, here they are. Thank you.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 13675
    • View Profile
Re: Best way to remove decimal from item price in listing submission?
« Reply #3 on: April 03, 2012, 11:33:24 am »
Updated files attached
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline bellboy

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Best way to remove decimal from item price in listing submission?
« Reply #4 on: April 03, 2012, 05: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.


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 13675
    • View Profile
Re: Best way to remove decimal from item price in listing submission?
« Reply #5 on: April 03, 2012, 09:26:11 pm »
When you edit a category use the    "No Price/No Bidding" option and that will get the same affect.
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline bellboy

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Best way to remove decimal from item price in listing submission?
« Reply #6 on: April 03, 2012, 11:48:57 pm »
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.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3564 Views
Last post September 14, 2007, 09:52:05 pm
by SMFHacks
0 Replies
2715 Views
Last post September 14, 2007, 12:43:23 pm
by joh87swe
3 Replies
3772 Views
Last post October 08, 2007, 06:12:48 pm
by SMFHacks
5 Replies
3336 Views
Last post December 01, 2008, 10:04:12 pm
by Riley
3 Replies
1356 Views
Last post January 24, 2012, 01:05:36 pm
by SMFHacks

+- Recent Topics

Database error on a single child category by Kobytoo
July 21, 2016, 02:04:26 pm

Onclick javascript help by shuban
July 18, 2016, 12:36:39 pm

Finding the sum of a column MYSQL by shuban
July 11, 2016, 11:50:54 am

should my orders show to a logged out user? by SMFHacks
July 10, 2016, 05:03:08 am

Finding the last iteration in a while query by shuban
July 09, 2016, 02:28:39 pm

Auto-incrementing issue? by shuban
July 06, 2016, 01:25:34 pm

Sending an email to expired group members by shuban
July 04, 2016, 07:07:46 pm

Brands, Manufacturers etc by moomoo
July 04, 2016, 02:24:25 pm

Questions by SMFHacks
July 04, 2016, 12:51:53 pm

Possible bug by SMFHacks
July 04, 2016, 10:23:58 am

Powered by EzPortal