Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use of " . " in Monthly Cost
#1
Smile 
I have to enable use of "." (dot) for setting my package price. My package price is $3.75/month but I'm unable to write "." so its coming $375... I cannot increase price to $4 so please don't suggest that.
What should I edit and where so that decimals can be enabled and my package price can be $3.75..???

I'm new to thehostingtool so please tell me where and what should I edit...
#2
unless you have a fairly good knowledge of PHP, then you won't be able to do this.

If you are good with PHP, you'll want to start by taking a look at includes/class_billing.php
Nick - TheHostingTool Staff Coordinator

[Image: standard.png]

#3
(11-22-2010, 04:46 PM)Nick Wrote: unless you have a fairly good knowledge of PHP, then you won't be able to do this.

If you are good with PHP, you'll want to start by taking a look at includes/class_billing.php

I don't have includes/class_billing.php file present there :O

There are other files like class_db.php, class_email.php, class_invoice.php, class_main.php, class_server.php, class_style.php and class_type.php

Or Should I consider class_invoice.php file? Can you edit it and upload somewhere? Please friend I need your help.

Thanx!
#4
If this helps... I just add the ( dot ) in the package table of my THT database, so my prices are 4.00 and so on...
#5
(11-23-2010, 01:35 AM)Twinfinity Wrote: If this helps... I just add the ( dot ) in the package table of my THT database, so my prices are 4.00 and so on...

Can you explain how you put the "."

I have to keep my price $3.75...
#6
Got to the database your THT uses and look for the tht_packages table. On one of your packages listed, click the pencil to edit. Look for "additional' row and it will say something similar to this:

direct=http://urblogz.com/bloghost/order/index.php?id=7,monthly=5.00,add=Edit Package

Where you see "monthly=" ad your price there. For example: the above is 5.00, it was 500 until I added the (.) to make it 5.00
#7
(11-23-2010, 01:58 AM)Twinfinity Wrote: Got to the database your THT uses and look for the tht_packages table. On one of your packages listed, click the pencil to edit. Look for "additional' row and it will say something similar to this:

direct=http://urblogz.com/bloghost/order/index.php?id=7,monthly=5.00,add=Edit Package

Where you see "monthly=" ad your price there. For example: the above is 5.00, it was 500 until I added the (.) to make it 5.00

It just shows $3.75, but while ordering, a bill of $4 is generated... What should I do?
#8
The billing code is found in includes/class_invoice.php and includes/paypal/paypal.class.php. To modify tht to properly accept decimals, then you will need to look through those files and modify accordingly.

PHP Resource website: http://php.net

Nick - TheHostingTool Staff Coordinator

[Image: standard.png]

#9
(11-23-2010, 07:03 PM)Nick Wrote: The billing code is found in includes/class_invoice.php and includes/paypal/paypal.class.php. To modify tht to properly accept decimals, then you will need to look through those files and modify accordingly.

PHP Resource website: http://php.net

Dude, can you please tell me what should I edit? I don't know php Sad

Sorry for troubling you again and again!

And thanx!
Hope you reply soon Smile
#10
(11-24-2010, 02:05 AM)tewarishubham Wrote:
(11-23-2010, 07:03 PM)Nick Wrote: The billing code is found in includes/class_invoice.php and includes/paypal/paypal.class.php. To modify tht to properly accept decimals, then you will need to look through those files and modify accordingly.

PHP Resource website: http://php.net

Dude, can you please tell me what should I edit? I don't know php Sad

Sorry for troubling you again and again!

And thanx!
Hope you reply soon Smile

Please Reply x-(

I need you help!!!


Forum Jump:


Users browsing this thread: 3 Guest(s)