Ejemplo n.º 1
0
                                    <td>Цена
                                    </td>
                                    <td>
                                        <span class="productprice"><?php 
        echo number_format($product['price'], 2, '.', ' ');
        ?>
 MDL</span>
                                    </td>
                                </tr>
                                    <tr>
                                        <td colspan="2" align="right">
                                            <input type="text" rest="<?php 
        echo $product['rest'];
        ?>
" class="num incartquantity" value="<?php 
        echo inCart($product['id']);
        ?>
" productid="<?php 
        echo $product['id'];
        ?>
">
                                            <input type="button" class="btn addtocart" value="Заказать" productid="<?php 
        echo $product['id'];
        ?>
">
                                            <div class="hiderest" productID="<?php 
        echo $product['id'];
        ?>
">Доступно: <b><?php 
        echo $product['rest'];
        ?>
Ejemplo n.º 2
0
    } else {
        echo get_permalink(PAGE_ID_BUY);
    }
} else {
    echo get_permalink(PAGE_ID_LOGIN);
}
?>
" role="button">Buy</a></p>
        </div><!-- /.col-lg-4 -->
        <div class="col-lg-4">
          <img class="img-circle" src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" alt="Generic placeholder image" width="140" height="140">
          <h2>PREMIUM (100$)</h2>
          <p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
          <p><a class="btn btn-default" href="<?php 
if (is_user_logged_in()) {
    if (!inCart(PREMIUM_PRODUCT_ID)) {
        echo home_url('/');
        echo '?add-to-cart=' . PREMIUM_PRODUCT_ID . '&buy_now';
    } else {
        echo get_permalink(PAGE_ID_BUY);
    }
} else {
    echo get_permalink(PAGE_ID_LOGIN);
}
?>
" role="button">View details &raquo;</a></p>
        </div><!-- /.col-lg-4 -->
      </div><!-- /.row -->


      <!-- START THE FEATURETTES -->