1,
'class' => implode(
' ',
array_filter(
array(
'button',
'', //wc_wp_theme_get_element_class_name( 'button' ), // escaped in the template.
'product_type_' . $product->get_type(),
$product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '',
$product->supports('ajax_add_to_cart') && $product->is_purchasable() && $product->is_in_stock() ? 'ajax_add_to_cart' : '',
)
)
),
'attributes' => array(
'data-product_id' => $product->get_id(),
'data-product_sku' => $product->get_sku(),
'aria-label' => $product->add_to_cart_description(),
'rel' => 'nofollow',
),
);
$args = apply_filters('woocommerce_loop_add_to_cart_args', wp_parse_args($args, $defaults), $product);
if (isset($args['attributes']['aria-label'])) {
$args['attributes']['aria-label'] = wp_strip_all_tags($args['attributes']['aria-label']);
}
$price = $bestseller_product->get_price_html();
$del = array('', '', '', '');
$price = str_replace($del, '', $price);
$price = str_replace('', ' -', $price);
$price = str_replace('', '', $price);
$get_price_html = '' . $price . '';
?>