parent
853c3b23dc
commit
5f46968f8c
|
@ -452,9 +452,11 @@ class WC_Shortcodes {
|
|||
return '';
|
||||
}
|
||||
|
||||
$styles = empty( $atts['style'] ) ? '' : ' style="' . esc_attr( $atts['style'] ) . '"';
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
<p class="product woocommerce add_to_cart_inline <?php echo esc_attr( $atts['class'] ); ?>" style="<?php echo esc_attr( $atts['style'] ); ?>">
|
||||
<p class="product woocommerce add_to_cart_inline <?php echo esc_attr( $atts['class'] ); ?>"<?php echo $styles; ?>>
|
||||
|
||||
<?php if ( 'true' == $atts['show_price'] ) : ?>
|
||||
<?php echo $product->get_price_html(); ?>
|
||||
|
|
Loading…
Reference in New Issue