in coupon theme, in header search all coupon categrories not coming?


  • rekha
    Newbie
     
    2 points

    visit my website couponmoz.com. if you see in header search there are three option All coupons, all stores and search.
    in all categories only 4 categories coming because of in child theme ‘function code.php’ is static
    this is the code
    <form action=”<?php echo get_home_url(); ?>/” method=”get” class=”nsearch hidden-sm hidden-xs”>

    <div class=”row clearfix”>
    <div class=”col-md-4″>
    <select class=”form-control f1″ name=”stype”>
    <option value=”” <?php if(isset($_GET[‘stype’])){ selected( $_GET[‘stype’], “” );} ?>><?php echo $CORE->_e(array(‘coupons’,’48’)); ?></option>
    <option value=”1″ <?php if(isset($_GET[‘stype’])){ selected( $_GET[‘stype’], 1 );} ?>><?php echo $CORE->_e(array(‘coupons’,’9′)); ?></option>
    <option value=”2″ <?php if(isset($_GET[‘stype’])){ selected( $_GET[‘stype’], 2 );} ?>><?php echo $CORE->_e(array(‘coupons’,’10’)); ?></option>
    <option value=”3″ <?php if(isset($_GET[‘stype’])){ selected( $_GET[‘stype’], 3 );} ?>><?php echo $CORE->_e(array(‘coupons’,’11’)); ?></option>
    </select>
    </div>

    but i want the categories will come automatic from coupon categories so please suggest me what i do?


    Josh
    Josh
    Super Guru
     
    13,888 points

    Hello Rekha,
    You can add a new dropdown for the categories.Try the below code

    
    <select name="cat1" class="">
                <option value=""><?php echo $CORE->_e(array('button','31')); ?></option>
    					<?php echo $CORE->CategoryList(array(0,false,0,'listing')); ?>
    				</select>
    
    This reply was awarded the best answer by the topic poster.


    rekha
    Newbie
     
    2 points

    Thanks Josh
    this is solved my issue


    Josh
    Josh
    Super Guru
     
    13,888 points

    You’re welcome Rekha.Have a great day :)



    Sandeep
    Newbie
     
    5 points

    Hi josh where should i place that code? i too want that feature

    Thanks


Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.