• How Can I get a ReviewAZON_LowestNewPrice field to be checked if price field is empty using the code below?

    And if the ReviewAZON_LowestNewPrice field isn’t empty then display it.

    <?php if(get_post_meta($post->ID, 'Authors', true) == '') { ?>
    
    			<?php $price = get_post_meta($post->ID, 'price', true);
    			 if ( $price ) {
     echo '<span class="price-tag">	';
    		}
    else {
    echo '<span class="band2 outofstock2"></span>';
    }
    ?>	
    
    			<?php if(get_post_meta($post->ID, 'price', true) != "") { ?>
    <span><?php echo $Price = get_post_meta($post->ID, 'price', true); ?></span>
    <?php } ?>
    
    <?php } ?>
Viewing 1 replies (of 1 total)
  • Thread Starter broadleon

    (@broadleon)

    the flow of logic that i’am after is,

    If author do nothing

    If not

    Check price? if price show price and tag

    if not

    Check reviewazon price? if price

    show reviewazon price and tag

    If not

    Show out of stock banner.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom field problem’ is closed to new replies.