Advertisement:

Author Topic: How to edit " check with Seller " in real estate theme  (Read 60723 times)

Ana

  • Newbie
  • *
  • Posts: 9
How to edit " check with Seller " in real estate theme
« on: May 07, 2013, 10:44:25 pm »
Hii

Is any one tell me hw to edit check with seller in real estate theme 

Thnks

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: How to edit " check with Seller " in real estate theme
« Reply #1 on: May 07, 2013, 11:09:17 pm »
Hi

Are you wanting to just translate it or do you want it totally different?

If you want to put different text there you can add the following code to your functions.php file of your theme folder.


	
function 
price_check_w_seller(){
	
	
return 
__('your text here');
	
}
	
osc_add_filter('item_price_null''price_check_w_seller);


Jay

Ana

  • Newbie
  • *
  • Posts: 9
Re: How to edit " check with Seller " in real estate theme
« Reply #2 on: May 07, 2013, 11:17:59 pm »
jay I could not see that  line in my function files,,, could you plzz tell me number of line,,,

Thnks

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: How to edit " check with Seller " in real estate theme
« Reply #3 on: May 07, 2013, 11:38:29 pm »
Yep those lines are not in your function.php file you need to add them.

Jay

Ana

  • Newbie
  • *
  • Posts: 9
Re: How to edit " check with Seller " in real estate theme
« Reply #4 on: May 07, 2013, 11:41:33 pm »
where i have to add these lines,,, i mean at which numbers I have to add these lines,,,, tell me about all lines and tell me number where i have to add these lines,,,,,,

Thanks

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: How to edit " check with Seller " in real estate theme
« Reply #5 on: May 07, 2013, 11:58:36 pm »
Just add the above lines in the functions.php file towards the top but not above the <?php or after the ?> code.

Jay

Ana

  • Newbie
  • *
  • Posts: 9
Re: How to edit " check with Seller " in real estate theme
« Reply #6 on: May 10, 2013, 10:35:13 am »
Thnks dude,,, its works,,, xoxo

Jan86

  • Full Member
  • ***
  • Posts: 196
Re: How to edit " check with Seller " in real estate theme
« Reply #7 on: May 18, 2013, 07:15:13 pm »
Hello,

or you can go in: oc-includes/osclass/helpers/hItems.php   find 'check with seller' and edit it!

Jan

classifyme

  • Newbie
  • *
  • Posts: 43
Re: How to edit " check with Seller " in real estate theme
« Reply #8 on: August 05, 2013, 11:23:51 am »
Thanks Jay, that worked for me as well.
« Last Edit: August 10, 2013, 03:19:25 pm by classifyme »

New

  • Newbie
  • *
  • Posts: 8
Re: How to edit " check with Seller " in real estate theme
« Reply #9 on: August 17, 2013, 11:53:46 am »
Jan86  said

" Hello,

or you can go in: oc-includes/osclass/helpers/hItems.php   find 'check with seller' and edit it!

Jan
"

I did that and now am getting errors  :

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/mytopjob/public_html/getjoy/ads/oc-includes/osclass/helpers/hItems.php:1) in /home/mytopjob/public_html/getjoy/ads/oc-includes/osclass/core/Session.php on line 48

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mytopjob/public_html/getjoy/ads/oc-includes/osclass/helpers/hItems.php:1) in /home/mytopjob/public_html/getjoy/ads/oc-includes/osclass/core/Session.php on line 48

==========

No other file was touched . Theme is bender

Have tried clearing the browser cache, cookies, history etc...the error is also coming when I access my site via my ipad ...

I am a newbie to osclass and php...

Please help - this is driving me crazy !

Thanks much in  advance !



classifyme

  • Newbie
  • *
  • Posts: 43
Re: How to edit " check with Seller " in real estate theme
« Reply #10 on: August 17, 2013, 12:00:16 pm »
Jan86  said

" Hello,

or you can go in: oc-includes/osclass/helpers/hItems.php   find 'check with seller' and edit it!

Jan
"

I did that and now am getting errors  :


Hi New - re-load your backup file to over write what you changed and just do what Jay said to do.... I know you did a back up or made a copy of it... or should have. If not re-edit to what you did or go to this lovely site http://osclass.org/     and try again by ftp'ing' that hItems.php file back over.

New

  • Newbie
  • *
  • Posts: 8
Re: How to edit " check with Seller " in real estate theme
« Reply #11 on: August 18, 2013, 11:45:57 am »
For those who are facing the same error :

as advised by classifyme above , I finally downloaded OSClass3.2 again and reverted to the original  core.po and hItems.php . As of now, everything seems OK, except that the Text is back to " Check with seller " !!

But for the time being I am OK with it, till I am more sure of what to do  :-)

Lesson learnt : ALWAYS  keep a Backup of the files you are fiddling with so that if something goes wrong you can at least revert back to the last working version !

Thanks for all inputs !

New

  • Newbie
  • *
  • Posts: 8
Re: How to edit " check with Seller " in real estate theme
« Reply #12 on: August 18, 2013, 01:05:26 pm »
For those who reach this thread thread, this has finally worked form me, as of now, in bender theme :

================

If you want to put different text there you can add the following code to your functions.php file of your theme folder.

function price_check_w_seller(){
return __('your text here');
}
osc_add_filter('item_price_null', price_check_w_seller);
===============

Thanks much @trains58554 !

Jan86

  • Full Member
  • ***
  • Posts: 196
Re: How to edit " check with Seller " in real estate theme
« Reply #13 on: March 13, 2014, 04:58:32 pm »
Jan86  said

" Hello,

or you can go in: oc-includes/osclass/helpers/hItems.php   find 'check with seller' and edit it!

Jan
"

I did that and now am getting errors  :


Hi New - re-load your backup file to over write what you changed and just do what Jay said to do.... I know you did a back up or made a copy of it... or should have. If not re-edit to what you did or go to this lovely site http://osclass.org/     and try again by ftp'ing' that hItems.php file back over.

Hello,

i dont know what do u talking about - there is no errors - i tested on very old and new one version -

Code: [Select]
/**
     * Formats the price using the appropiate currency.
     *
     * @param float $price
     * @return string
     */
    function osc_format_price($price, $symbol = null) {
        if ($price === null) return osc_apply_filter ('item_price_null', __('THIS CAN CHANGE!') );
        if ($price == 0) return osc_apply_filter ('item_price_zero', __('THIS CAN CHANGE!') );

If u dont have basic coding skills do not customize scripts! - Just fallow instructions and transleate this preshare!

Jan