Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 190
Total: 190

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

0 Members and 1 Guest are viewing this topic.

Offline bellboy

  • Member
  • *
  • 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: 16436
    • View Profile
Re: Best way to remove decimal from item price in listing submission?
« 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.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline bellboy

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

Offline SMFHacks

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

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline bellboy

  • Member
  • *
  • Posts: 11
    • View Profile
Re: Best way to remove decimal from item price in listing submission?
« 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.


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Best way to remove decimal from item price in listing submission?
« 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.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline bellboy

  • Member
  • *
  • Posts: 11
    • View Profile
Re: Best way to remove decimal from item price in listing submission?
« 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.

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
4386 Views
Last post September 14, 2007, 01:43:23 pm
by joh87swe
3 Replies
6261 Views
Last post October 08, 2007, 07:12:48 pm
by SMFHacks
5 Replies
5370 Views
Last post December 01, 2008, 10:04:12 pm
by Riley
3 Replies
3068 Views
Last post January 24, 2012, 01:05:36 pm
by SMFHacks
10 Replies
1407 Views
Last post June 01, 2023, 06:06:12 pm
by Nicole

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal