Esempio n. 1
0
/**
 * Shows product attributes table
 *
 * @param type $atts
 * @return string
 */
function ic_product_attributes($atts)
{
    $args = shortcode_atts(array('product' => get_the_ID()), $atts);
    return get_product_attributes($args['product']);
}
Esempio n. 2
0
                    }
                    $other_prices .= '</div>';
                }
            } else {
                if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
                    $products_price = '<span class="oldprice">' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span> <span class="specialprice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
                } else {
                    $products_price = '<span class="yourprice">' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
                }
            }
            echo $products_price;
            echo $other_prices;
            //END DISCOUNT
        }
        /*attributes*/
        echo get_product_attributes($product_info['products_id']);
        ?>

                                                        </div>

                                                </div>

                                                <?php 
    }
    echo tep_draw_hidden_field('products_id', $product_info['products_id']);
    ?>

                                        <div class="product-fields">

                                        <?php 
    /*merk*/
/**
 * Shows product attributes table on product page
 *
 * @param object $post
 * @param array $single_names
 */
function show_product_attributes($post, $single_names)
{
    echo get_product_attributes($post->ID, $single_names);
}