هیچ محصولی یافت نشد.
add_filter('woocommerce_get_price_html', 'imanbash_change_price_for_drager', 9999, 2); function imanbash_change_price_for_drager($price, $product) { if (is_product() || is_shop() || is_product_category()) { $terms = get_the_terms($product->get_id(), 'product_cat'); if ($terms && !is_wp_error($terms)) { foreach ($terms as $term) { if ($term->slug === 'drager') { return 'تماس بگیرید'; } } } } return $price; }