Announcement

Collapse
No announcement yet.

Option to show or not

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Option to show or not

    Could also be nice with an option to show(or not show) Manufacturer and category, so we don't have to find it in ec_product_details_page.php around line 880...

    Code:
    <?php  if( get_option( 'ec_option_show_categories' ) ){ ?>
                <?php if( count( $this->product->categoryitems ) > 0 ){ ?><div class="ec_details_categories"><?php /* echo $GLOBALS['language']->get_text( 'product_details', 'product_details_categories' ); */ ?> <?php /* $categoryitems = array( ); foreach( $this->product->categoryitems as $categoryitem ){ $categoryitems[] = '<a href="' . $this->product->get_category_link( $categoryitem->post_id, $categoryitem->category_id ) . '">' . $categoryitem->category_name . '</a>'; } echo implode( ', ', $categoryitems ); */ ?></div><?php }?>
                <?php }?>
                
                <?php if( get_option( 'ec_option_show_manufacturer' ) ){ ?>
                <div class="ec_details_manufacturer"><?php /* echo $GLOBALS['language']->get_text( 'product_details', 'product_details_manufacturer' ); */ ?> <a href="<?php echo $this->product->get_manufacturer_link( ); ?>"><?php /* echo $this->product->manufacturer_name; */ ?></a></div>
                <?php }?>
    The picture show the changes I made to the code:

    1) "Per Person"
    2) Removed Manufactorer
    3) Removed Category

    When selling a service, there are no manufactorers and as for category, personally, it is only for my own use for now...
    Attached Files
    Last edited by pethol; 08-06-2015, 01:15 AM.

  • #2
    Hello: You might take a look in our basic settings, you can already turn off categories, manufacturers, bread crumbs, etc... on the product details page... that is what the coding says there
    if( get_option( 'ec_option_show_categories' ) )

    Comment


    • #3
      Darned! I need to lay off the joints when doing the website... hahahaha.

      Comment

      Working...
      X