Dollar sign before the price

Discuss here how to configure hoteldruid and better use its features.

Moderator: marco

Post Reply
anton
Posts: 2
Joined: Fri Sep 29, 2006 6:39 am

Dollar sign before the price

Post by anton »

Hi,

Thank you for this wonderful software, this is what I was looking for a long time. I am planning to have deposit payments through the Paypal as well, now I am trying to customize the script for my holiday properties in Australia.

I was wondering if you could show where to change the code to show the dollar sign before a price (e.g $100 instead of 100 Dollars).

I was trying to figure out myself, but because the code is in Italian I couldn't find it.

Thank You!
anton
Posts: 2
Joined: Fri Sep 29, 2006 6:39 am

Probmem solved - Dollar sign

Post by anton »

I figured out myself, don't worry about it.
Just modified modello_disponibilita.php

Thanks!
whacker
Posts: 39
Joined: Fri Oct 27, 2006 2:32 pm

Dollar Sign

Post by whacker »

Hello
Went digging through the file to try and add $ sign before the price..
Couldn't find the spot..
Could you offer some suggestions where to look???

Walter
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Post by marco »

Try searching for the $Euro variable. The file of the availability template is includes/templates/modello_disponibilita.php.

Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
whacker
Posts: 39
Joined: Fri Oct 27, 2006 2:32 pm

$ sign

Post by whacker »

Hi

I need some more clarification!!!

heres some of the code from modello_disponibilita.php , shows 2 instances of euro
There is probably at least 10 other instances in this file...

if ($costo_tariffa_tot == 1) $testo_a_video .= " $fr_Euro";
else $testo_a_video .= " $fr_Euros";

Shown below is the text from the availability template I would like to change 84.36 CDN Dollars to $84.36 CDN
also 10.36 CDN Dollars in the same way.

Walter

Check Availability
Please add note in Comments for extra Guests (basic 2 Guests/Room)


There is still availability in the requested period for type Room 5.

Period of 1 day from 18-11-2006 to 19-11-2006 for 2 people.

Price: 84.36 CDN Dollars (including 10.36 CDN Dollars of 14% HST).
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Post by marco »

$fr_Euro is the variable that holds the currency symbol, $testo_a_video holds the text that's going to be printed on the sceen. So you should look for what is added before to $testo_a_video (probably $costo_tariffa_tot_p in your example) and move those lines before that.

Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
riklogtenberg
Posts: 1
Joined: Sat May 26, 2007 12:09 am

Trying to find the DOllar sign variable and how to move it

Post by riklogtenberg »

Hi Marco,

thanks for this great software!

I'm trying to figure out how to do this and I can't seem to figure out where to move $fr_Euros. Can you explain again how to move the dollar sign to the front of the price? For example, in the availability template I need this:

Price: 175 $.

to be this:

Price: $ 175.



Thanks.
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Post by marco »

Hello,
some degree of php knowledge is needed, if I have to explain it step by step it would take more time than doing it directly. I will add this feature to my list of things to do for future versions, if you need it immediately I can make you an estimate of the cost.

Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
Post Reply