Advertisement:

Author Topic: Change "free" and "check with seller"  (Read 140 times)

PeterB007

  • Newbie
  • *
  • Posts: 2
Change "free" and "check with seller"
« on: July 19, 2019, 07:35:38 pm »
I want to change the standard wording of posts that do not have a price to reflect "Neg." rather then "free" or "check with seller" on my site. I have checked the *.po document and there is no reference to "free" or "check with seller."

Does anyone know how I can do this?

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
Re: Change "free" and "check with seller"
« Reply #1 on: July 19, 2019, 10:05:39 pm »
I want to change the standard wording of posts that do not have a price to reflect "Neg." rather then "free" or "check with seller" on my site. I have checked the *.po document and there is no reference to "free" or "check with seller."

Does anyone know how I can do this?

Try editing 'oc-includes/osclass/helpers/hItems.php'


Regards

« Last Edit: July 19, 2019, 11:17:48 pm by BritWeb »

calinbehtuk

  • Sr. Member
  • ****
  • Posts: 450
Re: Change "free" and "check with seller"
« Reply #2 on: July 20, 2019, 01:44:27 pm »
I want to change the standard wording of posts that do not have a price to reflect "Neg." rather then "free" or "check with seller" on my site. I have checked the *.po document and there is no reference to "free" or "check with seller."

Does anyone know how I can do this?

Try editing 'oc-includes/osclass/helpers/hItems.php'


Regards



I think that is not ok, and not a good practice.

Osclass core words are in file core.po from oc-content/languages/your-language/core.po
You can try to change there, or you can add that word in your theme translation, will work in both ways. But make sure that you translate in the proper way.

https://blog.osclass.org/2014/09/05/translate-osclass-plugins-themes/

PeterB007

  • Newbie
  • *
  • Posts: 2
Re: Change "free" and "check with seller"
« Reply #3 on: July 20, 2019, 02:36:30 pm »
Thank you very much,

I found the text I was looking for in the core.po doc. I had only been checking the theme en.po document which did not have what I was looking for.

 :)

MGD4me

  • Newbie
  • *
  • Posts: 15
Re: Change "free" and "check with seller"
« Reply #4 on: July 23, 2019, 12:20:14 am »
If you insert a zero in the price feild, then the result will be to show "free" in the listing. But, if you leave the price field blank, then "Check with Seller" will be shown instead.