Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11242
Latest: SlyBaldGuys
New This Month: 29
New This Week: 8
New Today: 1
Stats
Total Posts: 33770
Total Topics: 6024
Most Online Today: 86
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 3
Guests: 62
Total: 65

Author Topic: Best way to remove decimal from item price in listing submission?  (Read 1485 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: 12335
    • 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: 12335
    • 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: 12335
    • 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.

 

+- Recent Topics

Ads below posts by SMFHacks
Today at 07:26:00 am

Ad locations screenshot by SMFHacks
Today at 07:22:21 am

Upgrading from Ad Management 3.2 to Ad Seller Pro 2.1 on SMF 2.09 by SMFHacks
October 30, 2014, 06:31:21 pm

Ajax Continuous Page Scrolling (Facebook Styles) by SMFHacks
October 29, 2014, 04:31:28 pm

Some Problems by m.ehm
October 29, 2014, 04:49:05 am

if you edit a picture that didn't have a custom field applied to it, the opportu by SMFHacks
October 28, 2014, 08:46:32 pm

Core Theme by SMFHacks
October 27, 2014, 08:09:12 pm

Display gallery inside the forum page by SMFHacks
October 27, 2014, 04:19:02 pm

The future of Badge awards by GenesisMUGEN
October 27, 2014, 02:44:05 pm

radio player and chat box by crazyminx
October 26, 2014, 12:41:48 pm

Powered by EzPortal