/** * Shows price on product page * * @param type $post * @param type $single_names */ function show_price($post, $single_names) { echo get_product_price_table($post->ID, $single_names); }
/** * Shows product price table * * @param type $atts * @return string */ function ic_product_price_table($atts) { $args = shortcode_atts(array('product' => get_the_ID()), $atts); return get_product_price_table($args['product']); }
/** * Shows product price table * * @param type $atts * @return string */ function ic_product_price_table($atts) { $args = shortcode_atts(array('product' => get_the_ID()), $atts); $single_names = get_single_names(); return get_product_price_table($args['product'], $single_names); }