예제 #1
0
                                                        </div>
                                                    </div>
                                                    <!--p><h4> Your Rating : </h4>
                                                        <div class="quantity">
                                            <input type="number" size="4" class="input-text qty text" title="Qty" value="1" name="quantity" min="1" step="1">
                                        </div>
                                         <p><input type="submit" value="Submit"></p-->
                                            </div>
                                        </div>
                                    </div>
                                    
                                </div>
                            </div>
                        </div>
                          <?php 
$a = related_products();
$sql = "SELECT bk_id FROM books limit 5";
$result = $conn->query($sql);
$k = 0;
while ($row = $result->fetch_assoc()) {
    $b[$k] = $row['bk_id'];
    $k++;
}
?>
                        
                        <div class="related-products-wrapper">
                            <h2 class="related-products-title">Related Products</h2>
                            <div class="related-products-carousel">
                                <div class="single-product">
                                    <div class="product-f-image">
                                        <img src="img/temp-1.jpg" alt="">
예제 #2
0
								<!-- Related Products -->
									<div id="related_products">
									<?php 
        if (trim(get_post_meta($post->ID, 'rt_related_products', true))) {
            $product_ids = split("\n", get_post_meta($post->ID, 'rt_related_products', true));
            foreach ($product_ids as $k => $product_id) {
                if (trim($product_id)) {
                    ?>
									<?php 
                    $p_id_list .= $product_id . ",";
                    ?>
									<?php 
                }
            }
        }
        related_products($p_id_list);
        ?>
									<div class="clear"></div>
									</div>
								<!-- / Related Products -->								
								<?php 
    }
    ?>
								
							</div>
						     <img src="<?php 
    bloginfo('template_directory');
    ?>
/images/<?php 
    echo $which_theme;
    ?>