News Flash:
New Version of ShopClass theme 1.4.0 is Released on 13 JUNE 2018, Please upgrade your installation.

How to show Other-Details Button

If you are having general problems with Tuffclassified theme, post your questions here. This is not the place for customization or feature requests
Locked
Rendy
Starter
Posts: 36
Joined: Sun Sep 22, 2013 8:36 am
Has thanked: 1 time
Been thanked: 1 time

How to show Other-Details Button

Post by Rendy » Sat Aug 08, 2015 9:42 am

Hi Navjot...I'm using Tuffclassified theme 3.4, why Other-Details not shown in item post?

Image

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: How to show Other-Details Button

Post by tuffadmin » Sun Aug 09, 2015 7:20 pm

This field only work if you have custom field in item. Sorry my mistake.
change code under <div class="tab-content"> to this in item.php file.

Code: Select all

				<div class="tab-content">
					<div class="item-details tab-pane active" id="Details">
						<ul class="list-unstyled">
							<?php if( osc_price_enabled_at_items() ) { ?>			
							<li  class="offer" itemprop="offers" itemscope itemtype="http://schema.org/Offer" >
								<strong><i class="fa-money fa fa-fw"></i><?php _e("Price:", 'tuffclassified'); ?></strong> <span class="price" itemprop="price" > <?php echo osc_item_formated_price() ; ?></span>
							</li>
							<?php } ?>
							<li><strong><i class="fa-list fa fa-fw"></i><?php _e("Category:", 'tuffclassified'); ?></strong> <?php echo osc_item_category() ; ?></li>
							<li class="publish"><strong><i class="fa-calendar fa fa-fw"> </i><?php if ( osc_item_pub_date() != '' ) echo __('Published date', 'tuffclassified') . ':</strong> ' . osc_format_date( osc_item_pub_date() ) ; ?>
								<?php if ( osc_item_mod_date() != '' ) echo ', ' . __('Modified date', 'tuffclassified') . ': ' . osc_format_date( osc_item_mod_date() ) ; ?>
							</li>
						</ul>
					</div>
					<div class="tab-pane" id="Location">
						<div itemscope itemtype="http://schema.org/Organization">
							<ul class="list-unstyled" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress" >
								<?php if ( osc_item_country() != "" ) { ?>
								<li><strong><?php _e("Country", 'tuffclassified'); ?></strong> : <span itemprop="addressCountry"><?php echo osc_item_country() ; ?></span></li>
								<?php } ?>
								<?php if ( osc_item_region() != "" ) { ?>
								<li><strong><?php _e("Region", 'tuffclassified'); ?></strong> : <span itemprop="addressRegion"><?php echo osc_item_region() ; ?></span></li>
								<?php } ?>
								<?php if ( osc_item_city() != "" ) { ?>
								<li><strong><?php _e("City", 'tuffclassified'); ?></strong> : <span itemprop="addressLocality"><?php echo osc_item_city() ; ?></span></li>
								<?php } ?>
								<?php if ( osc_item_city_area() != "" ) { ?>
								<li><strong><?php _e("City area", 'tuffclassified'); ?></strong> : <?php echo osc_item_city_area() ; ?></li>
								<?php } ?>
								<?php if ( osc_item_address() != "" ) { ?>
								<li><strong><?php _e("Address", 'tuffclassified') ; ?></strong> : <span itemprop="streetAddress"><?php echo osc_item_address() ; ?></span></li>
								<?php } ?>
							</ul>
						</div>
					</div>
					<div class="tab-pane" id="Other-details">
					<?php if( osc_count_item_meta() >= 1 ) { ?>
						<div id="custom_fields">
							<div class="meta_list">
								<?php while ( osc_has_item_meta() ) { ?>
								<?php if(osc_item_meta_value()!='') { ?>
								<div class="meta">
									<strong><span class="label label-info"><?php echo osc_item_meta_name(); ?></span> : </strong>
									<?php  echo osc_item_meta_value(); 
										?>
								</div>
								<?php } ?>
								<?php } ?>
							</div>
						</div>
					<?php } ?>
						<ul class="list-inline">
							<li class="badge"><i class="fa fa-eye"></i><?php _e("Total Views:", 'tuffclassified'); ?> <?php echo osc_item_views(); ?></li>
							<li class="badge"><i class="fa fa-bar-chart-o"></i><?php _e("Reference Id:", 'tuffclassified'); ?> #<?php echo osc_item_id(); ?></li>
						</ul>
					</div>
				</div>
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

Locked