Adding information and layout.
-
Hello, I’ve tried a few plugins and by far this one seems to be the best one i’ve used.
I’m having some issue adding what I need though. I want to show the related products using this layout (coming from a working similar products php which works but I cant select manual relation)
<?php if( has_post_thumbnail() ){ the_post_thumbnail(); } else{ echo '<img src="'.esc_url( get_template_directory_uri().'/images/product-placeholder.jpg' ).'">'; } ?> </div> <div> <a class="overlay" href="<?php the_permalink() ?>"> <i class="fa fa-compress"></i> <h3><?php _e( 'COMPARE', 'compare' ) ?></h3> </a> <div style="font-size:16px; font-weight:bold;"> <?php if ( CFS()->get( 'manual_price' ) ){ ?> <div class="price-box-cust"> <?php echo CFS()->get( 'manual_price'); ?> </div> <?php } else { ?> <?php $min_price = !empty( $product_metas[get_the_ID()] ) ? $product_metas[get_the_ID()]['minPrice'] : 0; echo __( '', 'compare' ).'<div class="price-box-cust">'.compare_format_currency_number( $min_price ).'</div>'; ?><?php } ?> </div> </div> </div> <div class="white-block-content"> <h4> <a href="<?php the_permalink() ?>"> <?php $title = get_the_title(); if( strlen( $title ) > 25 ){ $title = substr( $title, 0, 25 ).'...'; } echo esc_html( $title ); ?> </a> </h4> <p class="product-ratings"> <?php compare_get_ratings() ?></p> <div class="myDiv" style="font-weight:bold; padding:0px 0px 5px 0px; color:#900; font-size:13px;"><?php echo CFS()->get( 'price_message' ); ?></div> </div>Would you be a massive help and help me with this? I’ve tried all the ways I know off.
Many thanks look forward to your reply
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Adding information and layout.’ is closed to new replies.