Advertisement:

Author Topic: Bender - Change check with seller - main page  (Read 176446 times)

greyhorse

  • Newbie
  • *
  • Posts: 30
  • "alt-CTRL-delete"
Bender - Change check with seller - main page
« on: August 03, 2013, 10:06:53 pm »
Ok..I did read a few posts on how to change the "check with seller" to check with ----- " whatever" on the min page..  however, when I do that in Osclass/helpers/hItems.php

I get a error on top of the main page pointing to the core files line 48

How do I correct this?

I really need the "check with seller" removed ASAP as it does not have relevance to my site. As well as all reference to "seller"
« Last Edit: August 03, 2013, 11:29:40 pm by greyhorse »

zummolo

  • Newbie
  • *
  • Posts: 24
Re: Bender - Change check with seller - main page
« Reply #1 on: August 04, 2013, 12:19:31 am »
In item-post.php, check this line:

Code: [Select]
                <span class="float-left"><?php ItemForm::price_input_text(); ?></span>
And change it like this:

Code: [Select]
                <span class="float-left"><?php ItemForm::price_input_text("0"); ?></span>
When a user publish an ad, will have as its starting price of € 0 / $ 0 / £ 0.

As a result, at will change this line in Osclass / helpers / hItems.php:

Code: [Select]
         if ($ price == 0) return osc_apply_filter ('item_price_zero', __ ('the words you prefere if an user dosn't change the base price €0'));

Users will thus "forced" or enter a price, or if they do not make no price, they will automatically price € 0 / $ 0 / £ 0
« Last Edit: August 04, 2013, 12:22:17 am by zummolo »

greyhorse

  • Newbie
  • *
  • Posts: 30
  • "alt-CTRL-delete"
Re: Bender - Change check with seller - main page
« Reply #2 on: August 04, 2013, 01:28:26 am »
It's not the price i need to change but the words. "check with seller" I want to change it to "Check with Publisher" however, when i change the text in the file to that it gives me a error on the entire site

osCanyon

  • Hero Member
  • *****
  • Posts: 701
  • osCanyon, the class of Osclass
Re: Bender - Change check with seller - main page
« Reply #3 on: August 04, 2013, 05:11:13 am »
I changed it and was ok (hItems.php)
I also change core.po

greyhorse

  • Newbie
  • *
  • Posts: 30
  • "alt-CTRL-delete"
Re: Bender - Change check with seller - main page
« Reply #4 on: August 04, 2013, 05:14:29 am »
what did you change in the core.po?

greyhorse

  • Newbie
  • *
  • Posts: 30
  • "alt-CTRL-delete"
Re: Bender - Change check with seller - main page
« Reply #5 on: August 04, 2013, 05:32:13 am »
This is what I am getting after changing everything

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

Warning: Cannot modify header information - headers already sent by (output started at /home/content/79/11067579/html/oc-includes/osclass/helpers/hItems.php:1) in /home/content/79/11067579/html/oc-content/plugins/agewarning/index.php on line 41

osCanyon

  • Hero Member
  • *****
  • Posts: 701
  • osCanyon, the class of Osclass
Re: Bender - Change check with seller - main page
« Reply #6 on: August 04, 2013, 06:06:06 am »
I changed both hItems.php and core.po
to Check with publisher instead of Check with seller
didnt get any of those warnings at all.... ???
osClass 3.2 and the default bender theme

greyhorse

  • Newbie
  • *
  • Posts: 30
  • "alt-CTRL-delete"
Re: Bender - Change check with seller - main page
« Reply #7 on: August 04, 2013, 06:16:52 am »
which core.po as there are more than one..

greyhorse

  • Newbie
  • *
  • Posts: 30
  • "alt-CTRL-delete"
Re: Bender - Change check with seller - main page
« Reply #8 on: August 04, 2013, 06:32:43 am »
well what about this error:

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

If I can fix that..then it will work

osCanyon

  • Hero Member
  • *****
  • Posts: 701
  • osCanyon, the class of Osclass
Re: Bender - Change check with seller - main page
« Reply #9 on: August 04, 2013, 07:03:29 am »
oc-content/languages/en_US

New

  • Newbie
  • *
  • Posts: 8
Re: Bender - Change check with seller - main page
« Reply #10 on: August 17, 2013, 12:04:03 pm »
@greyhorse

PI am having the same problem as you on bender theme, OSclass 3.2.

Pl advise if your issue was finally resolved and how , thanks !

classifyme

  • Newbie
  • *
  • Posts: 43
Re: Bender - Change check with seller - main page
« Reply #11 on: August 17, 2013, 12:10:01 pm »
Jay posted this in another page and it worked for me.

Quote
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

New

  • Newbie
  • *
  • Posts: 8
Re: Bender - Change check with seller - main page
« Reply #12 on: August 18, 2013, 11:44:18 am »
For those who are facing the same error :

as advised by classifyme in another Topic, 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, til 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: Bender - Change check with seller - main page
« Reply #13 on: August 18, 2013, 01:07:38 pm »
For those who reach this thread , this has finally worked for me ( and for classifyme as well,apparently ) , 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 ! ( Jay)