How do I hide Service Price

  • cirab63
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
11 years 4 months ago #23617 by cirab63
How do I hide Service Price was created by cirab63
Hi Dam.

I was wondering if it is possible to hide the service Prices and time slots showing in the top right corner of the application and also from the service cost as shown in the attached screenshot. However, i will like those information display in the check out summary page.

Thanks
Attachments:

Please Log in or Create an account to join the conversation.

  • cirab63
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
11 years 4 months ago #23669 by cirab63
Replied by cirab63 on topic Re: How do I hide Service Price
Any Idea anyone?

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago - 11 years 4 months ago #23680 by Mr. Dam
Replied by Mr. Dam on topic Re: How do I hide Service Price
Hi,
To remove the pink box in the right side, please go to file
components > com_osservicesbooking > classes > ajax.html.php
line 170
remove

<table width="100%" style="background-color:#FFF4E0;border:1px solid #E3D0AE !important;">
<?php
if($configClass == 1){
?>
<tr>
<td align="right" style="padding:0px;padding-right:5px;padding-top:5px;" width="30%">
<span class="editlinktip hasTip" title="<?php echo JText::_('OS_PRICE')?>">
<img src="<?php echo JURI::root()?>components/com_osservicesbooking/style/images/money.png">
</span>
</td>
<td align="left" style="padding:0px;padding-top:5px;">
<b><?php echo $configClass?><?php echo number_format($service->service_price,2,'.','');?></b>
</td>
</tr>
<?php
}
?>
<tr>
<td align="right" style="padding:0px;padding-top:5px;padding-bottom:5px;padding-right:5px;" width="30%">
<span class="editlinktip hasTip" title="<?php echo JText::_('OS_LENGTH')?>">
<img src="<?php echo JURI::root()?>components/com_osservicesbooking/style/images/time.png" width="14">
</span>
</td>
<td align="left" style="padding:0px;padding-bottom:5px;padding-top:5px;">
<b><?php echo $service->service_total;?> <?php echo JText::_('OS_MINS')?></font></b>
</td>
</tr>
<tr>
<td align="right" style="padding:0px;padding-bottom:5px;padding-right:5px;" width="30%">
<span class="editlinktip hasTip" title="<?php echo JText::_('OS_NUMBER_STAFF')?>">
<img src="<?php echo JURI::root()?>components/com_osservicesbooking/style/images/staff.png">
</span>
</td>
<td align="left" style="padding:0px;padding-bottom:5px;">
<b><?php echo $nstaff;?>
</td>
</tr>
</table>


To remove price in the employee list, open file
components > com_osservicesbooking > helper > calendar.php
find

<?php echo JText::_('OS_SERVICES_COST_WITH_THIS_EMPLOYEE')?>:
<?php echo $configClass?> <?php echo $service->service_price + $additional_price?> <?php echo $configClass;?>
<?php
if($additional_price > 0){
?>
(<?php echo JText::_('OS_ADDITIONAL_COST1')?>: <?php echo $configClass?> <?php echo $additional_price;?> <?php echo $configClass;?>)
<?php
}
if(count($extras) > 0){
?>
and change to
<?php
if(count($extras) > 0){
?>

Good luck
Dam
Last edit: 11 years 4 months ago by Mr. Dam.

Please Log in or Create an account to join the conversation.

  • cirab63
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
11 years 4 months ago #23685 by cirab63
Replied by cirab63 on topic Re: How do I hide Service Price
Hi Dam,

After I replaced the second codes with <?php
if(count($extras)>0){
?>

I got an error message of "HTTP 500"
is it something that I did wrong?

By the way the first one works. It removes the Pink box in the right hand.

Thanks....I hope to hear from you soon.

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #23690 by Mr. Dam
Replied by Mr. Dam on topic Re: How do I hide Service Price
Please send your site information with super admin account, ftp account to damdt@joomservices.com. I will check for you.
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • cirab63
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
11 years 4 months ago #23702 by cirab63
Replied by cirab63 on topic Re: How do I hide Service Price
Information has been sent to your box as requested.

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #23712 by Mr. Dam
Replied by Mr. Dam on topic Re: How do I hide Service Price
Hi,
I have fixed for you.
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • cirab63
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
11 years 3 months ago #23718 by cirab63
Replied by cirab63 on topic Re: How do I hide Service Price
Thank you very much. It looks great

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam