Alan Cesarini
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Hi,
No, I don’t see any error or anything unusual in the Chrome console. I’ve also tried deactivating all other plugins installed with no success.
cheers.
Forum: Plugins
In reply to: [WooCommerce] Product tags in order confirmation email?I see. Try this:
$term_list = wp_get_post_terms( $_product->id, 'product_tag', array( "fields" => "names" ) ); foreach( $term_list as $term ) echo $term . '<br/>';Forum: Plugins
In reply to: [WooCommerce] Product tags in order confirmation email?$term_list = wp_get_post_terms( $product_id, 'product_tag', array( "fields" => "names" ) ); foreach( $term_list as $term ) echo $term . '<br/>';The first line will get all tags associated with the product, and the second line will display them all.
Forum: Plugins
In reply to: [WooCommerce] Product tags in order confirmation email?The function wp_get_post_terms returns an array of terms, so to show them all, you need to do this:
foreach( $term_list as $term ) echo $term . '<br/>'Forum: Plugins
In reply to: [WooCommerce] How to show the original price in the cart?This code will show the sale price of all the products in the cart:
if ( sizeof( $woocommerce->cart->get_cart() ) > 0 ) { foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $values ) { $_product = $values['data']; echo woocommerce_price( $_product->sale_price ); } }
Viewing 5 replies - 1 through 5 (of 5 total)