Advertisement:

Author Topic: Bender Blue Omissions?  (Read 1935 times)

greg2012

  • Jr. Member
  • **
  • Posts: 66
Bender Blue Omissions?
« on: September 03, 2013, 11:06:28 pm »
After having lots of problems with the existing version of Bender Black, I've switched to Bender Blue 1.0 - However I'm unable to adjust the currency settings, because it's not there.

For instance, I can recall, I was able (with other themes) to adjust where the $ goes, and to display the amount with a comma. Remember countries which use the Dollar, the $ is always at the beginning.

At present if someone puts an ad for a car costing $20,000. and they input it as "20,000.00" It will come up as 20$.

Next issue:

I've also noticed that you can add regions to a location, but when someone's placing an ad, the new regions they will not have the option to select those regions.
(For example - in my small country where there are no preset regions, I have added East-Trinidad; West-Trinidad etc. However someone placing an add with not get given that option to choose one of those regions.

mmcsus

  • Hero Member
  • *****
  • Posts: 704
  • Open Source
Re: Bender Blue Omissions?
« Reply #1 on: September 04, 2013, 06:30:04 am »
Hi Greg,

Your correct, the U.S. dollar is not presented properly.

If your going to target the U.S. market you must have things in the right place.

I do not use the price option for this reason. (I let the customer post the price in the description.)

So, in the U.S. we use for 20 thousand dollars = $20,000.00. (Osclass = 20.00$, not good)

So I'm going to give you three easy steps to make it right.

The problem is Osclass has to please many languages and it's not so easy.

Thay use PHP number_format function for the price.

There is much better ways to do this but they have time constraints.

I'm sorry I'm tired and will conteue tomarrow ...

David

greg2012

  • Jr. Member
  • **
  • Posts: 66
Re: Bender Blue Omissions?
« Reply #2 on: September 04, 2013, 08:26:18 am »
Hello David

I do regret putting you through this.

I can remember only recently when the default theme carried this feature. It's a pity that everytime something is upgraded, something is left out.

Greg

mmcsus

  • Hero Member
  • *****
  • Posts: 704
  • Open Source
Re: Bender Blue Omissions?
« Reply #3 on: September 04, 2013, 07:58:24 pm »
... Solution without modifying Osclass core.

How everyone connects to their database is different so I will not cover that here.

Make two (2) edits in your database and one (1) in oc-content/themes/your_theme/item.php.

1. Find in database --> (your_prefix)_t_currency --> delete the contents of s_discription. (U.S. dollar)

2. Find --> (your_prefix)_t_locale --> add a comma "," (Without the quotes) to --> s_thousands_sep

Note: You should find s_thousands_sep empty when you start. (Hint to Osclass team)

3. Find the following in your item.php around line 52, in bender:

Quote
        <h1><?php if( osc_price_enabled_at_items() ) { ?><span class="price"><?php echo osc_item_formated_price(); ?></span> <?php ?><strong><?php echo osc_item_title() . ' ' osc_item_city(); ?></strong></h1>
      
      Change to:
      
Quote
      <h1><?php if( osc_price_enabled_at_items() ) { ?><span class="price">$<?php echo osc_item_formated_price(); ?></span> <?php ?><strong><?php echo osc_item_title() . ' ' osc_item_city(); ?></strong></h1>
      
      Done!
      
      Now when the user inputs .25 or 0.25 Osclass will display --> $0.25
      
      If the user inputs 20000 or 20,000 or 20,000.00 Osclass will display --> $20,000.00

                Something to consider:

                If the user inputs the dollar sign "$" before the number Osclass will display --> $Free
      
      David
      
      
      
      
      
« Last Edit: September 04, 2013, 09:21:13 pm by mmcsus »

greg2012

  • Jr. Member
  • **
  • Posts: 66
Re: Bender Blue Omissions?
« Reply #4 on: September 05, 2013, 07:40:57 am »
Will try.
I really like this software, but each time there's an upgrade something goes wrong somewhere else.