Advertisement:

Author Topic: [SOLVED] Price field when price disabled in certain categories  (Read 1626 times)

darmeth

  • Jr. Member
  • **
  • Posts: 75
[SOLVED] Price field when price disabled in certain categories
« on: September 25, 2013, 12:17:50 pm »
Bender has a minor issue when you disable the PRICE field in only some categories, for example, in Personals. See the attachment for details of how it displays. It only removed the text box but it leaves the label.

To fix this, go to item_post.php and find these lines

Code: [Select]
<?php if( osc_price_enabled_at_items() ) { ?>
                        <div class="control-group">
                            <label class="control-label" for="price"><?php _e('Price''bender'); ?></label>
                            <div class="controls">
                                <?php ItemForm::price_input_text(); ?>
                               <?php ItemForm::currency_select(); ?>
                            </div>
</div>

Replace the code with this:

Code: [Select]
<?php if( osc_price_enabled_at_items() ) { ?>
                        <div class="control-group">
                            <label class="control-label" for="price"><?php _e('Price''bender'); ?></label>
                            <p class="controls">
                                <?php ItemForm::price_input_text(); ?></p>
                               <p class="controls"> <?php ItemForm::currency_select(); ?></p>
                            </div>